feat(query): notify on changes

This commit is contained in:
vsavkin
2015-06-12 09:45:31 -07:00
parent 73d152506b
commit 5bfcca2d5b
11 changed files with 129 additions and 7 deletions

View File

@ -203,7 +203,12 @@ export class ChangeDetectorJITGenerator {
}
}
return notifications.join("\n");
var directiveNotifications = notifications.join("\n");
return `
this.dispatcher.notifyOnAllChangesDone();
${directiveNotifications}
`;
}
_genLocalDefinitions(): string { return this._localNames.map((n) => `var ${n};`).join("\n"); }

View File

@ -110,6 +110,7 @@ export class DynamicChangeDetector extends AbstractChangeDetector {
}
callOnAllChangesDone() {
this.dispatcher.notifyOnAllChangesDone();
var dirs = this.directiveRecords;
for (var i = dirs.length - 1; i >= 0; --i) {
var dir = dirs[i];