From 1d45cc858edc70d910aa2056e6e33fffce1d4336 Mon Sep 17 00:00:00 2001 From: Mario Buikhuizen Date: Wed, 2 Feb 2022 16:51:49 +0100 Subject: [PATCH] refactor: remove backward/forward compatibility Not needed since https://github.com/jupyter-widgets/ipywidgets/pull/3358 --- js/src/VueRenderer.js | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/js/src/VueRenderer.js b/js/src/VueRenderer.js index 17afab5..a84c3f8 100644 --- a/js/src/VueRenderer.js +++ b/js/src/VueRenderer.js @@ -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'; @@ -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%' } });