git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a87fa01
)
Optimize :input with better regex
author
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Mon, 20 Nov 2006 21:01:17 +0000
(21:01 +0000)
committer
Jörn Zaefferer
<joern.zaefferer@gmail.com>
Mon, 20 Nov 2006 21:01:17 +0000
(21:01 +0000)
src/jquery/jquery.js
patch
|
blob
|
history
diff --git
a/src/jquery/jquery.js
b/src/jquery/jquery.js
index
f2e9c18
..
7b891ea
100644
(file)
--- a/
src/jquery/jquery.js
+++ b/
src/jquery/jquery.js
@@
-1401,7
+1401,7
@@
jQuery.extend({
image: "a.type=='image'",
reset: "a.type=='reset'",
button: "a.type=='button'",
- input: "a.nodeName.toLowerCase().match(/input|select|textarea|button/)"
+ input: "/input|select|textarea|button/i.test(a.nodeName)"
},
".": "jQuery.className.has(a,m[2])",
"@": {