diff --git a/src/core.js b/src/core.js index c9b560ae..f2101099 100644 --- a/src/core.js +++ b/src/core.js @@ -706,7 +706,7 @@ jQuery.extend({ // arg is for internal usage only map: function( elems, callback, arg ) { - var value, ret = [], + var value, key, ret = [], i = 0, length = elems.length, // jquery objects are treated as arrays