Last active
December 25, 2015 01:08
-
-
Save asolove/6892361 to your computer and use it in GitHub Desktop.
Montage inheritance problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Component = require("montage/ui/Component").Component; | |
var Parent = Component.specialize({ | |
thingy: { | |
value: true | |
} | |
}); | |
var Child = Parent.specialize({ | |
thingies: { | |
get: function(){ | |
return this.hasOwnProperty("thingy"); | |
} | |
} | |
}) | |
expect(Child.thingies).toBe(false); | |
// Chrome: passes | |
// IE10: fails |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment