mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2025-01-04 03:45:58 -05:00
Fix fullLength leaking into globals
This commit is contained in:
parent
bb5bc4e85a
commit
dc1161b32a
1 changed files with 1 additions and 1 deletions
|
@ -231,7 +231,7 @@ var Curve = this.Curve = Base.extend(/** @lends Curve# */{
|
|||
getLength: function(/* from, to */) {
|
||||
// Hide parameters from Bootstrap so it injects bean too
|
||||
var from = arguments[0],
|
||||
to = arguments[1];
|
||||
to = arguments[1],
|
||||
fullLength = arguments.length == 0 || from == 0 && to == 1;
|
||||
if (fullLength && this._length != null)
|
||||
return this._length;
|
||||
|
|
Loading…
Reference in a new issue