summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c2bbcd8)
If an object's prototype is "empty", then isObject returns true!
same( empty.foo, optionsWithDate.foo, "Dates copy correctly" );
var myKlass = 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);
empty = {};
var optionsWithCustomObject = { foo: { date: new myKlass } };
jQuery.extend(true, empty, optionsWithCustomObject);