aboutsummaryrefslogtreecommitdiff
path: root/js/stage
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-03-21 12:01:44 -0700
committerNivesh Rajbhandari2012-03-21 12:01:44 -0700
commit862b0c33de7cdc8865db274d37744058256936e0 (patch)
tree79aa3701464201ad6e95f7f628827720082aa056 /js/stage
parent49eba848c3006045c6096d21fd8262c9d98a35d8 (diff)
downloadninja-862b0c33de7cdc8865db274d37744058256936e0.tar.gz
We should draw tag outlines only for nodeType = 1.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/stage')
-rwxr-xr-xjs/stage/layout.js2
1 files changed, 1 insertions, 1 deletions
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, {
162 drawTagOutline: { 162 drawTagOutline: {
163 value: function (item) { 163 value: function (item) {
164 164
165 if(!item) return; 165 if(!item || (item.nodeType !== 1)) return;
166 166
167 // TODO Bind the layoutview mode to the current document 167 // TODO Bind the layoutview mode to the current document
168 // var mode = this.application.ninja.currentDocument.layoutMode; 168 // var mode = this.application.ninja.currentDocument.layoutMode;