Skip to content

Commit

Permalink
released v3.7.6
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 27, 2020
1 parent 5831035 commit 5391a4e
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 55 deletions.
18 changes: 2 additions & 16 deletions dist/hotkeys.common.js
@@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.5
* hotkeys-js v3.7.6
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
Expand All @@ -10,20 +10,6 @@

'use strict';

function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}

return _typeof(obj);
}

var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件

function addEvent(object, event, method) {
Expand Down Expand Up @@ -262,7 +248,7 @@ function unbind(keysInfo) {
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
} else if (typeof keysInfo === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {
Expand Down
4 changes: 2 additions & 2 deletions dist/hotkeys.common.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 2 additions & 16 deletions dist/hotkeys.esm.js
@@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.5
* hotkeys-js v3.7.6
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
Expand All @@ -8,20 +8,6 @@
* Licensed under the MIT license.
*/

function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}

return _typeof(obj);
}

var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件

function addEvent(object, event, method) {
Expand Down Expand Up @@ -260,7 +246,7 @@ function unbind(keysInfo) {
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
} else if (typeof keysInfo === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {
Expand Down
18 changes: 2 additions & 16 deletions dist/hotkeys.js
@@ -1,5 +1,5 @@
/*!
* hotkeys-js v3.7.5
* hotkeys-js v3.7.6
* A simple micro-library for defining and dispatching keyboard shortcuts. It has no dependencies.
*
* Copyright (c) 2020 kenny wong <wowohoo@qq.com>
Expand All @@ -14,20 +14,6 @@
(global = global || self, global.hotkeys = factory());
}(this, (function () { 'use strict';

function _typeof(obj) {
if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
_typeof = function (obj) {
return typeof obj;
};
} else {
_typeof = function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
}

return _typeof(obj);
}

var isff = typeof navigator !== 'undefined' ? navigator.userAgent.toLowerCase().indexOf('firefox') > 0 : false; // 绑定事件

function addEvent(object, event, method) {
Expand Down Expand Up @@ -266,7 +252,7 @@
keysInfo.forEach(function (info) {
if (info.key) eachUnbind(info);
});
} else if (_typeof(keysInfo) === 'object') {
} else if (typeof keysInfo === 'object') {
// support like unbind({key: 'ctrl+a, ctrl+b', scope:'abc'})
if (keysInfo.key) eachUnbind(keysInfo);
} else if (typeof keysInfo === 'string') {
Expand Down

0 comments on commit 5391a4e

Please sign in to comment.