Skip to content

Commit

Permalink
refactor: remove backward/forward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mariobuikhuizen committed Feb 2, 2022
1 parent f361d53 commit 1d45cc8
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions js/src/VueRenderer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint camelcase: ['error', {allow: ['v_model']}] */
import { JupyterPhosphorWidget, JupyterLuminoWidget } from '@jupyter-widgets/base';
import { JupyterPhosphorWidget } from '@jupyter-widgets/base';
import { vueTemplateRender } from './VueTemplateRenderer'; // eslint-disable-line import/no-cycle
import { VueModel } from './VueModel';
import { VueTemplateModel } from './VueTemplateModel';
Expand All @@ -10,14 +10,7 @@ export function createObjectForNestedModel(model, parentView) {
mounted() {
parentView
.create_child_view(model)
.then(view => {
if (JupyterPhosphorWidget) {
/* backward compatability for jupyter-widgets < 8.0 */
JupyterPhosphorWidget.attach(view.pWidget, this.$el)
} else {
JupyterLuminoWidget.attach(view.luminoWidget, this.$el)
}
});
.then(view => JupyterPhosphorWidget.attach(view.pWidget, this.$el));
},
render(createElement) {
return createElement('div', { style: { height: '100%' } });
Expand Down

0 comments on commit 1d45cc8

Please sign in to comment.