Fixed two quick bugs from the JSLint overhaul.
This commit is contained in:
parent
d71a85001b
commit
2a6b0ee7c8
1 changed files with 2 additions and 2 deletions
4
jquery/jquery.js
vendored
4
jquery/jquery.js
vendored
|
@ -43,7 +43,7 @@ function $(a,c) {
|
|||
// The only two getters
|
||||
size: function() {return this.get().length;},
|
||||
get: function(i) {
|
||||
return i === null ? this.cur : this.cur[i];
|
||||
return typeof i == 'undefined' ? this.cur : this.cur[i];
|
||||
},
|
||||
|
||||
each: function(f) {
|
||||
|
@ -620,7 +620,7 @@ $.filter = function(t,r,not) {
|
|||
}
|
||||
|
||||
if ( f !== null ) {
|
||||
f = new Function('a','i','return ' + f);
|
||||
eval('f = function(a,i){return ' + f + '}');
|
||||
r = g( r, f );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue