diff options
author | Armen Kesablyan | 2012-06-11 11:17:41 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-11 11:17:41 -0700 |
commit | 278769df00ced8620fd73371e38fe2e43f07ca3b (patch) | |
tree | deb505c8a66b660eee1f17a2c6c4c575c7939f6f /js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js | |
parent | 555fd6efa605b937800b3979a4c68fa7eb8666ae (diff) | |
parent | 0f040acabfb7a4bf3138debec5aff869487ceb11 (diff) | |
download | ninja-278769df00ced8620fd73371e38fe2e43f07ca3b.tar.gz |
Merge branch 'refs/heads/master' into binding
Conflicts:
js/document/models/html.js
js/document/views/design.js
js/ninja.reel/ninja.js
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js')
-rw-r--r-- | js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js index 5081a124..9e3b4a49 100644 --- a/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js +++ b/js/panels/css-panel/style-sheets-view.reel/style-sheets-view.js | |||
@@ -63,10 +63,10 @@ exports.StyleSheetsView = Montage.create(Component, { | |||
63 | if(this.styleSheetList) { | 63 | if(this.styleSheetList) { |
64 | sheetComponent = this.styleSheetList.childComponents[this.styleSheets.indexOf(sheet)]; | 64 | sheetComponent = this.styleSheetList.childComponents[this.styleSheets.indexOf(sheet)]; |
65 | if(sheetComponent) { | 65 | if(sheetComponent) { |
66 | sheetComponent.default = true; | 66 | sheetComponent['default'] = true; |
67 | if(this._defaultStyleSheet) { | 67 | if(this._defaultStyleSheet) { |
68 | oldDefaultSheet = this.styleSheetList.childComponents[this.styleSheets.indexOf(this._defaultStyleSheet)]; | 68 | oldDefaultSheet = this.styleSheetList.childComponents[this.styleSheets.indexOf(this._defaultStyleSheet)]; |
69 | oldDefaultSheet.default = false; | 69 | oldDefaultSheet['default'] = false; |
70 | } | 70 | } |
71 | } | 71 | } |
72 | } | 72 | } |
@@ -115,12 +115,12 @@ exports.StyleSheetsView = Montage.create(Component, { | |||
115 | 115 | ||
116 | handleStyleSheetsReady : { | 116 | handleStyleSheetsReady : { |
117 | value: function(e) { | 117 | value: function(e) { |
118 | this.documentName = this.stylesController.activeDocument.name; | 118 | this.documentName = this.stylesController.currentDocument.name; |
119 | this.styleSheets = this.stylesController.userStyleSheets; | 119 | this.styleSheets = this.stylesController.userStyleSheets; |
120 | 120 | ||
121 | Object.defineBinding(this, 'activeDocument', { | 121 | Object.defineBinding(this, 'activeDocument', { |
122 | 'boundObject': this.stylesController, | 122 | 'boundObject': this.stylesController, |
123 | 'boundObjectPropertyPath': 'activeDocument', | 123 | 'boundObjectPropertyPath': 'currentDocument', |
124 | 'oneway': true | 124 | 'oneway': true |
125 | }); | 125 | }); |
126 | 126 | ||