You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My request is simple. For my project All component created have the same prototype base and I use the inheritance model of John Resig (http://ejohn.org/blog/simple-javascript-inheritance/) to define the prototype.
var Base = Class.extend({
base: false, //
ready: function () {
this.base: true;
},
})
All the properties and functions declared in the Component exist, the _super method work too, but the functions and properties from Base which aren't overload doesn't work.
Have you an idea for my problème ?
The text was updated successfully, but these errors were encountered:
Hi guys.
My request is simple. For my project All component created have the same prototype base and I use the inheritance model of John Resig (http://ejohn.org/blog/simple-javascript-inheritance/) to define the prototype.
var Base = Class.extend({
base: false, //
ready: function () {
this.base: true;
},
})
Component = Base.extend({
ready: function() {
this.base; // undefined
this._super(); // work
this.base; // true
}
})
Polymer('my-component', Component.prototype)
All the properties and functions declared in the Component exist, the _super method work too, but the functions and properties from Base which aren't overload doesn't work.
Have you an idea for my problème ?
The text was updated successfully, but these errors were encountered: