diff options
author | Armen Kesablyan | 2012-06-19 01:03:59 -0700 |
---|---|---|
committer | Armen Kesablyan | 2012-06-19 01:03:59 -0700 |
commit | 2e13a73e4ee980a6f73f6ff48b2a195eb209a7db (patch) | |
tree | d352f5e769eae0e1b7b76ccbeafa9b174b1a9918 /js/panels/Timeline/Layer.reel/Layer.js | |
parent | 244e608645778746d1a3b5aa0d4c0868f7c5c272 (diff) | |
parent | c59eb371559a3061ce53223e249ca97daace5968 (diff) | |
download | ninja-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/Timeline/Layer.reel/Layer.js')
-rw-r--r-- | js/panels/Timeline/Layer.reel/Layer.js | 47 |
1 files changed, 44 insertions, 3 deletions
diff --git a/js/panels/Timeline/Layer.reel/Layer.js b/js/panels/Timeline/Layer.reel/Layer.js index 16fb0303..a2d6444d 100644 --- a/js/panels/Timeline/Layer.reel/Layer.js +++ b/js/panels/Timeline/Layer.reel/Layer.js | |||
@@ -15,8 +15,34 @@ var nj = require("js/lib/NJUtils").NJUtils; | |||
15 | 15 | ||
16 | var Layer = exports.Layer = Montage.create(Component, { | 16 | var Layer = exports.Layer = Montage.create(Component, { |
17 | 17 | ||
18 | hasTemplate:{ | 18 | dynamicLayerTag: { |
19 | value: true | 19 | value: null, |
20 | serializable: true | ||
21 | }, | ||
22 | |||
23 | positionCollapser: { | ||
24 | value: null, | ||
25 | serializable: true | ||
26 | }, | ||
27 | |||
28 | transformCollapser: { | ||
29 | value: null, | ||
30 | serializable: true | ||
31 | }, | ||
32 | |||
33 | styleCollapser: { | ||
34 | value: null, | ||
35 | serializable: true | ||
36 | }, | ||
37 | |||
38 | clickerMain: { | ||
39 | value: null, | ||
40 | serializable: true | ||
41 | }, | ||
42 | |||
43 | myLabel: { | ||
44 | value: null, | ||
45 | serializable: true | ||
20 | }, | 46 | }, |
21 | 47 | ||
22 | /* Begin: Models */ | 48 | /* Begin: Models */ |
@@ -31,7 +57,8 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
31 | }, | 57 | }, |
32 | set: function(newVal) { | 58 | set: function(newVal) { |
33 | this._mainCollapser = newVal; | 59 | this._mainCollapser = newVal; |
34 | } | 60 | }, |
61 | serializable: true | ||
35 | }, | 62 | }, |
36 | 63 | ||
37 | /* Style models: the array of styles, and the repetition that uses them */ | 64 | /* Style models: the array of styles, and the repetition that uses them */ |
@@ -345,6 +372,19 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
345 | _layerEditable : { | 372 | _layerEditable : { |
346 | value: false | 373 | value: false |
347 | }, | 374 | }, |
375 | |||
376 | _dynamicLayerName:{ | ||
377 | value:true | ||
378 | }, | ||
379 | dynamicLayerName:{ | ||
380 | serializable:true, | ||
381 | get:function () { | ||
382 | return this._dynamicLayerName; | ||
383 | }, | ||
384 | set:function (newVal) { | ||
385 | this._dynamicLayerName = newVal; | ||
386 | } | ||
387 | }, | ||
348 | 388 | ||
349 | // Are the various collapsers collapsed or not | 389 | // Are the various collapsers collapsed or not |
350 | _isMainCollapsed : { | 390 | _isMainCollapsed : { |
@@ -429,6 +469,7 @@ var Layer = exports.Layer = Montage.create(Component, { | |||
429 | }, | 469 | }, |
430 | 470 | ||
431 | layerData:{ | 471 | layerData:{ |
472 | serializable: true, | ||
432 | get:function(){ | 473 | get:function(){ |
433 | return this._layerData; | 474 | return this._layerData; |
434 | }, | 475 | }, |