Skip to content

Commit f8daa7d

Browse files
committed
MC-4052: Stabilize builds for PR
- fix static test failures
1 parent 94253c2 commit f8daa7d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymce4Adapter.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,9 +127,10 @@ define([
127127
* @param {String} wysiwygId
128128
*/
129129
removeEvents: function (wysiwygId) {
130-
if (typeof tinyMceEditors !== "undefined") {
131-
var editor = tinyMceEditors.get(wysiwygId);
130+
var editor;
132131

132+
if (typeof tinyMceEditors !== 'undefined') {
133+
editor = tinyMceEditors.get(wysiwygId);
133134
varienGlobalEvents.removeEventHandler('tinymceChange', editor.onChangeContent);
134135
}
135136
},

0 commit comments

Comments
 (0)