diff options
author | Dan Heberden <danheberden@gmail.com> | 2011-04-04 23:59:54 -0700 |
---|---|---|
committer | Dan Heberden <danheberden@gmail.com> | 2011-04-04 23:59:54 -0700 |
commit | c72371f71474cbd6e2318c8ad909a2f92dcb915c (patch) | |
tree | 31b174efd934722728a8e2ea721a37a2a64efcf6 /test | |
parent | 00dd6013b6b53455ef7b788801a5dc0616651580 (diff) | |
download | jquery-c72371f71474cbd6e2318c8ad909a2f92dcb915c.tar.gz jquery-c72371f71474cbd6e2318c8ad909a2f92dcb915c.zip |
Improve speed of $.map with object support (-5% previous speed) and improve .length detection
Diffstat (limited to 'test')
m--------- | test/qunit | 0 | ||||
-rw-r--r-- | test/unit/core.js | 4 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/qunit b/test/qunit -Subproject cc8460c7b44f023c4f84ab1810b72bf6c6ee454 +Subproject d404faf8f587fcbe6b8907943022e6318dd51e0 diff --git a/test/unit/core.js b/test/unit/core.js index 08d80400c..c15884fc6 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -625,7 +625,7 @@ test("map()", function() { q("ap","ap","ap"), "Single Map" ); - + //for #2616 var keys = jQuery.map( {a:1,b:2}, function( v, k ){ return k; @@ -636,7 +636,7 @@ test("map()", function() { return v; }); equals( values.join(""), "12", "Map the values from a hash to an array" ); - + // object with length prop var values = jQuery.map( {a:1,b:2, length:3}, function( v, k ){ return v; |