make AMD declaration anonymous
This commit is contained in:
parent
a03d62cfda
commit
239faad5d7
@ -10,7 +10,7 @@ if (typeof module === 'object' && typeof module.exports === 'object') {
|
||||
|
||||
// define Leaflet as an AMD module
|
||||
} else if (typeof define === 'function' && define.amd) {
|
||||
define('leaflet', [], function () { return L; });
|
||||
define(L);
|
||||
}
|
||||
|
||||
// define Leaflet as a global L variable, saving the original L to restore later if needed
|
||||
|
Loading…
Reference in New Issue
Block a user