MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / checkDeprecatedMixinEvents

Function checkDeprecatedMixinEvents

libs/leaflet/leaflet-src.js:400–413  ·  view source on GitHub ↗
(includes)

Source from the content-addressed store, hash-verified

398 };
399
400 function checkDeprecatedMixinEvents(includes) {
401 /* global L: true */
402 if (typeof L === 'undefined' || !L || !L.Mixin) { return; }
403
404 includes = isArray(includes) ? includes : [includes];
405
406 for (var i = 0; i < includes.length; i++) {
407 if (includes[i] === L.Mixin.Events) {
408 console.warn('Deprecated include of L.Mixin.Events: ' +
409 'this property will be removed in future releases, ' +
410 'please inherit from L.Evented instead.', new Error().stack);
411 }
412 }
413 }
414
415 /*
416 * @class Evented

Callers 1

leaflet-src.jsFile · 0.85

Calls 1

isArrayFunction · 0.50

Tested by

no test coverage detected