jshint touchups

This commit is contained in:
Tom MacWright
2013-01-08 12:21:53 -05:00
parent 85c8bdf0ff
commit b1c1844941
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ iD.actions.ReverseWay = function(wayId) {
var replacements = [
[/:right$/, ':left'], [/:left$/, ':right'],
[/:forward$/, ':backward'], [/:backward$/, ':forward']
], numeric = /^([+-]?)(?=[\d.])/;
], numeric = /^([+\-]?)(?=[\d.])/;
function reverseKey(key) {
for (var i = 0; i < replacements.length; ++i) {
+1 -1
View File
@@ -59,7 +59,7 @@ iD.Style.styleClasses = function() {
selection.each(function(d) {
var classes, value = this.className;
if (value.baseVal != null) value = value.baseVal;
if (value.baseVal !== null) value = value.baseVal;
classes = value.trim().split(/\s+/).filter(function(name) {
return name.length && !tagClassRe.test(name);