UNPKG

red-foot

Version:

Framework para frontends em JS

33 lines (24 loc) 595 B
/* jshint node:true */ "use strict"; var gea = require('gea-js'); var Classe = require('pyoo.js'); var Componente = Classe(gea.Agente, { __init__: function(self, id, mundo) { gea.Agente.__init__(id, mundo); self.__no = self.construirNo(); }, construirNo: function(self) { }, getNo: function(self) { return self.__no; }, atualizar: function(mundo, despachar) { }, addComponente: function(self, componente) { self.no.appendChild(componente.getNo()); }, rmComponente: function(self, componente) { self.no.removeChild(componente); } }); module.exports = Componente;