From 2c6339a9191033c937c2bac3e181c2bc380f4c48 Mon Sep 17 00:00:00 2001 From: Nivesh Rajbhandari Date: Mon, 12 Mar 2012 12:00:07 -0700 Subject: Fixed element mediator, PI, and eye-dropper to handle different borders sides and gradients. Signed-off-by: Nivesh Rajbhandari --- js/models/color-model.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'js/models/color-model.js') diff --git a/js/models/color-model.js b/js/models/color-model.js index 2c86422f..4189fbef 100755 --- a/js/models/color-model.js +++ b/js/models/color-model.js @@ -574,6 +574,9 @@ exports.ColorModel = Montage.create(Component, { temp = this.hslToRgb(color.h/360, color.s/100, color.l/100); } else if (color.r !== undefined) { temp = color; + } else if (color.gradientMode) { + // TODO - Need to handle gradients at some point + return null; } temp.a = color.a; } -- cgit v1.2.3