From 862b0c33de7cdc8865db274d37744058256936e0 Mon Sep 17 00:00:00 2001
From: Nivesh Rajbhandari
Date: Wed, 21 Mar 2012 12:01:44 -0700
Subject: We should draw tag outlines only for nodeType = 1.

Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
---
 js/stage/layout.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'js/stage/layout.js')

diff --git a/js/stage/layout.js b/js/stage/layout.js
index 6be2df1d..2de67538 100755
--- a/js/stage/layout.js
+++ b/js/stage/layout.js
@@ -162,7 +162,7 @@ exports.Layout = Montage.create(Component, {
     drawTagOutline: {
         value: function (item) {
 
-            if(!item) return;
+            if(!item || (item.nodeType !== 1)) return;
 
             // TODO Bind the layoutview mode to the current document
             // var mode  = this.application.ninja.currentDocument.layoutMode;
-- 
cgit v1.2.3