From d22b457816aac6bee24789295fa870fdc382d8c7 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Tue, 16 Oct 2012 15:15:51 -0400 Subject: [PATCH] Using underscore instead of dojo's array. underscore also handles the issue of a cross-browser .forEach, but supports the rest of the functional toolkit, so allows us to express stuff like tag filtering more efficiently. It's also a pretty common ingredient in other JS code so should feel familiar to a bunch of people. --- index.html | 1 + js/iD/Connection.js | 72 ++++++++++++++++++-------------------- js/iD/Node.js | 9 ++--- js/iD/Relation.js | 6 ++-- js/iD/Way.js | 6 ++-- js/iD/renderer/EntityUI.js | 2 +- js/iD/renderer/Map.js | 39 +++++++++++---------- js/lib/underscore-min.js | 5 +++ 8 files changed, 72 insertions(+), 68 deletions(-) create mode 100644 js/lib/underscore-min.js diff --git a/index.html b/index.html index 1bedc15da..ad8e27618 100755 --- a/index.html +++ b/index.html @@ -9,6 +9,7 @@ +