diff --git a/core/modules/responsive_preview/js/responsive-preview.js b/core/modules/responsive_preview/js/responsive-preview.js index d78bac6..5bc4853 100644 --- a/core/modules/responsive_preview/js/responsive-preview.js +++ b/core/modules/responsive_preview/js/responsive-preview.js @@ -59,7 +59,7 @@ Drupal.behaviors.responsivePreview = { }); // The toolbar tab view. - var $tab = $(context).find('#responsive-preview-toolbar-tab'); + var $tab = $('#responsive-preview-toolbar-tab').once('responsive-preview'); if ($tab.length > 0) { Drupal.responsivePreview.views.tabView = new Drupal.responsivePreview.TabView({ el: $tab.get(), @@ -73,7 +73,7 @@ Drupal.behaviors.responsivePreview = { }); } // The control block view. - var $block = $(context).find('#block-responsive-preview-controls'); + var $block = $('#block-responsive-preview-controls').once('responsive-preview'); if ($block.length > 0) { Drupal.responsivePreview.views.blockView = new Drupal.responsivePreview.BlockView({ el: $block.get(),