cujojs / poly

Small, fast, awesome. The only ES5-ish set of polyfills (shims) you can mix-and-match because they're individual modules.
Other
139 stars 18 forks source link

Update hasProp to handle object not derived from Object #37

Open moo3 opened 9 years ago

moo3 commented 9 years ago

This is change was needed in our project since we had custom objects that inherits null and not Object. In this case it fails in IE8 since the hasProp method assumes the first param object to inherit Object which is not the case always.

moo3 commented 9 years ago

Agreed. I overlooked the refProto, shall update now.