Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
reduce unused vars
Browse files Browse the repository at this point in the history
  • Loading branch information
dalisoft committed Feb 24, 2019
1 parent bf47c78 commit e7e2198
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/shim.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,4 @@
/* global global */
export let assign = (source, ...args) => {
for (let i = 0, len = args.length; i < len; i++) {
const arg = args[i]
for (const p in arg) {
source[p] = arg[p]
}
}
return source
}
/* global global, self */
export let root =
typeof self !== 'undefined'
? self : typeof window !== 'undefined'
Expand All @@ -17,7 +8,7 @@ export let root =
? exports : {})
export let requestAnimationFrame =
root.requestAnimationFrame ||
((fn) => root.setTimeout(fn, 16))
((fn) => root.setTimeout(fn, 50 / 3))
export let cancelAnimationFrame =
root.cancelAnimationFrame ||
((id) => root.clearTimeout(id))

0 comments on commit e7e2198

Please sign in to comment.