Files
meteor/packages/htmljs/html.js
David Greenspan 3006bc72c6 Fix HTML.isConstructedObject and comment
The comments are not related to the fix, they are just for future
reference.

The fix is that having an "own" property named `constructor` should
not disqualify an object from being considered an "instance of some
class."  Instead, we should detect that an object like
`{constructor: ...}` is a plain object by noting that
`!(x instanceof x.constructor)`.
2015-08-13 12:52:46 -07:00

9.4 KiB