diff --git a/route.js b/route.js index c365e1e..0a1fdea 100644 --- a/route.js +++ b/route.js @@ -11,11 +11,10 @@ var conversions = require('./conversions'); conversions that are not possible simply are not included. */ -// https://jsperf.com/object-keys-vs-for-in-with-closure/3 -var models = Object.keys(conversions); - function buildGraph() { var graph = {}; + // https://jsperf.com/object-keys-vs-for-in-with-closure/3 + var models = Object.keys(conversions); for (var len = models.length, i = 0; i < len; i++) { graph[models[i]] = {