fixed typeof bug

This commit is contained in:
Igor Zhukov 2015-02-13 19:37:11 +03:00
parent 6aabc78bf2
commit 942421321b

View File

@ -53,7 +53,7 @@
if (Array.isArray(shortcut)) { if (Array.isArray(shortcut)) {
shortcut = shortcut[0]; shortcut = shortcut[0];
} }
if (shortcut && typeof shortcut !== 'string') { if (shortcut && typeof shortcut === 'string') {
if (shortcut.charAt(0) == ':') { if (shortcut.charAt(0) == ':') {
shortcut = shortcut.substr(1, shortcut.length - 2); shortcut = shortcut.substr(1, shortcut.length - 2);
} }