Skip to content

Commit

Permalink
WIP: fix whitespace errors
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Mar 19, 2014
1 parent 201e1ad commit 111ad4f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ng/debounce.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ function $DebounceProvider() {
return $q.when(applyFn());
}
};

var callNow = immediate && !timeout;

// Reset the timeout
if ( timeout ) {
$timeout.cancel(timeout);
}
timeout = $timeout(delayComplete, delay, false);

if (callNow) {
return $q.when(applyFn());
}
Expand Down

0 comments on commit 111ad4f

Please sign in to comment.