Skip to content

Commit

Permalink
Merge pull request #104 from skyline0705/patch-1
Browse files Browse the repository at this point in the history
bug fix for Object.entires use in Chrome 65
  • Loading branch information
toxic-johann committed Mar 9, 2018
2 parents 440a266 + a477b36 commit 3850015
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dispatcher/index.js
Expand Up @@ -578,7 +578,8 @@ export default class Dispatcher {

if (isObject(kernels)) {
// SKC means SingleKernelConfig
Object.entries(kernels).forEach(([ key: string, fnOrSKC: string | SingleKernelConfig ]) => {
Object.keys(kernels).forEach((key: string) => {
const fnOrSKC: string | SingleKernelConfig = kernels[key];
// if it's a function, means we need to do nothing
if (isFunction(fnOrSKC)) {
newPreset[key] = fnOrSKC;
Expand Down

0 comments on commit 3850015

Please sign in to comment.