Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
fix(mdUtil): fix throttle() delay check
Browse files Browse the repository at this point in the history
Closes #977.
  • Loading branch information
gkalpak authored and ThomasBurleson committed Jan 8, 2015
1 parent 01bbc4c commit fdb923e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ angular.module('material.core')
var args = arguments;
var now = Util.now();

if (!recent || recent - now > delay) {
if (!recent || (now - recent > delay)) {
func.apply(context, args);
recent = now;
}
Expand Down

0 comments on commit fdb923e

Please sign in to comment.