JShint fixups

This commit is contained in:
Tom MacWright
2013-02-04 12:10:23 -05:00
parent 285ef7584d
commit e5ad28feb7
8 changed files with 25 additions and 18 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ iD.actions.Split = function(nodeId, newWayId) {
return parents.filter(function (parent) {
return parent.first() !== nodeId &&
parent.last() !== nodeId;
})
});
}
var action = function(graph) {
+1 -1
View File
@@ -82,7 +82,7 @@ iD.behavior.DrawWay = function(context, wayId, index, mode, baseGraph) {
return graph
.replace(way.removeNode(nodeId).addNode(newNode.id, index))
.remove(node);
}
};
}
// Accept the current position of the temporary node and continue drawing.
+1 -1
View File
@@ -127,7 +127,7 @@ iD.History = function() {
modified: difference.modified(),
created: difference.created(),
deleted: difference.deleted()
}
};
},
hasChanges: function() {
+1 -1
View File
@@ -47,6 +47,6 @@ _.extend(iD.Node.prototype, {
type: 'Point',
coordinates: this.loc
}
}
};
}
});
+1 -1
View File
@@ -1 +1 @@
iD.operations = {}
iD.operations = {};
+1 -1
View File
@@ -40,7 +40,7 @@ iD.taginfo = function() {
}
function popularValues(parameters) {
return function(d) { return parseFloat(d['fraction']) > 0.01; };
return function(d) { return parseFloat(d.fraction) > 0.01; };
}
function valKey(d) { return { value: d.key }; }
+10 -8
View File
@@ -1,19 +1,19 @@
iD.svg = {
RoundProjection: function (projection) {
return function (d) {
RoundProjection: function(projection) {
return function(d) {
return iD.geo.roundCoords(projection(d));
};
},
PointTransform: function (projection) {
return function (entity) {
PointTransform: function(projection) {
return function(entity) {
return 'translate(' + projection(entity.loc) + ')';
};
},
LineString: function (projection, graph) {
LineString: function(projection, graph) {
var cache = {};
return function (entity) {
return function(entity) {
if (cache[entity.id] !== undefined) {
return cache[entity.id];
}
@@ -23,7 +23,9 @@ iD.svg = {
}
return (cache[entity.id] =
'M' + graph.childNodes(entity).map(function (n) { return projection(n.loc); }).join('L'));
}
'M' + graph.childNodes(entity).map(function(n) {
return projection(n.loc);
}).join('L'));
};
}
};
+9 -4
View File
@@ -2,15 +2,20 @@ iD.ui.splash = function() {
var modal = iD.ui.modal();
modal.select('.modal')
.attr('class', 'modal-splash modal')
.attr('class', 'modal-splash modal');
var introModal = modal.select('.content')
.append('div')
.attr('class', 'modal-section fillL');
introModal.append('div').attr('class','logo');
introModal.append('div')
.attr('class','logo');
introModal.append('div').html("<h2 class>Welcome to the iD OpenStreetMap editor</h2><p>This is development version 0.0.0-alpha1. For more information see <a href='http://ideditor.com/'>ideditor.com</a> and report bugs at <a href='https://github.com'>github.com.systemed/iD</a>.</p>");
introModal.append('div')
.html("<h2 class>Welcome to the iD OpenStreetMap editor</h2><p>" +
"This is development version 0.0.0-alpha1. " +
"For more information see <a href='http://ideditor.com/'>ideditor.com</a>" +
" and report bugs at <a href='https://github.com'>github.com.systemed/iD</a>.</p>");
return modal;
};
};