aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Panel.reel/Panel.js
diff options
context:
space:
mode:
authorArmen Kesablyan2012-06-19 01:03:59 -0700
committerArmen Kesablyan2012-06-19 01:03:59 -0700
commit2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch)
treed352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /js/panels/Panel.reel/Panel.js
parent244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff)
parentc59eb371559a3061ce53223e249ca97daace5968 (diff)
downloadninja-2e13a73e4ee980a6f73f6ff48b2a195eb209a7db.tar.gz
Merge branch 'refs/heads/master' into binding
Conflicts: js/components/layout/tools-list.reel/tools-list.html js/components/layout/tools-properties.reel/tools-properties.html js/document/document-html.js js/document/templates/app/main.js js/panels/Panel.reel/Panel.js node_modules/montage/ui/native-control.js Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/panels/Panel.reel/Panel.js')
-rwxr-xr-xjs/panels/Panel.reel/Panel.js14
1 files changed, 10 insertions, 4 deletions
diff --git a/js/panels/Panel.reel/Panel.js b/js/panels/Panel.reel/Panel.js
index 3783459e..16643813 100755
--- a/js/panels/Panel.reel/Panel.js
+++ b/js/panels/Panel.reel/Panel.js
@@ -13,10 +13,15 @@ exports.Panel = Montage.create(Component, {
13 value: "Panel" 13 value: "Panel"
14 }, 14 },
15 15
16 groups: { 16 groups: {
17 value: [] 17 value: []
18 }, 18 },
19 19
20 panelContent: {
21 value: null,
22 serializable: true
23 },
24
20 _collapsed: { 25 _collapsed: {
21 value: false 26 value: false
22 }, 27 },
@@ -50,7 +55,8 @@ exports.Panel = Montage.create(Component, {
50 }, 55 },
51 56
52 resizer: { 57 resizer: {
53 value: null 58 value: null,
59 serializable: true
54 }, 60 },
55 61
56 modulePath: { 62 modulePath: {
@@ -120,8 +126,8 @@ exports.Panel = Montage.create(Component, {
120 126
121 this._currentDocument = value; 127 this._currentDocument = value;
122 128
123 if(typeof this.panelContent.content[0].controller._currentDocument !== "undefined") { 129 if(typeof this.panelContent.content._element.controller._currentDocument !== "undefined") {
124 this.panelContent.content[0].controller.currentDocument = this._currentDocument; 130 this.panelContent.content._element.controller.currentDocument = this._currentDocument;
125 } 131 }
126 132
127 if(!value) { 133 if(!value) {