11( function e ( t , n , r ) { function s ( o , u ) { if ( ! n [ o ] ) { if ( ! t [ o ] ) { var a = typeof require == "function" && require ; if ( ! u && a ) return a ( o , ! 0 ) ; if ( i ) return i ( o , ! 0 ) ; var f = new Error ( "Cannot find module '" + o + "'" ) ; throw f . code = "MODULE_NOT_FOUND" , f } var l = n [ o ] = { exports :{ } } ; t [ o ] [ 0 ] . call ( l . exports , function ( e ) { var n = t [ o ] [ 1 ] [ e ] ; return s ( n ?n :e ) } , l , l . exports , e , t , n , r ) } return n [ o ] . exports } var i = typeof require == "function" && require ; for ( var o = 0 ; o < r . length ; o ++ ) s ( r [ o ] ) ; return s } ) ( { 1 :[ function ( require , module , exports ) {
2+ ( function ( global ) {
3+ 'use strict' ;
4+ var Mutation = global . MutationObserver || global . WebKitMutationObserver ;
5+
6+ var scheduleDrain ;
7+
8+ {
9+ if ( Mutation ) {
10+ var called = 0 ;
11+ var observer = new Mutation ( nextTick ) ;
12+ var element = global . document . createTextNode ( '' ) ;
13+ observer . observe ( element , {
14+ characterData : true
15+ } ) ;
16+ scheduleDrain = function ( ) {
17+ element . data = ( called = ++ called % 2 ) ;
18+ } ;
19+ } else if ( ! global . setImmediate && typeof global . MessageChannel !== 'undefined' ) {
20+ var channel = new global . MessageChannel ( ) ;
21+ channel . port1 . onmessage = nextTick ;
22+ scheduleDrain = function ( ) {
23+ channel . port2 . postMessage ( 0 ) ;
24+ } ;
25+ } else if ( 'document' in global && 'onreadystatechange' in global . document . createElement ( 'script' ) ) {
26+ scheduleDrain = function ( ) {
27+
28+ // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
29+ // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
30+ var scriptEl = global . document . createElement ( 'script' ) ;
31+ scriptEl . onreadystatechange = function ( ) {
32+ nextTick ( ) ;
33+
34+ scriptEl . onreadystatechange = null ;
35+ scriptEl . parentNode . removeChild ( scriptEl ) ;
36+ scriptEl = null ;
37+ } ;
38+ global . document . documentElement . appendChild ( scriptEl ) ;
39+ } ;
40+ } else {
41+ scheduleDrain = function ( ) {
42+ setTimeout ( nextTick , 0 ) ;
43+ } ;
44+ }
45+ }
46+
47+ var draining ;
48+ var queue = [ ] ;
49+ //named nextTick for less confusing stack traces
50+ function nextTick ( ) {
51+ draining = true ;
52+ var i , oldQueue ;
53+ var len = queue . length ;
54+ while ( len ) {
55+ oldQueue = queue ;
56+ queue = [ ] ;
57+ i = - 1 ;
58+ while ( ++ i < len ) {
59+ oldQueue [ i ] ( ) ;
60+ }
61+ len = queue . length ;
62+ }
63+ draining = false ;
64+ }
65+
66+ module . exports = immediate ;
67+ function immediate ( task ) {
68+ if ( queue . push ( task ) === 1 && ! draining ) {
69+ scheduleDrain ( ) ;
70+ }
71+ }
72+
73+ } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
74+ } , { } ] , 2 :[ function ( require , module , exports ) {
275'use strict' ;
376var immediate = require ( 'immediate' ) ;
477
@@ -11,7 +84,7 @@ var REJECTED = ['REJECTED'];
1184var FULFILLED = [ 'FULFILLED' ] ;
1285var PENDING = [ 'PENDING' ] ;
1386
14- module . exports = exports = Promise ;
87+ module . exports = Promise ;
1588
1689function Promise ( resolver ) {
1790 if ( typeof resolver !== 'function' ) {
@@ -117,7 +190,7 @@ handlers.reject = function (self, error) {
117190function getThen ( obj ) {
118191 // Make sure we only access the accessor once as required by the spec
119192 var then = obj && obj . then ;
120- if ( obj && typeof obj === 'object' && typeof then === 'function' ) {
193+ if ( obj && ( typeof obj === 'object' || typeof obj === 'function' ) && typeof then === 'function' ) {
121194 return function appyThen ( ) {
122195 then . apply ( obj , arguments ) ;
123196 } ;
@@ -165,21 +238,21 @@ function tryCatch(func, value) {
165238 return out ;
166239}
167240
168- exports . resolve = resolve ;
241+ Promise . resolve = resolve ;
169242function resolve ( value ) {
170243 if ( value instanceof this ) {
171244 return value ;
172245 }
173246 return handlers . resolve ( new this ( INTERNAL ) , value ) ;
174247}
175248
176- exports . reject = reject ;
249+ Promise . reject = reject ;
177250function reject ( reason ) {
178251 var promise = new this ( INTERNAL ) ;
179252 return handlers . reject ( promise , reason ) ;
180253}
181254
182- exports . all = all ;
255+ Promise . all = all ;
183256function all ( iterable ) {
184257 var self = this ;
185258 if ( Object . prototype . toString . call ( iterable ) !== '[object Array]' ) {
@@ -218,7 +291,7 @@ function all(iterable) {
218291 }
219292}
220293
221- exports . race = race ;
294+ Promise . race = race ;
222295function race ( iterable ) {
223296 var self = this ;
224297 if ( Object . prototype . toString . call ( iterable ) !== '[object Array]' ) {
@@ -253,80 +326,7 @@ function race(iterable) {
253326 }
254327}
255328
256- } , { "immediate" :2 } ] , 2 :[ function ( require , module , exports ) {
257- ( function ( global ) {
258- 'use strict' ;
259- var Mutation = global . MutationObserver || global . WebKitMutationObserver ;
260-
261- var scheduleDrain ;
262-
263- {
264- if ( Mutation ) {
265- var called = 0 ;
266- var observer = new Mutation ( nextTick ) ;
267- var element = global . document . createTextNode ( '' ) ;
268- observer . observe ( element , {
269- characterData : true
270- } ) ;
271- scheduleDrain = function ( ) {
272- element . data = ( called = ++ called % 2 ) ;
273- } ;
274- } else if ( ! global . setImmediate && typeof global . MessageChannel !== 'undefined' ) {
275- var channel = new global . MessageChannel ( ) ;
276- channel . port1 . onmessage = nextTick ;
277- scheduleDrain = function ( ) {
278- channel . port2 . postMessage ( 0 ) ;
279- } ;
280- } else if ( 'document' in global && 'onreadystatechange' in global . document . createElement ( 'script' ) ) {
281- scheduleDrain = function ( ) {
282-
283- // Create a <script> element; its readystatechange event will be fired asynchronously once it is inserted
284- // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called.
285- var scriptEl = global . document . createElement ( 'script' ) ;
286- scriptEl . onreadystatechange = function ( ) {
287- nextTick ( ) ;
288-
289- scriptEl . onreadystatechange = null ;
290- scriptEl . parentNode . removeChild ( scriptEl ) ;
291- scriptEl = null ;
292- } ;
293- global . document . documentElement . appendChild ( scriptEl ) ;
294- } ;
295- } else {
296- scheduleDrain = function ( ) {
297- setTimeout ( nextTick , 0 ) ;
298- } ;
299- }
300- }
301-
302- var draining ;
303- var queue = [ ] ;
304- //named nextTick for less confusing stack traces
305- function nextTick ( ) {
306- draining = true ;
307- var i , oldQueue ;
308- var len = queue . length ;
309- while ( len ) {
310- oldQueue = queue ;
311- queue = [ ] ;
312- i = - 1 ;
313- while ( ++ i < len ) {
314- oldQueue [ i ] ( ) ;
315- }
316- len = queue . length ;
317- }
318- draining = false ;
319- }
320-
321- module . exports = immediate ;
322- function immediate ( task ) {
323- if ( queue . push ( task ) === 1 && ! draining ) {
324- scheduleDrain ( ) ;
325- }
326- }
327-
328- } ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
329- } , { } ] , 3 :[ function ( require , module , exports ) {
329+ } , { "immediate" :1 } ] , 3 :[ function ( require , module , exports ) {
330330( function ( global ) {
331331'use strict' ;
332332var jsonp = require ( './jsonp' ) ;
@@ -381,7 +381,7 @@ module.exports = function (url, options) {
381381} ;
382382
383383} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
384- } , { "./jsonp" :5 , "lie" :1 } ] , 4 :[ function ( require , module , exports ) {
384+ } , { "./jsonp" :5 , "lie" :2 } ] , 4 :[ function ( require , module , exports ) {
385385( function ( global ) {
386386'use strict' ;
387387var L = global . L || require ( 'leaflet' ) ;
@@ -390,6 +390,7 @@ var ajax = require('./ajax');
390390L . GeoJSON . AJAX = L . GeoJSON . extend ( {
391391 defaultAJAXparams : {
392392 dataType : 'json' ,
393+ headers : { } ,
393394 callbackParam : 'callback' ,
394395 local : false ,
395396 middleware : function ( f ) {
@@ -518,7 +519,7 @@ L.geoJson.ajax = function (geojson, options) {
518519} ;
519520
520521} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
521- } , { "./ajax" :3 , "./jsonp" :5 , "leaflet" :undefined , "lie" :1 } ] , 5 :[ function ( require , module , exports ) {
522+ } , { "./ajax" :3 , "./jsonp" :5 , "leaflet" :undefined , "lie" :2 } ] , 5 :[ function ( require , module , exports ) {
522523( function ( global ) {
523524'use strict' ;
524525var L = global . L || require ( 'leaflet' ) ;
@@ -572,4 +573,4 @@ module.exports = function (url, options) {
572573} ;
573574
574575} ) . call ( this , typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : { } )
575- } , { "leaflet" :undefined , "lie" :1 } ] } , { } , [ 4 ] ) ;
576+ } , { "leaflet" :undefined , "lie" :2 } ] } , { } , [ 4 ] ) ;
0 commit comments