aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDan Heberden <danheberden@gmail.com>2011-04-04 23:59:54 -0700
committerDan Heberden <danheberden@gmail.com>2011-04-04 23:59:54 -0700
commitc72371f71474cbd6e2318c8ad909a2f92dcb915c (patch)
tree31b174efd934722728a8e2ea721a37a2a64efcf6 /test
parent00dd6013b6b53455ef7b788801a5dc0616651580 (diff)
downloadjquery-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/qunit0
-rw-r--r--test/unit/core.js4
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;