From bd7a646a5c6dd231e3924c991e606b20a518915c Mon Sep 17 00:00:00 2001 From: RaymondLim Date: Tue, 29 Oct 2013 12:34:05 -0700 Subject: [PATCH] Switch to a better context this.$htmlContent. --- src/editor/MultiRangeInlineEditor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/editor/MultiRangeInlineEditor.js b/src/editor/MultiRangeInlineEditor.js index 6164bcacc13..ca492192b90 100644 --- a/src/editor/MultiRangeInlineEditor.js +++ b/src/editor/MultiRangeInlineEditor.js @@ -506,8 +506,7 @@ define(function (require, exports, module) { } // Ignore clicks in editor and clicks on filename link - // Check clicks on filename link in the context of the parent node of $editorHolder. - if (!containsClick($(editorRoot)) && !containsClick($(".filename", this.$editorHolder.parent()))) { + if (!containsClick($(editorRoot)) && !containsClick($(".filename", this.$htmlContent))) { childEditor.focus(); // Only set the cursor if the click isn't in the range list. if (!containsClick(this.$relatedContainer)) {