From: rkatic Date: Mon, 9 Nov 2009 10:55:25 +0000 (+0800) Subject: Added a method to myKlass. X-Git-Url: http://git.asbjorn.it/?p=jquery.git;a=commitdiff_plain;h=b256a3a266721f04d38dca59e56b37b9a682b2f2 Added a method to myKlass. If an object's prototype is "empty", then isObject returns true! --- 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);