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.
37 lines
458 B
37 lines
458 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;
|
|
}
|
|
|
|
});
|
|
|