angular-es-utils
Advanced tools
Comparing version 1.2.38 to 1.2.39
@@ -24,4 +24,4 @@ 'use strict'; | ||
var fn = descriptor.value || target[name]; | ||
var $timeout = null; | ||
var pendingDebounce = null; | ||
var $timeout = _injector2.default.get('$timeout'); | ||
@@ -35,2 +35,5 @@ descriptor.value = function () { | ||
// lazy init | ||
$timeout = $timeout || _injector2.default.get('$timeout'); | ||
$timeout.cancel(pendingDebounce); | ||
@@ -37,0 +40,0 @@ |
@@ -23,3 +23,3 @@ 'use strict'; | ||
var fn = descriptor.value || target[name]; | ||
var $timeout = _injector2.default.get('$timeout'); | ||
var $timeout = null; | ||
@@ -33,2 +33,4 @@ descriptor.value = function () { | ||
// lazy init | ||
$timeout = $timeout || _injector2.default.get('$timeout'); | ||
$timeout(function () { | ||
@@ -35,0 +37,0 @@ fn.apply(_this, args); |
{ | ||
"name": "angular-es-utils", | ||
"version": "1.2.38", | ||
"version": "1.2.39", | ||
"description": "es utils design for angular1.x", | ||
@@ -5,0 +5,0 @@ "main": "./index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28648
642