Skip to content

Commit 1d45cc8

Browse files
refactor: remove backward/forward compatibility
Not needed since jupyter-widgets/ipywidgets#3358
1 parent f361d53 commit 1d45cc8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

js/src/VueRenderer.js

+2-9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* eslint camelcase: ['error', {allow: ['v_model']}] */
2-
import { JupyterPhosphorWidget, JupyterLuminoWidget } from '@jupyter-widgets/base';
2+
import { JupyterPhosphorWidget } from '@jupyter-widgets/base';
33
import { vueTemplateRender } from './VueTemplateRenderer'; // eslint-disable-line import/no-cycle
44
import { VueModel } from './VueModel';
55
import { VueTemplateModel } from './VueTemplateModel';
@@ -10,14 +10,7 @@ export function createObjectForNestedModel(model, parentView) {
1010
mounted() {
1111
parentView
1212
.create_child_view(model)
13-
.then(view => {
14-
if (JupyterPhosphorWidget) {
15-
/* backward compatability for jupyter-widgets < 8.0 */
16-
JupyterPhosphorWidget.attach(view.pWidget, this.$el)
17-
} else {
18-
JupyterLuminoWidget.attach(view.luminoWidget, this.$el)
19-
}
20-
});
13+
.then(view => JupyterPhosphorWidget.attach(view.pWidget, this.$el));
2114
},
2215
render(createElement) {
2316
return createElement('div', { style: { height: '100%' } });

0 commit comments

Comments
 (0)