aboutsummaryrefslogtreecommitdiff
path: root/js/helper-classes
diff options
context:
space:
mode:
authorAnanya Sen2012-05-22 17:58:23 -0700
committerAnanya Sen2012-05-22 17:58:23 -0700
commitee54342b5f4fdd41c46543d6402e649e4b3d57cb (patch)
tree398dca895c78b5a6a04cb2adcc32c6483c395356 /js/helper-classes
parent3493df6f1b1eaa20bb4f391e19c19bb7f3c872a0 (diff)
downloadninja-ee54342b5f4fdd41c46543d6402e649e4b3d57cb.tar.gz
- don't redraw stage for code document - fixes a switching bug
- fix for ctrl+S for code document - disallow opening the panels while in code document Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/helper-classes')
-rwxr-xr-xjs/helper-classes/3D/view-utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/helper-classes/3D/view-utils.js b/js/helper-classes/3D/view-utils.js
index 0080bf90..0a4fe0ac 100755
--- a/js/helper-classes/3D/view-utils.js
+++ b/js/helper-classes/3D/view-utils.js
@@ -1005,9 +1005,9 @@ exports.ViewUtils = Montage.create(Component, {
1005 this.popViewportObj(); 1005 this.popViewportObj();
1006 1006
1007 if (elt === this.application.ninja.currentDocument.documentRoot) break; 1007 if (elt === this.application.ninja.currentDocument.documentRoot) break;
1008 if (elt === this.application.ninja.currentDocument.documentRoot.parentNode) break; 1008 if (this.application.ninja.currentDocument.documentRoot && elt === this.application.ninja.currentDocument.documentRoot.parentNode) break;
1009 elt = elt.offsetParent; 1009 elt = elt.offsetParent;
1010 if (elt === this.application.ninja.currentDocument.documentRoot.parentNode) break; 1010 if (this.application.ninja.currentDocument.documentRoot && elt === this.application.ninja.currentDocument.documentRoot.parentNode) break;
1011 } 1011 }
1012 1012
1013 return mat; 1013 return mat;