This app provides monitoring and information features for the common freifunk user and the technical stuff of a freifunk community. Code base is taken from a TUM Practical Course project and added here to see if Freifunk Altdorf can use it. https://www.freifunk-altdorf.de
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.
 
 
 
 

35 lines
755 B

var Class = require('../../core/class');
var Container = require('../../dom/container');
var Modulizer = require('./modulizer');
module.exports = Class(Container, Modulizer, {
initialize: function(width, height){
this.resize(width, height);
},
resize: function(width, height){
this.width = width;
this.height = height;
return this;
},
toExpression: function(){
var expr = this.artVar.property('Surface').construct(this.width, this.height);
if (!this.firstChild) return expr;
var children = [], node = this.firstChild;
while (node){
children.push(node);
node = node.nextSibling;
}
var grab = expr.property('grab');
return grab.call.apply(grab, children);
},
// ignore
subscribe: function(){
return this;
}
});