mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 577387: cleanup of the new iQ(...).each
This commit is contained in:
parent
b9bfb1304b
commit
5d1dca9ba4
@ -227,9 +227,14 @@ iQ.fn = iQ.prototype = {
|
||||
// Function: each
|
||||
// Execute a callback for every element in the matched set.
|
||||
each: function( callback ) {
|
||||
if ( !iQ.isFunction(value) ) {
|
||||
Utils.assert("each's argument must be a function", false);
|
||||
return null;
|
||||
}
|
||||
for ( var i = 0, elem; (elem = this[i]) != null; i++ ) {
|
||||
callback(elem);
|
||||
}
|
||||
return this;
|
||||
},
|
||||
|
||||
// ----------
|
||||
|
Loading…
Reference in New Issue
Block a user