mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Item: use internal _clipMask variable, so we don't collide with getters/setters.
This commit is contained in:
parent
f92da1297b
commit
2b626be502
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue