Permalink
Browse files

perf(index): single array index for system key

  • Loading branch information...
EisenbergEffect committed Oct 1, 2017
1 parent 3363afa commit f5e36b188eef5ef9a7c9b76e40e94c9f2b9df3ba
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/index.js
View
@@ -180,7 +180,8 @@ if (!PLATFORM.global.System || !PLATFORM.global.System.import) {
const keys = Array.from(System.registry.keys());
for (let i = 0; i < keys.length; i++) {
try {
if (callback(keys[i], System.registry.get(keys[i]))) { return; }
let key = keys[i];
if (callback(key, System.registry.get(key))) { return; }
} catch (e) {}
}
return;

0 comments on commit f5e36b1

Please sign in to comment.