mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
registerElement
This commit is contained in:
@@ -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;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user