How to get this.grandparent() functionality in Mootools?
- by RyOnLife
I have built a class in Mootools and extended it twice, such that there is a grandparent, parent, and child relationship:
var SomeClass1 = new Class({
initialize: function() {
// Code
},
doSomething: function() {
// Code
}
});
var SomeClass2 = new Class({
Extends: SomeClass1,
initialize: function() {
this.parent();
},
…