aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnanya Sen2012-02-28 12:26:52 -0800
committerAnanya Sen2012-02-28 12:26:52 -0800
commitada597016685a83f2c9a8b25b28589b9221569c0 (patch)
tree2c4a5fdd8cc72cc861fb3c75be151a1cc9d36977
parentbca9189a076432f35f99fc90f271c45ec00c0f1c (diff)
downloadninja-ada597016685a83f2c9a8b25b28589b9221569c0.tar.gz
reverting null checks as per request
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
-rwxr-xr-xjs/models/color-model.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/models/color-model.js b/js/models/color-model.js
index d3618c3e..2c86422f 100755
--- a/js/models/color-model.js
+++ b/js/models/color-model.js
@@ -265,7 +265,7 @@ exports.ColorModel = Montage.create(Component, {
265 //////////////////////////////////////////////////////// 265 ////////////////////////////////////////////////////////
266 case 'rgb': 266 case 'rgb':
267 //Checking for match of previous (RGB) 267 //Checking for match of previous (RGB)
268 if (color && color.r !== this.rgb.r && color.g !== this.rgb.g && color.b !== this.rgb.b) { 268 if (color.r !== this.rgb.r && color.g !== this.rgb.g && color.b !== this.rgb.b) {
269 //Setting value and breaking out of function 269 //Setting value and breaking out of function
270 this.rgb = color; 270 this.rgb = color;
271 return; 271 return;
@@ -279,7 +279,7 @@ exports.ColorModel = Montage.create(Component, {
279 //////////////////////////////////////////////////////// 279 ////////////////////////////////////////////////////////
280 case 'hsv': 280 case 'hsv':
281 //Checking for match of previous (HSV) 281 //Checking for match of previous (HSV)
282 if (color && color.h !== this.hsv.h && color.s !== this.hsv.s && color.v !== this.hsv.v) { 282 if (color.h !== this.hsv.h && color.s !== this.hsv.s && color.v !== this.hsv.v) {
283 //Setting value and breaking out of function 283 //Setting value and breaking out of function
284 this.hsv = color; 284 this.hsv = color;
285 return; 285 return;
@@ -293,7 +293,7 @@ exports.ColorModel = Montage.create(Component, {
293 //////////////////////////////////////////////////////// 293 ////////////////////////////////////////////////////////
294 case 'hsl': 294 case 'hsl':
295 //Checking for match of previous (HSV) 295 //Checking for match of previous (HSV)
296 if (color && color.h !== this.hsl.h && color.s !== this.hsl.s && color.l !== this.hsl.l) { 296 if (color.h !== this.hsl.h && color.s !== this.hsl.s && color.l !== this.hsl.l) {
297 //Setting value and breaking out of function 297 //Setting value and breaking out of function
298 this.hsl = color; 298 this.hsl = color;
299 return; 299 return;