Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
20 Mar 2011 at 09:24 UTC
Updated:
29 Jul 2014 at 19:27 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
catchLooks sensible enough, we miss a js testing framework for patches like this.
Comment #2
nod_I don't really see the use of this, there is virtually no impact on performance. Optimize a selector somewhere and you get tens or hundreds of times the performance boost this gives you.
The input is used later in the code.
Drupal.jsACis a constructor, it's not just a function, the comment is misleading.Comment #3
nod_Turns out I was wrong : http://jsperf.com/el-attr-id-vs-el-id/2 It does matter. Might want to look elsewhere too.
Selector improvement is a bigger win though.
Comment #4
dries commentedThat is a pretty cool test. This patch doesn't seem to apply though.
Comment #5
nod_Comment #6
Tor Arne Thune commentedApplies now.
Comment #7
dries commentedCommitted to 8.x and 7.x. Thanks for the quick re-roll.
Comment #8
droplet commentedThanks. It's waited 10 months.
created a follow up issue for other parts:
#1099062: autocomplete.js micro optimization