Skip to content

Instantly share code, notes, and snippets.

@asolove
Last active December 25, 2015 01:08
Show Gist options
  • Save asolove/6892361 to your computer and use it in GitHub Desktop.
Save asolove/6892361 to your computer and use it in GitHub Desktop.
Montage inheritance problem
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