- successfulGetXML: function(callback, data) {
- if (data != this.xml) {
- this.xml = data;
- this.modelChanged();
- $(this).trigger('modelxmlchanged');
+ notifyObservers: function(property) {
+ var currentValue = this[property];
+ for (var guid in this._observers[property]) {
+ // console.log(this._observers[property][guid]);
+ // console.log('Notifying', guid, 'of', this.description(), '[', property, ']');
+ this._observers[property][guid](property, currentValue, this);