From 62ee4fecc35772670b092b220cb29c7aa7b58b50 Mon Sep 17 00:00:00 2001 From: Julie Lala Date: Tue, 22 Apr 2014 03:22:56 -0400 Subject: keyboard, stones demo --- assets/javascripts/rectangles/map/ui.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'assets/javascripts/rectangles/map/ui.js') diff --git a/assets/javascripts/rectangles/map/ui.js b/assets/javascripts/rectangles/map/ui.js index 129ec90..10496e3 100644 --- a/assets/javascripts/rectangles/map/ui.js +++ b/assets/javascripts/rectangles/map/ui.js @@ -2,12 +2,11 @@ map.ui = new function(){ var base = this - base.el = document.querySelector("#map") base.creating = base.dragging = false base.mouse = new mouse({ - el: base.el, + el: map.el, down: down, move: move, drag: drag, @@ -16,7 +15,7 @@ map.ui = new function(){ }) base.wheel = new wheel({ - el: base.el, + el: map.el, update: mousewheel, }) -- cgit v1.2.3-70-g09d2