From c08474580caa44d2b5f32be54c0d884832bbd1c3 Mon Sep 17 00:00:00 2001 From: John Resig Date: Tue, 17 Nov 2009 14:36:10 -0500 Subject: [PATCH] Re-wrote context Ajax test to use an element instead of an object (a more realistic test and works with the new jQuery.extend logic for cloning object literals). --- test/unit/ajax.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/ajax.js b/test/unit/ajax.js index 1fcf5ea..75ef26c 100644 --- a/test/unit/ajax.js +++ b/test/unit/ajax.js @@ -74,7 +74,7 @@ test("Ajax events with context", function() { expect(6); stop(); - var context = {}; + var context = document.createElement("div"); function event(e){ equals( this, context, e.type ); -- 1.7.10.4