From 66f58ac96b71ec065e442b632a1ecff056f34006 Mon Sep 17 00:00:00 2001 From: Tom MacWright Date: Fri, 14 Dec 2012 13:42:53 -0500 Subject: [PATCH] Fix regressions in 9743ee282b3c5e84dc0d9f8cae38a323fb41fdd3 - .hint() is not meant to be chainable. --- js/id/modes/draw_area.js | 9 ++++----- js/id/modes/draw_line.js | 5 ++--- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/js/id/modes/draw_area.js b/js/id/modes/draw_area.js index c31544e5c..c7d91e158 100644 --- a/js/id/modes/draw_area.js +++ b/js/id/modes/draw_area.js @@ -15,8 +15,8 @@ iD.modes.DrawArea = function(wayId) { node = iD.Node({loc: map.mouseCoordinates()}); map.dblclickEnable(false) - .fastEnable(false) - .hint('Click on the map to add points to your area. Finish the ' + + .fastEnable(false); + map.hint('Click on the map to add points to your area. Finish the ' + 'area by clicking on your first point'); history.perform( @@ -107,9 +107,8 @@ iD.modes.DrawArea = function(wayId) { }; mode.exit = function() { - mode.map - .hint(false) - .fastEnable(true); + mode.map.hint(false); + mode.map.fastEnable(true); mode.map.surface .on('mousemove.drawarea', null) diff --git a/js/id/modes/draw_line.js b/js/id/modes/draw_line.js index 74c16095f..01b4de6b7 100644 --- a/js/id/modes/draw_line.js +++ b/js/id/modes/draw_line.js @@ -120,9 +120,8 @@ iD.modes.DrawLine = function(wayId, direction) { }; mode.exit = function() { - mode.map - .hint(false) - .fastEnable(true); + mode.map.hint(false); + mode.map.fastEnable(true); mode.map.surface .on('mousemove.drawline', null)