Permalink
Browse files

Clean up boolean logic.

  • Loading branch information...
1 parent 29c97c2 commit 368dad8ffae0bb0246ca34a11a16f7a681b6b210 @stephencelis committed Jun 26, 2011
Showing with 4 additions and 3 deletions.
  1. +4 −3 timeframe.js
View
@@ -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;

0 comments on commit 368dad8

Please sign in to comment.