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