Re-enable event handlers

This commit is contained in:
Avital Oliver
2013-12-05 17:10:59 -08:00
parent c940ca91e6
commit da89dcf93b

View File

@@ -275,7 +275,6 @@ UI.render2 = function (kind, parentComponent) {
var range = new UI.DomRange(inst);
materialize(content, range, null, inst);
inst.parented = function () {}; // XXX override old base
inst.removed = function () {
inst.isDestroyed = true;
if (inst.destroyed) {
@@ -284,12 +283,6 @@ UI.render2 = function (kind, parentComponent) {
}
};
// TODO: defer this until template is in document
if (inst.rendered) {
updateTemplateInstance(inst);
inst.rendered.call(inst.templateInstance);
}
return inst;
};