From e4647a353ab304c8c94a772a83ba2f17e56b734b Mon Sep 17 00:00:00 2001 From: JiHong <0125ses@hanmail.net> Date: Sun, 19 Aug 2018 18:42:33 +0900 Subject: [PATCH] fix: optimization --- src/suneditor.js | 5 +---- src/suneditor.min.js | 4 ++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/suneditor.js b/src/suneditor.js index d692c0049..fb02cbc9f 100644 --- a/src/suneditor.js +++ b/src/suneditor.js @@ -1661,10 +1661,7 @@ SUNEDITOR.defaultLang = { /** Dialog, Submenu */ if (display) { - const prevSubmenu = editor.submenu; - editor.submenuOff(); - - if (/submenu/.test(display) && (target.nextElementSibling === null || target.nextElementSibling !== prevSubmenu)) { + if (/submenu/.test(display) && (target.nextElementSibling === null || target.nextElementSibling !== editor.submenu)) { editor.callModule('submenu', command, target, function () { editor.submenuOn(target); }); diff --git a/src/suneditor.min.js b/src/suneditor.min.js index 3dc01922c..3acafab64 100644 --- a/src/suneditor.min.js +++ b/src/suneditor.min.js @@ -48,8 +48,8 @@ window.open("","_blank");b.mimeType="text/html";b.document.head.innerHTML='