Second rewrite

This commit is contained in:
Henry
2016-05-27 15:07:21 -07:00
parent d8a097a95a
commit d8d0f22889
3 changed files with 80 additions and 41 deletions

View File

@@ -83,16 +83,24 @@ define(
* @private
*/
TelemetryTableController.prototype.registerChangeListeners = function () {
var self=this;
this.unregisterChangeListeners();
// When composition changes, re-subscribe to the various
// telemetry subscriptions
this.changeListeners.push(this.$scope.$watchCollection(
'domainObject.getModel().composition', this.subscribe.bind(this)));
'domainObject.getModel().composition',
function (newVal, oldVal) {
if (newVal !== oldVal) {
self.subscribe();
}
})
);
//Change of bounds in time conductor
this.changeListeners.push(this.$scope.$on('telemetry:display:bounds',
this.subscribe.bind(this)));
this.subscribe.bind(this))
);
};
/**