-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider allowing <polymer-element> to accept a prototype chain #211
Comments
The complexity seems unwarranted at this point. Instead, we should issue a warning if the object passed itself has a non-trivial prototype. |
Dup of #647. |
I was experimenting with function Entity() {
this.message = 'Hello!';
}
Entity.prototype.created = function () {
console.log(this.message);
};
function Person() {}
Person.prototype = new Entity();
// The resulting object will be an instance of the first argument
// The prototype chain of the second argument will be taken into account
Polymer('some-element', Platform.mixin(new Person(), new Person())); |
Closing this issue due to age and the release of version 1 release of Polymer - please feel free to re-open if this is incorrect. |
A user tried this construction inside a
The user was confused that the resulting element had a 'foo' property but not a 'zonk' property.
The text was updated successfully, but these errors were encountered: