mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-18 11:55:46 +08:00
Fix ConfigWithDefaults "this" context
Within the promise callback, refer to the ConfigWithDefaults instance, not the Promise
This commit is contained in:
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…
Reference in New Issue
Block a user