Skip to content

Commit

Permalink
Clean up boolean logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis committed Jun 26, 2011
1 parent 29c97c2 commit 368dad8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions timeframe.js
Expand Up @@ -443,12 +443,13 @@ var Timeframe = Class.create({
if (!this.dragging) return;
if (!this.stuck) {
this.dragging = false;
if (this.timer)
if (this.timer) {
clearInterval(this.timer);
}
if (event.findElement('span.clear span.active')) {
this.clearRange();
} else {
if (this.options.keys().include('onFinished')) this.options.get('onFinished')();
} else if (this.options.keys().include('onFinished')) {
this.options.get('onFinished')();
}
}
this.mousedown = false;
Expand Down

0 comments on commit 368dad8

Please sign in to comment.