From faee1901c206cd36cc436cab4bf2abf4cc44c058 Mon Sep 17 00:00:00 2001 From: zero Date: Wed, 21 Mar 2007 05:15:33 +0000 Subject: [PATCH] git-svn-id: http://xe-core.googlecode.com/svn/trunk@582 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/editor/tpl/js/editor.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index d053b9f14..c2295ac26 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -326,8 +326,10 @@ function editorSearchComponent(evt) { // 선택되어진 object부터 상단으로 이동하면서 editor_component attribute가 있는지 검사 var obj = e.target; - while(obj && !obj.getAttribute("editor_component")) { - obj = xParent(obj); + if(!obj.getAttribute("editor_component")) { + while(obj && !obj.getAttribute("editor_component")) { + obj = xParent(obj); + } } if(!obj) obj = e.target;