Switched event system (again)
This commit is contained in:
@@ -8,7 +8,7 @@ var BlockBase = new Class({
|
||||
var self = this;
|
||||
self.setOptions(options);
|
||||
|
||||
self.parent = parent;
|
||||
self.page = parent;
|
||||
|
||||
self.create();
|
||||
},
|
||||
@@ -17,6 +17,14 @@ var BlockBase = new Class({
|
||||
this.el = new Element('div.block');
|
||||
},
|
||||
|
||||
api: function(){
|
||||
return this.getParent().getApi()
|
||||
},
|
||||
|
||||
getParent: function(){
|
||||
return this.page
|
||||
},
|
||||
|
||||
toElement: function(){
|
||||
return this.el
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user