From b256a3a266721f04d38dca59e56b37b9a682b2f2 Mon Sep 17 00:00:00 2001 From: rkatic Date: Mon, 9 Nov 2009 18:55:25 +0800 Subject: [PATCH] Added a method to myKlass. If an object's prototype is "empty", then isObject returns true! --- test/unit/core.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit/core.js b/test/unit/core.js index 25ff1f5..4b1da51 100644 --- a/test/unit/core.js +++ b/test/unit/core.js @@ -550,6 +550,8 @@ test("jQuery.extend(Object, Object)", function() { same( empty.foo, optionsWithDate.foo, "Dates copy correctly" ); var myKlass = function() {}; + // Makes the class a little more realistic + myKlass.prototype = { someMethod: function(){} }; empty = {}; var optionsWithCustomObject = { foo: { date: new myKlass } }; jQuery.extend(true, empty, optionsWithCustomObject); -- 1.7.10.4