diff options
author | Valerio Virgillito | 2012-06-05 00:11:03 -0700 |
---|---|---|
committer | Valerio Virgillito | 2012-06-05 00:11:03 -0700 |
commit | f7e4257745ccd44b8d24555f0ef787429d6e472c (patch) | |
tree | 1965bbb794036a8d6184630c188a34f7a6d956e0 /node_modules/montage/ui/condition.reel/condition.js | |
parent | c1ec69879028220b0c3f11ad6e24035bf527802c (diff) | |
download | ninja-f7e4257745ccd44b8d24555f0ef787429d6e472c.tar.gz |
adding the latest v0.10 montage
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'node_modules/montage/ui/condition.reel/condition.js')
-rwxr-xr-x | node_modules/montage/ui/condition.reel/condition.js | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/node_modules/montage/ui/condition.reel/condition.js b/node_modules/montage/ui/condition.reel/condition.js index 7553c14f..a1a421ab 100755 --- a/node_modules/montage/ui/condition.reel/condition.js +++ b/node_modules/montage/ui/condition.reel/condition.js | |||
@@ -26,7 +26,6 @@ exports.Condition = Montage.create(Component, /** @lends module:"montage/ui/cond | |||
26 | @default {Boolean} false | 26 | @default {Boolean} false |
27 | */ | 27 | */ |
28 | hasTemplate: { | 28 | hasTemplate: { |
29 | enumerable: false, | ||
30 | value: false | 29 | value: false |
31 | }, | 30 | }, |
32 | /** | 31 | /** |
@@ -34,7 +33,6 @@ exports.Condition = Montage.create(Component, /** @lends module:"montage/ui/cond | |||
34 | @private | 33 | @private |
35 | */ | 34 | */ |
36 | _condition: { | 35 | _condition: { |
37 | enumerable: false, | ||
38 | value: null | 36 | value: null |
39 | }, | 37 | }, |
40 | /** | 38 | /** |
@@ -43,7 +41,6 @@ exports.Condition = Montage.create(Component, /** @lends module:"montage/ui/cond | |||
43 | @default null | 41 | @default null |
44 | */ | 42 | */ |
45 | condition: { | 43 | condition: { |
46 | enumerable: false, | ||
47 | set: function(value) { | 44 | set: function(value) { |
48 | 45 | ||
49 | if (value === this._condition) { | 46 | if (value === this._condition) { |
@@ -63,15 +60,15 @@ exports.Condition = Montage.create(Component, /** @lends module:"montage/ui/cond | |||
63 | }, | 60 | }, |
64 | get: function() { | 61 | get: function() { |
65 | return this._condition; | 62 | return this._condition; |
66 | } | 63 | }, |
64 | serializable: true | ||
67 | }, | 65 | }, |
68 | 66 | ||
69 | /** | 67 | /** |
70 | @private | 68 | @private |
71 | */ | 69 | */ |
72 | _removalStrategy:{ | 70 | _removalStrategy:{ |
73 | value: "remove", | 71 | value: "remove" |
74 | enumerable:false | ||
75 | }, | 72 | }, |
76 | 73 | ||
77 | // TODO should this strategy be part of another class? | 74 | // TODO should this strategy be part of another class? |
@@ -89,7 +86,8 @@ exports.Condition = Montage.create(Component, /** @lends module:"montage/ui/cond | |||
89 | } | 86 | } |
90 | this._removalStrategy = value; | 87 | this._removalStrategy = value; |
91 | this.needsDraw = true; | 88 | this.needsDraw = true; |
92 | } | 89 | }, |
90 | serializable: true | ||
93 | }, | 91 | }, |
94 | 92 | ||
95 | prepareForDraw: { | 93 | prepareForDraw: { |
@@ -105,7 +103,6 @@ exports.Condition = Montage.create(Component, /** @lends module:"montage/ui/cond | |||
105 | @function | 103 | @function |
106 | */ | 104 | */ |
107 | draw: { | 105 | draw: { |
108 | enumerable: false, | ||
109 | value: function() { | 106 | value: function() { |
110 | 107 | ||
111 | if (this.condition) { | 108 | if (this.condition) { |