From 000ceb6467d7c79e22522a2575b413bd8d09b8f3 Mon Sep 17 00:00:00 2001
From: John Firebaugh
Date: Fri, 1 Feb 2013 11:36:53 -0500
Subject: [PATCH] iD.Context -> iD
All the UI setup code moved to iD.ui.
---
Makefile | 1 -
index.html | 9 +-
index_packaged.html | 14 +-
js/id/context.js | 44 -----
js/id/id.js | 323 +++++------------------------------
js/id/ui.js | 257 +++++++++++++++++++++++++++-
test/index.html | 1 -
test/spec/behavior/hash.js | 2 +-
test/spec/modes/add_point.js | 2 +-
9 files changed, 319 insertions(+), 334 deletions(-)
delete mode 100644 js/id/context.js
diff --git a/Makefile b/Makefile
index 598bce278..1db4f2efb 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,6 @@ all: \
js/lib/sha.js \
js/id/start.js \
js/id/id.js \
- js/id/context.js \
js/id/connection.js \
js/id/oauth.js \
js/id/services/*.js \
diff --git a/index.html b/index.html
index 306575804..ab6070fbc 100644
--- a/index.html
+++ b/index.html
@@ -123,7 +123,6 @@
-
@@ -135,9 +134,13 @@
locale.current = 'en';
d3.json('keys.json', function(err, keys) {
var id = iD();
- id.connection().keys(keys)
+
+ id.connection()
+ .keys(keys)
.url('http://api06.dev.openstreetmap.org');
- d3.select("#iD").call(id);
+
+ d3.select("#iD")
+ .call(id.ui())
});