diff options
author | Nivesh Rajbhandari | 2012-02-22 16:41:00 -0800 |
---|---|---|
committer | Nivesh Rajbhandari | 2012-02-22 16:41:00 -0800 |
commit | 5272d5585b0fbae233d829ac9a9b5207838ec74c (patch) | |
tree | a6420c0b47875205624ec5de55d9b0968f63bf9a /js/controllers | |
parent | 7b9b1e6dab88875b85230fc6f4fa0fca94e8b82f (diff) | |
parent | 3285038757aed8bf200fb6a97ebbf2f49a998869 (diff) | |
download | ninja-5272d5585b0fbae233d829ac9a9b5207838ec74c.tar.gz |
Merge branch 'refs/heads/ToolFixes' into WebGLMaterials
Diffstat (limited to 'js/controllers')
-rwxr-xr-x | js/controllers/color-controller.js | 14 | ||||
-rwxr-xr-x | js/controllers/elements/image-controller.js | 2 |
2 files changed, 14 insertions, 2 deletions
diff --git a/js/controllers/color-controller.js b/js/controllers/color-controller.js index e3b15f1c..a6e41dd3 100755 --- a/js/controllers/color-controller.js +++ b/js/controllers/color-controller.js | |||
@@ -322,7 +322,19 @@ exports.ColorController = Montage.create(Component, { | |||
322 | //Simple solid color | 322 | //Simple solid color |
323 | color = this.parseCssToColor(css); | 323 | color = this.parseCssToColor(css); |
324 | } | 324 | } |
325 | //Returning color object (or null if none) | 325 | // TODO - Hack for inconsistent color object -- some workflows set color.color and some color.value |
326 | if(color) | ||
327 | { | ||
328 | if(color.value && !color.color) | ||
329 | { | ||
330 | color.color = color.value; | ||
331 | } | ||
332 | else if(color.color && !color.value) | ||
333 | { | ||
334 | color.value = color.color; | ||
335 | } | ||
336 | } | ||
337 | //Returning color object (or null if none) | ||
326 | return color; | 338 | return color; |
327 | } | 339 | } |
328 | }, | 340 | }, |
diff --git a/js/controllers/elements/image-controller.js b/js/controllers/elements/image-controller.js index 5abce13e..25ca8da6 100755 --- a/js/controllers/elements/image-controller.js +++ b/js/controllers/elements/image-controller.js | |||
@@ -19,7 +19,7 @@ exports.ImageController = Montage.create(ElementController, { | |||
19 | return el.getAttribute(prop); | 19 | return el.getAttribute(prop); |
20 | break; | 20 | break; |
21 | default: | 21 | default: |
22 | return ElementController.getProperty(el, prop); | 22 | return ElementController.getProperty(el, prop, true); |
23 | } | 23 | } |
24 | } | 24 | } |
25 | }, | 25 | }, |