Change name of variable breakingProcess.

It's too ambiguous to understand the purpose of the variable.
This commit is contained in:
Hyunje Alex Jun 2014-10-31 19:20:23 +00:00
parent aa92487ed3
commit f9c3dc0b20

View File

@ -640,7 +640,7 @@
var startOffset = {}; var startOffset = {};
var startTime = 0; var startTime = 0;
var speed = {}; var speed = {};
var breakingProcess = null; var easingLoop = null;
var inGlobalTouch = false; var inGlobalTouch = false;
var inLocalTouch = false; var inLocalTouch = false;
@ -680,8 +680,8 @@
startTime = (new Date()).getTime(); startTime = (new Date()).getTime();
if (breakingProcess !== null) { if (easingLoop !== null) {
clearInterval(breakingProcess); clearInterval(easingLoop);
} }
e.stopPropagation(); e.stopPropagation();
@ -716,15 +716,15 @@
if (!inGlobalTouch && inLocalTouch) { if (!inGlobalTouch && inLocalTouch) {
inLocalTouch = false; inLocalTouch = false;
clearInterval(breakingProcess); clearInterval(easingLoop);
breakingProcess = setInterval(function () { easingLoop = setInterval(function () {
if (!isPluginAlive()) { if (!isPluginAlive()) {
clearInterval(breakingProcess); clearInterval(easingLoop);
return; return;
} }
if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) { if (Math.abs(speed.x) < 0.01 && Math.abs(speed.y) < 0.01) {
clearInterval(breakingProcess); clearInterval(easingLoop);
return; return;
} }