From cd72883fc7de6da7e43082fc428463aa0aa83a5d Mon Sep 17 00:00:00 2001 From: Jonathan Frederic Date: Fri, 7 Feb 2014 11:49:05 -0800 Subject: [PATCH] Revert "Fix incorrect usage of attrs" This reverts commit 04aa0885bb143fd0409fe133ca572004ffa6dc0e. --- IPython/html/static/notebook/js/widgets/widget.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/widgets/widget.js b/IPython/html/static/notebook/js/widgets/widget.js index 716b1c4b4..17eb1f10a 100644 --- a/IPython/html/static/notebook/js/widgets/widget.js +++ b/IPython/html/static/notebook/js/widgets/widget.js @@ -148,7 +148,7 @@ function(WidgetManager, _, Backbone){ } // Delete any key value pairs that the back-end already knows about. - var attrs = (method === 'patch') ? model.changed : model.toJSON(options); + var attrs = (method === 'patch') ? options.attrs : model.toJSON(options); if (this.key_value_lock !== null) { var key = this.key_value_lock[0]; var value = this.key_value_lock[1];