Added a method to myKlass.
If an object's prototype is "empty", then isObject returns true!
This commit is contained in:
parent
c2bbcd8833
commit
b256a3a266
1 changed files with 2 additions and 0 deletions
|
@ -550,6 +550,8 @@ test("jQuery.extend(Object, Object)", function() {
|
||||||
same( empty.foo, optionsWithDate.foo, "Dates copy correctly" );
|
same( empty.foo, optionsWithDate.foo, "Dates copy correctly" );
|
||||||
|
|
||||||
var myKlass = function() {};
|
var myKlass = function() {};
|
||||||
|
// Makes the class a little more realistic
|
||||||
|
myKlass.prototype = { someMethod: function(){} };
|
||||||
empty = {};
|
empty = {};
|
||||||
var optionsWithCustomObject = { foo: { date: new myKlass } };
|
var optionsWithCustomObject = { foo: { date: new myKlass } };
|
||||||
jQuery.extend(true, empty, optionsWithCustomObject);
|
jQuery.extend(true, empty, optionsWithCustomObject);
|
||||||
|
|
Loading…
Reference in a new issue