> PS: I do not see that Robert solution fails on empty function? aka :
> function () { }

I think no one said that. I said that "classes" with no methods
(prototype with no properties) are not supported by my solution.

var Class = function(){};
var obj = new Class();

isObject( obj ) // true!

Class.prototype.someMethod = function(){};

isObject( obj ) // false

This is not so bed, because normally an class has at least one method.
If not, extending such object would not be so wrong...

Other thing to have in mind is that my solution is not immune by
Object.prototype extending, but for now jQuery is not immune on that
either.

--

You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-...@googlegroups.com.
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=.


Reply via email to