Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Clean up boolean logic.

  • Loading branch information...
commit 368dad8ffae0bb0246ca34a11a16f7a681b6b210 1 parent 29c97c2
@stephencelis authored
Showing with 4 additions and 3 deletions.
  1. +4 −3 timeframe.js
View
7 timeframe.js
@@ -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;
Please sign in to comment.
Something went wrong with that request. Please try again.