From 8a63aae4a90adc579a06e78c168882faba7f9781 2014-11-20 00:43:24
From: Jason Grout <jgrout6@bloomberg.net>
Date: 2014-11-20 00:43:24
Subject: [PATCH] Make state_change initialization more conventional

---

diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js
index f47bd4f..b66a876 100644
--- a/IPython/html/static/widgets/js/widget.js
+++ b/IPython/html/static/widgets/js/widget.js
@@ -604,11 +604,11 @@ define(["widgets/js/manager",
         //   will be called in that context.
 
         this.initialize.apply(this, arguments);
-        this.state_change = Promise.resolve();
     }
 
     _.extend(ViewList.prototype, {
         initialize: function(create_view, remove_view, context) {
+            this.state_change = Promise.resolve();
             this._handler_context = context || this;
             this._models = [];
             this.views = [];