You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

39 lines
478 B

var BlockBase = new Class({
Implements: [Options, Events],
options: {},
initialize: function(parent, options){
var self = this;
self.setOptions(options);
self.page = parent;
self.create();
},
create: function(){
this.el = new Element('div.block');
},
getParent: function(){
return this.page
},
hide: function(){
this.el.hide();
},
show: function(){
this.el.show();
},
toElement: function(){
return this.el
}
});
var Block = BlockBase