diff options
author | Eric Guzman | 2012-05-22 14:28:00 -0700 |
---|---|---|
committer | Eric Guzman | 2012-05-22 14:28:00 -0700 |
commit | 1c3da2901f454ad2c18e20216bb2517740a1c080 (patch) | |
tree | f91f102be89eb01362da1a7d209deecb98b413a9 /js/components/toolbar.reel/toolbar.js | |
parent | 70a85334144a9516fdec7b09eb5c9856230d12f1 (diff) | |
download | ninja-1c3da2901f454ad2c18e20216bb2517740a1c080.tar.gz |
CSS Panel - Update components to use new serialization format
Diffstat (limited to 'js/components/toolbar.reel/toolbar.js')
-rw-r--r-- | js/components/toolbar.reel/toolbar.js | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/js/components/toolbar.reel/toolbar.js b/js/components/toolbar.reel/toolbar.js index 8f93aa2b..2ccdb2c5 100644 --- a/js/components/toolbar.reel/toolbar.js +++ b/js/components/toolbar.reel/toolbar.js | |||
@@ -11,17 +11,31 @@ exports.Toolbar = Montage.create(Component, { | |||
11 | _needsButtonProperties : { | 11 | _needsButtonProperties : { |
12 | value: null | 12 | value: null |
13 | }, | 13 | }, |
14 | _sourceObject : { | ||
15 | value: null | ||
16 | }, | ||
17 | sourceObject : { | ||
18 | get: function() { | ||
19 | return this._sourceObject; | ||
20 | }, | ||
21 | set: function(value) { | ||
22 | if(value === this._sourceObject) { return; } | ||
23 | this._sourceObject = value; | ||
24 | }, | ||
25 | serializable: true | ||
26 | }, | ||
14 | leftAlignClass : { value: "left-button" }, | 27 | leftAlignClass : { value: "left-button" }, |
15 | hideButtonClass : { value: "hide-button" }, | 28 | hideButtonClass : { value: "hide-button" }, |
16 | _buttons : { value: null }, | 29 | _buttons : { value: [], distinct: true }, |
17 | buttons : { | 30 | buttons : { |
18 | get: function() { | 31 | get: function() { |
19 | return this._buttons; | 32 | return this._buttons; |
20 | }, | 33 | }, |
21 | set: function(btns) { | 34 | set: function(btns) { |
22 | this._buttons = btns; | 35 | this._buttons = btns; |
23 | this._needsButtonProperties = this.needsDraw = true;; | 36 | this._needsButtonProperties = this.needsDraw = true; |
24 | } | 37 | }, |
38 | serializable: true | ||
25 | }, | 39 | }, |
26 | 40 | ||
27 | _buttonToHide : { | 41 | _buttonToHide : { |