mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
call template callbacks in Deps.nonreactive
This commit is contained in:
@@ -1226,8 +1226,10 @@ UI.Component.parented = function () {
|
||||
|
||||
// XXX think about this callback's timing
|
||||
if (self.rendered) {
|
||||
updateTemplateInstance(self);
|
||||
self.rendered.call(self.templateInstance);
|
||||
Deps.nonreactive(function () {
|
||||
updateTemplateInstance(self);
|
||||
self.rendered.call(self.templateInstance);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1236,8 +1238,10 @@ UI.Component.removed = function () {
|
||||
var self = this;
|
||||
self.isDestroyed = true;
|
||||
if (self.destroyed) {
|
||||
updateTemplateInstance(self);
|
||||
self.destroyed.call(self.templateInstance);
|
||||
Deps.nonreactive(function () {
|
||||
updateTemplateInstance(self);
|
||||
self.destroyed.call(self.templateInstance);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -64,8 +64,10 @@ UI.render = function (kind, props, parentComp) {
|
||||
comp.init();
|
||||
|
||||
if (comp.created) {
|
||||
updateTemplateInstance(comp);
|
||||
comp.created.call(comp.templateInstance);
|
||||
Deps.nonreactive(function () {
|
||||
updateTemplateInstance(comp);
|
||||
comp.created.call(comp.templateInstance);
|
||||
});
|
||||
}
|
||||
|
||||
var range = new DomRange(comp);
|
||||
|
||||
Reference in New Issue
Block a user