mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-27 02:12:24 +02:00
jshint touchups
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user