From 2ace23d8419f2ea3f41cdef35f851f0243c6ae8e Mon Sep 17 00:00:00 2001 From: Peter Parente Date: Fri, 4 Dec 2015 09:46:11 -0500 Subject: [PATCH] Fix ConfigWithDefaults "this" context Within the promise callback, refer to the ConfigWithDefaults instance, not the Promise --- notebook/static/services/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notebook/static/services/config.js b/notebook/static/services/config.js index f4b6cb802..fbf0f6bc0 100644 --- a/notebook/static/services/config.js +++ b/notebook/static/services/config.js @@ -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] }); };