mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-07 13:22:07 -05:00
Replace beans access with internal property.
This commit is contained in:
parent
276eb3301e
commit
38ddd34589
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue