Let me make a wild guess. It:
Object function () { var i; var newObj = (this instanceof Array) ? [] : {}; ......
may be your own function that messed up the namespace of the object. IOW somewhere in your source code that you do, for example:
Object.prototype.myclone = function() { ... }
Now $ .fn.animate (prop, ...) will select this during the loop
for( p in prop ) { ....
because prop is just a regular Object:
{ height: 0, width: 0, top: 0, left: 0 }
And from now on, your "myclone" has its own life, and the failure you see may be much later. The best answer I can give you is "grep newObj. *" Your source files and all your libraries. Just let us know if it shoots at the target ...
source share