From d44f3196c925332dcaf45f7cf8c64e22a1994bb9 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Mon, 4 Jun 2012 17:11:06 -0700 Subject: Fill and Ink-Bottle fixes. Signed-off-by: Nivesh Rajbhandari --- .../fill-properties.reel/fill-properties.js | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) (limited to 'js/components/tools-properties/fill-properties.reel/fill-properties.js') 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, var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { - _use3D: { value: false }, addedColorChips: { value: false }, _fill: { @@ -59,29 +58,17 @@ var FillProperties = exports.FillProperties = Montage.create(ToolProperties, { _subPrepare: { value: function() { - Object.defineBinding(this._fillMaterial, "items", { + Object.defineBinding(this.fillMaterial, "items", { boundObject: this.application.ninja.appModel, boundObjectPropertyPath: "materials", oneway: false }); - - this.handleChange(null); - this._useWebGL.addEventListener("change", this, false); } }, - handleChange: { + handleAction: { value: function(event) { - if(this._useWebGL.checked) - { - this._use3D = true; - this._materialsContainer.style["display"] = ""; - } - else - { - this._use3D = false; - this._materialsContainer.style["display"] = "none"; - } + (this.useWebGL.checked) ? this._materialsContainer.style["display"] = "" : this._materialsContainer.style["display"] = "none"; } } }); \ No newline at end of file -- cgit v1.2.3