diff --git a/js/id/behavior/drag.js b/js/id/behavior/drag.js index f0e9616f2..032c1ac8c 100644 --- a/js/id/behavior/drag.js +++ b/js/id/behavior/drag.js @@ -40,7 +40,7 @@ iD.behavior.drag = function() { }; function mousedown() { - target = this, + target = this; event_ = event.of(target, arguments); var eventTarget = d3.event.target, touchId = d3.event.touches ? d3.event.changedTouches[0].identifier : null, diff --git a/js/id/ui/preset/localized.js b/js/id/ui/preset/localized.js index b8706aac4..d6dfc6991 100644 --- a/js/id/ui/preset/localized.js +++ b/js/id/ui/preset/localized.js @@ -34,7 +34,7 @@ iD.ui.preset.localized = function(field, context) { function change() { var t = {}; - t[field.key] = d3.select(this).property('value'), + t[field.key] = d3.select(this).property('value'); event.change(t); }