requestanimationframe-timer
Advanced tools
Comparing version 1.0.2 to 1.0.3
@@ -5,2 +5,7 @@ # Change Log | ||
<a name="1.0.3"></a> | ||
## [1.0.3](https://github.com/kambing86/requestanimationframe-timer/compare/v1.0.2...v1.0.3) (2018-01-04) | ||
<a name="1.0.2"></a> | ||
@@ -7,0 +12,0 @@ ## [1.0.2](https://github.com/kambing86/requestanimationframe-timer/compare/v1.0.1...v1.0.2) (2018-01-03) |
@@ -7,6 +7,10 @@ 'use strict'; | ||
var _raf = require('raf'); | ||
var _raf2 = _interopRequireDefault(_raf); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _toConsumableArray(arr) { if (Array.isArray(arr)) { for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) { arr2[i] = arr[i]; } return arr2; } else { return Array.from(arr); } } | ||
var raf = require('raf'); | ||
var MODE_TIMEOUT = 0; | ||
@@ -63,3 +67,3 @@ var MODE_INTERVAL = 1; | ||
} | ||
raf(loop); | ||
(0, _raf2.default)(loop); | ||
} | ||
@@ -85,3 +89,3 @@ | ||
rafStarted = true; | ||
raf(loop); | ||
(0, _raf2.default)(loop); | ||
} | ||
@@ -88,0 +92,0 @@ startId += 1; |
{ | ||
"name": "requestanimationframe-timer", | ||
"version": "1.0.2", | ||
"description": "", | ||
"version": "1.0.3", | ||
"description": "setTimeout and setInterval by using requestAnimationFrame", | ||
"main": "dist/cjs.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
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
9327
102