From 372e009888654c1f8b622fae356763de970465df Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 13 Feb 2013 16:15:49 -0800 Subject: [PATCH] Assign id at top level So you can do id.graph(), etc. in the console for debugging. --- index.html | 4 ++-- index_packaged.html | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 341fc1ad1..6941ce008 100644 --- a/index.html +++ b/index.html @@ -165,9 +165,9 @@ .current('en') .current(iD.detect().locale); - d3.json('keys.json', function(err, keys) { - var id = iD(); + var id = iD(); + d3.json('keys.json', function(err, keys) { id.connection() .keys(keys); diff --git a/index_packaged.html b/index_packaged.html index a961a5202..7da953292 100644 --- a/index_packaged.html +++ b/index_packaged.html @@ -17,9 +17,10 @@