Files
CouchPotatoServer/couchpotato/static/scripts/block.js
T
2011-03-06 03:01:31 +01:00

30 lines
389 B
JavaScript

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
},
toElement: function(){
return this.el
}
});
var Block = {}