Switched event system (again)

This commit is contained in:
Ruud
2011-03-01 11:12:56 +01:00
parent fd5a41435b
commit f9523444f4
24 changed files with 580 additions and 142 deletions
+9 -1
View File
@@ -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
}