Fix ConfigWithDefaults "this" context

Within the promise callback, refer to the ConfigWithDefaults instance, not the Promise
This commit is contained in:
Peter Parente 2015-12-04 09:46:11 -05:00
parent bdb8ca88ce
commit 2ace23d841

View File

@ -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]
});
};