diff --git a/IPython/html/static/widgets/js/widget.js b/IPython/html/static/widgets/js/widget.js
index e8e63a5..3336bce 100644
--- a/IPython/html/static/widgets/js/widget.js
+++ b/IPython/html/static/widgets/js/widget.js
@@ -593,7 +593,7 @@ define(["widgets/js/manager",
// returns a promise that resolves after this removal is done
var that = this;
this.state_change = this.state_change.then(function() {
- for (var i = 0, len=that.views.length; i