Permalink
Browse files

JShint fixups

  • Loading branch information...
1 parent 285ef75 commit e5ad28feb75e79173892b1f54208851deea2f2cc @tmcw tmcw committed Feb 4, 2013
View
@@ -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) {
@@ -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.
View
@@ -127,7 +127,7 @@ iD.History = function() {
modified: difference.modified(),
created: difference.created(),
deleted: difference.deleted()
- }
+ };
},
hasChanges: function() {
View
@@ -47,6 +47,6 @@ _.extend(iD.Node.prototype, {
type: 'Point',
coordinates: this.loc
}
- }
+ };
}
});
View
@@ -1 +1 @@
-iD.operations = {}
+iD.operations = {};
@@ -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 }; }
View
@@ -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'));
+ };
}
};
View
@@ -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;
-};
+};

0 comments on commit e5ad28f

Please sign in to comment.