Fix ConfigWithDefaults "this" context

Within the promise callback, refer to the ConfigWithDefaults instance, not the Promise
Peter Parente 11 years ago
parent bdb8ca88ce
commit 2ace23d841

@ -93,7 +93,7 @@ function($, utils) {
ConfigWithDefaults.prototype.get = function(key) {
var that = this;
return this.section.loaded.then(function() {
return this._class_data()[key] || this.defaults[key]
return that._class_data()[key] || that.defaults[key]
});
};

Loading…
Cancel
Save