diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js index 689bb88..7de8d5a 100644 --- a/IPython/html/static/widgets/js/widget.js +++ b/IPython/html/static/widgets/js/widget.js @@ -253,12 +253,12 @@ define(["widgets/js/manager", return unpacked; } else if (typeof value === 'string' && value.slice(0,10) === "IPY_MODEL_") { - var model = this.widget_manager.get_model(value.slice(10, value.length)); - if (model) { - return model; - } else { - return value; - } + var model = this.widget_manager.get_model(value.slice(10, value.length)); + if (model) { + return model; + } else { + return value; + } } else { return value; }