Fix fullLength leaking into globals

This commit is contained in:
Ben Firshman 2012-08-07 16:37:42 +01:00
parent bb5bc4e85a
commit dc1161b32a

View file

@ -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;