From 38ddd345897635d3e30367ffae2e8cf9fddfcc52 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Lehni?= Date: Thu, 19 May 2011 22:00:03 +0100 Subject: [PATCH] Replace beans access with internal property. --- src/color/Gradient.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/color/Gradient.js b/src/color/Gradient.js index 1a0c8aeb..3e9b4398 100644 --- a/src/color/Gradient.js +++ b/src/color/Gradient.js @@ -42,9 +42,9 @@ var Gradient = this.Gradient = Base.extend({ }, equals: function(gradient) { - if (this.stops.length == gradient.stops.length) { - for (var i = 0, l = this.stops.length; i < l; i++) { - if (!this.stops[i].equals(gradient.stops[i])) + if (this._stops.length == gradient._stops.length) { + for (var i = 0, l = this._stops.length; i < l; i++) { + if (!this._stops[i].equals(gradient._stops[i])) return false; } return true;