¿Cuál es la mejor manera de implementar la herencia de clases con Prototype?
Herencia en prototype
Iniciado por
Marco
, jun 17 2014 20:59
Preguntas Similares
Esto también te interesa!
#2
Publicado 18 junio 2014 - 05:18
Prueba con el siguiente código debería funcionarte sin problemas:
var SubClase = Class.create(SuperClass, { add: function(arg) { this.items[this.items.length] = arg; }, initialize: function($super, id) { $super(id); this.items = []; } });