diff options
author | Jose Antonio Marquez Russo | 2012-07-25 13:16:39 -0700 |
---|---|---|
committer | Jose Antonio Marquez Russo | 2012-07-25 13:16:39 -0700 |
commit | 713278ed8a665122b7981769f3404958629f6a3d (patch) | |
tree | 8a180716f60bf87073233732753da65711c28732 /js/controllers | |
parent | bb2f1d0e9a559f44348e95ad726801a5031aea3a (diff) | |
parent | e7509af2b2fad6ab23ea07e6e46e88a4ee0d03f1 (diff) | |
download | ninja-713278ed8a665122b7981769f3404958629f6a3d.tar.gz |
Merge pull request #47 from ananyasen/Document
Code view fixes.
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/styles-controller.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/controllers/styles-controller.js b/js/controllers/styles-controller.js index 0e1df1e9..e95c6614 100755 --- a/js/controllers/styles-controller.js +++ b/js/controllers/styles-controller.js | |||
@@ -131,7 +131,7 @@ var stylesController = exports.StylesController = Montage.create(Component, { | |||
131 | handleChange: { | 131 | handleChange: { |
132 | value: function(notification) { | 132 | value: function(notification) { |
133 | if(notification.currentPropertyPath === "model.currentViewIdentifier") { | 133 | if(notification.currentPropertyPath === "model.currentViewIdentifier") { |
134 | if(this.currentDocument.model.currentView.identifier === "design") { | 134 | if(this.currentDocument && this.currentDocument.model.currentView.identifier === "design") { |
135 | ///// Stage stylesheet should always be found | 135 | ///// Stage stylesheet should always be found |
136 | this._stageStylesheet = this.getSheetFromElement(this.CONST.STAGE_SHEET_ID); | 136 | this._stageStylesheet = this.getSheetFromElement(this.CONST.STAGE_SHEET_ID); |
137 | // Returns null if sheet not found (as in non-ninja projects) | 137 | // Returns null if sheet not found (as in non-ninja projects) |