Item: use internal _clipMask variable, so we don't collide with getters/setters.

This commit is contained in:
Jonathan Puckey 2011-02-15 12:05:39 +01:00
parent f92da1297b
commit 2b626be502

View file

@ -123,12 +123,12 @@ Item = Base.extend({
* @return {@true if the item defines a clip mask} * @return {@true if the item defines a clip mask}
*/ */
isClipMask: function() { isClipMask: function() {
return this.clipMask; return this._clipMask;
}, },
setClipMask: function(clipMask) { setClipMask: function(clipMask) {
this.clipMask = clipMask; this._clipMask = clipMask;
if (this.clipMask) { if (this._clipMask) {
this.fillColor = null; this.fillColor = null;
this.strokeColor = null; this.strokeColor = null;
} }