From 91d9c368069aca87ab3f75785b66053b35e44aa9 Mon Sep 17 00:00:00 2001 From: WangYulong Date: Tue, 6 Nov 2012 14:42:18 +0800 Subject: [PATCH] Update g.raphael.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit if snapEnds's steps == 0, var d on line 732 will beĀ infinite, and the while on 748 will be endless --- g.raphael.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/g.raphael.js b/g.raphael.js index 27f27ca..02ca822 100644 --- a/g.raphael.js +++ b/g.raphael.js @@ -719,6 +719,8 @@ Raphael.g = { var f = from, t = to; + steps = steps || 10; + if (f == t) { return {from: f, to: t, power: 0}; }