1 | 'use strict'; |
||
2 | // Node search polyfill for mobile browsers and IE |
||
3 | if (!String.prototype.includes) { |
||
4 | String.prototype.includes = function () { |
||
5 | return String.prototype.indexOf.apply(this, arguments) !== -1; |
||
6 | }; |
||
7 | } |
||
8 | |||
9 | require.config({ |
||
10 | baseUrl: 'lib', |
||
11 | paths: { |
||
12 | 'polyglot': '../node_modules/node-polyglot/build/polyglot', |
||
13 | 'leaflet': '../node_modules/leaflet/dist/leaflet', |
||
14 | 'leaflet.label': '../node_modules/leaflet-label/dist/leaflet.label', |
||
15 | 'chroma-js': '../node_modules/chroma-js/chroma.min', |
||
16 | 'moment': '../node_modules/moment/moment', |
||
17 | 'd3': '../node_modules/d3/d3.min', |
||
18 | 'virtual-dom': '../node_modules/virtual-dom/dist/virtual-dom', |
||
19 | 'rbush': '../node_modules/rbush/rbush', |
||
20 | 'helper': 'utils/helper' |
||
21 | }, |
||
22 | shim: { |
||
23 | 'leaflet.label': ['leaflet'], |
||
24 | 'tablesort': { |
||
25 | exports: 'Tablesort' |
||
26 | } |
||
27 | } |
||
28 | }); |
||
29 | |||
30 | require(['main'], function (main) { |
||
31 | main(jsonData); |
||
0 ignored issues
–
show
|
|||
32 | }); |
||
33 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.