add typeof check to checkDeprecatedMixinEvents
!L may result in a undefined error when running tests that also touch including a leaflet plugin.
This commit is contained in:
parent
8e32e31ef8
commit
52bd90c27c
@ -112,7 +112,7 @@ Class.addInitHook = function (fn) { // (Function) || (String, args...)
|
||||
};
|
||||
|
||||
function checkDeprecatedMixinEvents(includes) {
|
||||
if (!L || !L.Mixin) { return; }
|
||||
if (typeof L === 'undefined' || !L || !L.Mixin) { return; }
|
||||
|
||||
includes = Util.isArray(includes) ? includes : [includes];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user