Fix regressions in 9743ee282b - .hint() is

not meant to be chainable.
This commit is contained in:
Tom MacWright
2012-12-14 13:42:53 -05:00
parent 5da434497b
commit 66f58ac96b
2 changed files with 6 additions and 8 deletions
+4 -5
View File
@@ -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)
+2 -3
View File
@@ -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)