From 21d879f355a5c9ff6b04da2ed36dd62ac0922596 Mon Sep 17 00:00:00 2001 From: Georgios Kalpakas Date: Thu, 18 Dec 2014 16:27:03 +0200 Subject: [PATCH] fix(mdUtil): fix `throttle()` delay check --- src/core/util/util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/util/util.js b/src/core/util/util.js index 1b563cc56f..53d4e083da 100644 --- a/src/core/util/util.js +++ b/src/core/util/util.js @@ -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; }