From dc1161b32ad4c4177f63eaf5b2b797849f753fa7 Mon Sep 17 00:00:00 2001 From: Ben Firshman Date: Tue, 7 Aug 2012 16:37:42 +0100 Subject: [PATCH] Fix fullLength leaking into globals --- src/path/Curve.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/path/Curve.js b/src/path/Curve.js index 0aad6847..9e4fc296 100644 --- a/src/path/Curve.js +++ b/src/path/Curve.js @@ -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;