Skip to content

Commit 237d5f6

Browse files
committed
Merge pull request #217 from jdfreder/removedep
Remove functions that were deprecated in 4.0.0
2 parents 424f171 + 4c200d2 commit 237d5f6

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

ipywidgets/static/widgets/js/manager.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,6 @@ define([
180180
}
181181
}
182182
};
183-
184-
/**
185-
* Deprecated, use `new_widget` instead.
186-
*/
187-
WidgetManager.prototype.create_model = function (options) {
188-
console.warn('WidgetManager.create_model is deprecated. Use ManagerBase.new_widget');
189-
return this.new_widget(options);
190-
};
191183

192184
WidgetManager.prototype.display_model = function(msg, model, options) {
193185
options = options || {};

ipywidgets/static/widgets/js/widget.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -534,16 +534,6 @@ define(["nbextensions/widgets/widgets/js/utils",
534534
this.model.save_changes(this.callbacks());
535535
},
536536

537-
after_displayed: function (callback, context) {
538-
/**
539-
* Deprecated method. Calls the callback right away is the view is
540-
* already displayed otherwise, register the callback to the 'displayed'
541-
* event.
542-
*/
543-
console.log('`WidgetView.after_displayed` is deprecated. Use the WidgetView.displayed promise instead.');
544-
this.displayed.then(_.bind(callback, context));
545-
},
546-
547537
remove: function () {
548538
// Raise a remove event when the view is removed.
549539
WidgetView.__super__.remove.apply(this, arguments);

0 commit comments

Comments
 (0)