registerElement

This commit is contained in:
David Greenspan
2013-05-27 17:55:29 -07:00
parent a0468350ee
commit d370dbaf76

View File

@@ -27,6 +27,7 @@ Component = function (args) {
this._buildUpdater = null;
this._childUpdaters = {};
this.elements = {};
this.constructed();
};
@@ -74,6 +75,7 @@ _.extend(Component.prototype, {
}
}
});
self.elements = {};
self.stage = Component.ADDED;
}
var buf = new RenderBuffer(self);
@@ -455,6 +457,9 @@ _.extend(Component.prototype, {
this.removeChild(key, true);
this.addChild(key, newChild, parentNode, beforeNode);
}
},
registerElement: function (elementKey, element) {
this.elements[elementKey] = element;
}
});