make AMD declaration anonymous

This commit is contained in:
S. Andrew Sheppard 2013-06-24 12:07:03 -05:00
parent a03d62cfda
commit 239faad5d7

View File

@ -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