diff --git a/IPython/html/static/notebook/js/widgets/widget.js b/IPython/html/static/notebook/js/widgets/widget.js
index 5cbd811..30a9461 100644
--- a/IPython/html/static/notebook/js/widgets/widget.js
+++ b/IPython/html/static/notebook/js/widgets/widget.js
@@ -271,7 +271,7 @@ function(widget_manager, underscore, backbone){
// TODO: make changes more granular (e.g., trigger on visible:change)
this.model.on('change', this.update, this);
this.model.on('msg:custom', this.on_msg, this);
- WidgetView.prototype.initialize.apply(this, arguments);
+ WidgetView.initialize.apply(this, arguments);
},
on_msg: function(msg) {
diff --git a/IPython/html/static/notebook/js/widgets/widget_bool.js b/IPython/html/static/notebook/js/widgets/widget_bool.js
index d527a66..a29be70 100644
--- a/IPython/html/static/notebook/js/widgets/widget_bool.js
+++ b/IPython/html/static/notebook/js/widgets/widget_bool.js
@@ -64,7 +64,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
});
@@ -105,7 +105,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$el.html(description);
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
events: {"click button" : "handleClick"},
diff --git a/IPython/html/static/notebook/js/widgets/widget_button.js b/IPython/html/static/notebook/js/widgets/widget_button.js
index 3e53589..f02f2e4 100644
--- a/IPython/html/static/notebook/js/widgets/widget_button.js
+++ b/IPython/html/static/notebook/js/widgets/widget_button.js
@@ -49,7 +49,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$el.removeAttr('disabled');
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
events: {
diff --git a/IPython/html/static/notebook/js/widgets/widget_container.js b/IPython/html/static/notebook/js/widgets/widget_container.js
index 9f49da6..220a229 100644
--- a/IPython/html/static/notebook/js/widgets/widget_container.js
+++ b/IPython/html/static/notebook/js/widgets/widget_container.js
@@ -74,7 +74,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager) {
// Called when the model is changed. The model may have been
// changed by another view or by a state update from the back-end.
set_flex_properties(this, this.$el);
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
});
@@ -258,7 +258,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager) {
this.show();
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
_get_selector_element: function(selector) {
@@ -277,7 +277,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager) {
return this.$window.find(selector.substring(6));
}
} else {
- return IPython.DOMWidgetView.prototype._get_selector_element.call(this, selector);
+ return IPython.DOMWidgetView._get_selector_element.apply(this, [selector]);
}
},
diff --git a/IPython/html/static/notebook/js/widgets/widget_float_range.js b/IPython/html/static/notebook/js/widgets/widget_float_range.js
index 22d97d6..2d4a9b4 100644
--- a/IPython/html/static/notebook/js/widgets/widget_float_range.js
+++ b/IPython/html/static/notebook/js/widgets/widget_float_range.js
@@ -107,7 +107,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
// Handles: User input
@@ -168,7 +168,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
@@ -260,7 +260,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.html(description);
this.$label.show();
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
});
diff --git a/IPython/html/static/notebook/js/widgets/widget_image.js b/IPython/html/static/notebook/js/widgets/widget_image.js
index c4c7f7c..eec084d 100644
--- a/IPython/html/static/notebook/js/widgets/widget_image.js
+++ b/IPython/html/static/notebook/js/widgets/widget_image.js
@@ -47,7 +47,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
} else {
this.$el.removeAttr('height');
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
});
diff --git a/IPython/html/static/notebook/js/widgets/widget_int_range.js b/IPython/html/static/notebook/js/widgets/widget_int_range.js
index 76ede5f..b1f21bd 100644
--- a/IPython/html/static/notebook/js/widgets/widget_int_range.js
+++ b/IPython/html/static/notebook/js/widgets/widget_int_range.js
@@ -106,7 +106,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
// Handles: User input
@@ -165,7 +165,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
diff --git a/IPython/html/static/notebook/js/widgets/widget_selection.js b/IPython/html/static/notebook/js/widgets/widget_selection.js
index 40e82c6..9504982 100644
--- a/IPython/html/static/notebook/js/widgets/widget_selection.js
+++ b/IPython/html/static/notebook/js/widgets/widget_selection.js
@@ -101,7 +101,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
// Handle when a value is clicked.
@@ -193,7 +193,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
// Handle when a value is clicked.
@@ -280,7 +280,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
// Handle when a value is clicked.
@@ -364,7 +364,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
// Handle when a value is clicked.
diff --git a/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js b/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js
index 3bab276..8a7894c 100644
--- a/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js
+++ b/IPython/html/static/notebook/js/widgets/widget_selectioncontainer.js
@@ -77,7 +77,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
}
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
add_child_view: function(view) {
@@ -130,7 +130,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
initialize: function() {
this.containers = [];
- IPython.DOMWidgetView.prototype.initialize.apply(this, arguments);
+ IPython.DOMWidgetView.initialize.apply(this, arguments);
},
render: function(){
@@ -181,7 +181,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.select_page(selected_index);
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
add_child_view: function(view) {
diff --git a/IPython/html/static/notebook/js/widgets/widget_string.js b/IPython/html/static/notebook/js/widgets/widget_string.js
index 3d15e69..c0eb870 100644
--- a/IPython/html/static/notebook/js/widgets/widget_string.js
+++ b/IPython/html/static/notebook/js/widgets/widget_string.js
@@ -31,7 +31,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
// Called when the model is changed. The model may have been
// changed by another view or by a state update from the back-end.
this.$el.html(this.model.get('value'));
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
});
@@ -54,7 +54,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$el.html(this.model.get('value'));
MathJax.Hub.Queue(["Typeset",MathJax.Hub,this.$el.get(0)]);
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
});
@@ -114,7 +114,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
events: {"keyup textarea": "handleChanging",
@@ -173,7 +173,7 @@ define(["notebook/js/widgets/widget"], function(widget_manager){
this.$label.show();
}
}
- return IPython.DOMWidgetView.prototype.update.call(this);
+ return IPython.DOMWidgetView.update.apply(this);
},
events: {"keyup input": "handleChanging",