Merge pull request #5901 from murb/patch-1

add typeof check to checkDeprecatedMixinEvents
This commit is contained in:
Andrew 2017-11-09 18:43:07 +01:00 committed by GitHub
commit 96164fcff0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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