From c72371f71474cbd6e2318c8ad909a2f92dcb915c Mon Sep 17 00:00:00 2001 From: Dan Heberden Date: Mon, 4 Apr 2011 23:59:54 -0700 Subject: Improve speed of $.map with object support (-5% previous speed) and improve .length detection --- test/qunit | 2 +- test/unit/core.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'test') diff --git a/test/qunit b/test/qunit index cc8460c7b..d404faf8f 160000 --- a/test/qunit +++ b/test/qunit @@ -1 +1 @@ -Subproject commit cc8460c7b44f023c4f84ab1810b72bf6c6ee4542 +Subproject commit d404faf8f587fcbe6b8907943022e6318dd51e0c 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; -- cgit v1.2.3