From 2be70ae73f976464c0fd1e4a368747de0a5403ea Mon Sep 17 00:00:00 2001
From: Jonathan Puckey <me@jonathanpuckey.com>
Date: Mon, 16 May 2011 15:46:25 +0200
Subject: [PATCH] Gradient#setStops: improve checking for array.

---
 src/color/Gradient.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/color/Gradient.js b/src/color/Gradient.js
index 68cdc0ba..66ab170d 100644
--- a/src/color/Gradient.js
+++ b/src/color/Gradient.js
@@ -41,7 +41,7 @@ var Gradient = this.Gradient = Base.extend({
 				var rampPoint;
 				var stop = stops[i];
 				// If it is an array, the second argument is the rampPoint:
-				if (stop.length) {
+				if (Array.isArray(stop)) {
 					rampPoint = stop[1];
 					stop = stop[0];
 				} else {