Skip to content

Commit

Permalink
Removed Date() constructor call in updateMarkers() function.
Browse files Browse the repository at this point in the history
  • Loading branch information
joh13010 committed Jan 12, 2017
1 parent c1f1b8d commit f5c2f8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MapScript.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function addMarker(lt, ln, prov, timeMillis) {
function updateMarkers(timeStart, timeEnd) {
for (var i = 0; i < markersArr.length; i++) {
thisMarker = markersArr[i];
markerTime = new Date(thisMarker.timeStamp);
markerTime = thisMarker.timeStamp;
if (markerTime < timeStart || markerTime > timeEnd) {
thisMarker.setMap(null);
}
Expand Down

0 comments on commit f5c2f8e

Please sign in to comment.