mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-07-29 07:09:45 -04:00
Rename ChangeFlags -> ChangeFlag.
This commit is contained in:
parent
f0bc3f115b
commit
0df909dd71
6 changed files with 16 additions and 16 deletions
src/path
|
@ -60,14 +60,14 @@ var Path = this.Path = PathItem.extend({
|
|||
},
|
||||
|
||||
_changed: function(flags) {
|
||||
if (flags & ChangeFlags.GEOMETRY) {
|
||||
if (flags & ChangeFlag.GEOMETRY) {
|
||||
delete this._bounds;
|
||||
delete this._position;
|
||||
delete this._strokeBounds;
|
||||
delete this._length;
|
||||
// Clockwise state becomes undefined as soon as geometry changes.
|
||||
delete this._clockwise;
|
||||
} else if (flags & ChangeFlags.STROKE) {
|
||||
} else if (flags & ChangeFlag.STROKE) {
|
||||
delete this._strokeBounds;
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue