diff options
author | Kruti Shah | 2012-06-12 13:09:11 -0700 |
---|---|---|
committer | Kruti Shah | 2012-06-12 13:09:11 -0700 |
commit | d648c842905c7c53e0f89b943982493d2b79f56e (patch) | |
tree | eb5585f92061975215f6d19305a8d1b76262e2fc /js/components/tools-properties/fill-properties.reel/fill-properties.js | |
parent | bedb38e14887b29eae3cdf1c8d435259c920257c (diff) | |
parent | cf3b96822665751dae7a64644db3cb3960733c3d (diff) | |
download | ninja-d648c842905c7c53e0f89b943982493d2b79f56e.tar.gz |
Merge branch 'refs/heads/TimelineUberjd' into TimelineUber
Conflicts:
js/controllers/elements/element-controller.js
js/document/_toDelete/html-document.js
js/panels/Timeline/Layer.reel/Layer.js
Signed-off-by: Kruti Shah <kruti.shah@motorola.com>
Diffstat (limited to 'js/components/tools-properties/fill-properties.reel/fill-properties.js')
-rwxr-xr-x | js/components/tools-properties/fill-properties.reel/fill-properties.js | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/js/components/tools-properties/fill-properties.reel/fill-properties.js b/js/components/tools-properties/fill-properties.reel/fill-properties.js index ae136956..7331b375 100755 --- a/js/components/tools-properties/fill-properties.reel/fill-properties.js +++ b/js/components/tools-properties/fill-properties.reel/fill-properties.js | |||
@@ -10,7 +10,6 @@ var Montage = require("montage/core/core").Montage, | |||
10 | 10 | ||
11 | var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { | 11 | var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { |
12 | 12 | ||
13 | _use3D: { value: false }, | ||
14 | addedColorChips: { value: false }, | 13 | addedColorChips: { value: false }, |
15 | 14 | ||
16 | _fill: { | 15 | _fill: { |
@@ -59,29 +58,17 @@ var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { | |||
59 | 58 | ||
60 | _subPrepare: { | 59 | _subPrepare: { |
61 | value: function() { | 60 | value: function() { |
62 | Object.defineBinding(this._fillMaterial, "items", { | 61 | Object.defineBinding(this.fillMaterial, "items", { |
63 | boundObject: this.application.ninja.appModel, | 62 | boundObject: this.application.ninja.appModel, |
64 | boundObjectPropertyPath: "materials", | 63 | boundObjectPropertyPath: "materials", |
65 | oneway: false | 64 | oneway: false |
66 | }); | 65 | }); |
67 | |||
68 | this.handleChange(null); | ||
69 | this._useWebGL.addEventListener("change", this, false); | ||
70 | } | 66 | } |
71 | }, | 67 | }, |
72 | 68 | ||
73 | handleChange: { | 69 | handleAction: { |
74 | value: function(event) { | 70 | value: function(event) { |
75 | if(this._useWebGL.checked) | 71 | (this.useWebGL.checked) ? this._materialsContainer.style["display"] = "" : this._materialsContainer.style["display"] = "none"; |
76 | { | ||
77 | this._use3D = true; | ||
78 | this._materialsContainer.style["display"] = ""; | ||
79 | } | ||
80 | else | ||
81 | { | ||
82 | this._use3D = false; | ||
83 | this._materialsContainer.style["display"] = "none"; | ||
84 | } | ||
85 | } | 72 | } |
86 | } | 73 | } |
87 | }); \ No newline at end of file | 74 | }); \ No newline at end of file |