aboutsummaryrefslogtreecommitdiff
path: root/js/controllers/elements/element-controller.js
diff options
context:
space:
mode:
authorNivesh Rajbhandari2012-06-04 17:11:06 -0700
committerNivesh Rajbhandari2012-06-04 17:12:36 -0700
commitd44f3196c925332dcaf45f7cf8c64e22a1994bb9 (patch)
tree770ac0df9b73ee8fad584bfd1708ed2866910c92 /js/controllers/elements/element-controller.js
parentc1ec69879028220b0c3f11ad6e24035bf527802c (diff)
downloadninja-d44f3196c925332dcaf45f7cf8c64e22a1994bb9.tar.gz
Fill and Ink-Bottle fixes.
Signed-off-by: Nivesh Rajbhandari <mqg734@motorola.com>
Diffstat (limited to 'js/controllers/elements/element-controller.js')
-rwxr-xr-xjs/controllers/elements/element-controller.js24
1 files changed, 24 insertions, 0 deletions
diff --git a/js/controllers/elements/element-controller.js b/js/controllers/elements/element-controller.js
index 01e132d7..fd4d3c12 100755
--- a/js/controllers/elements/element-controller.js
+++ b/js/controllers/elements/element-controller.js
@@ -225,6 +225,30 @@ exports.ElementController = Montage.create(Component, {
225 } 225 }
226 }, 226 },
227 227
228 getFill: {
229 value: function(el, fill) {
230 var fillInfo = {},
231 color;
232 if(fill.colorInfo) {
233 fillInfo.colorInfo = {};
234 color = this.getColor(el, true);
235 if(color && color.color) {
236 fillInfo.colorInfo.mode = color.mode;
237 fillInfo.colorInfo.color = color.color;
238 } else {
239 fillInfo.colorInfo.mode = "nocolor";
240 fillInfo.colorInfo.color = null;
241 }
242 }
243 return fillInfo;
244 }
245 },
246
247 setFill: {
248 value: function(el, fill, eventType, source) {
249 this.setColor(el, fill.colorInfo, true);
250 }
251 },
228 //-------------------------------------------------------------------------------------------------------- 252 //--------------------------------------------------------------------------------------------------------
229 // Routines to get/set 3D properties 253 // Routines to get/set 3D properties
230 get3DProperty: { 254 get3DProperty: {