Skip to content

Commit

Permalink
Remove arrow function from debug HTML
Browse files Browse the repository at this point in the history
Closes #580
  • Loading branch information
David Clark committed Jan 6, 2017
1 parent 329cddd commit 07dd8ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions debug/index.html
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' />
<meta charset=utf-8 />
<title>Mapbox GL Draw | Mapbox</title>
Expand Down Expand Up @@ -123,9 +124,9 @@
req.onerror = function() {
throw new Error('Network Error');
};
req.onload = () => {
req.onload = function() {
var fc = JSON.parse(req.response);
fc.features.forEach(feature => {
fc.features.forEach(function(feature) {
if(feature.geometry.type.startsWith('Multi') === false) {
Draw.add(feature);
}
Expand Down

0 comments on commit 07dd8ce

Please sign in to comment.