From 2b626be502d0b480116b3d20c61c3f1118bb3428 Mon Sep 17 00:00:00 2001 From: Jonathan Puckey Date: Tue, 15 Feb 2011 12:05:39 +0100 Subject: [PATCH] Item: use internal _clipMask variable, so we don't collide with getters/setters. --- src/item/Item.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/item/Item.js b/src/item/Item.js index abff36b0..75e7e800 100644 --- a/src/item/Item.js +++ b/src/item/Item.js @@ -123,12 +123,12 @@ Item = Base.extend({ * @return {@true if the item defines a clip mask} */ isClipMask: function() { - return this.clipMask; + return this._clipMask; }, setClipMask: function(clipMask) { - this.clipMask = clipMask; - if (this.clipMask) { + this._clipMask = clipMask; + if (this._clipMask) { this.fillColor = null; this.strokeColor = null; }