diff options
author | Nivesh Rajbhandari | 2012-03-21 12:01:44 -0700 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-03-21 12:01:44 -0700 |
commit | 862b0c33de7cdc8865db274d37744058256936e0 (patch) | |
tree | 79aa3701464201ad6e95f7f628827720082aa056 | |
parent | 49eba848c3006045c6096d21fd8262c9d98a35d8 (diff) | |
download | ninja-862b0c33de7cdc8865db274d37744058256936e0.tar.gz |
We should draw tag outlines only for nodeType = 1.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
-rwxr-xr-x | js/stage/layout.js | 2 |
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; |