aboutsummaryrefslogtreecommitdiffstats
path: root/_libly.js
diff options
context:
space:
mode:
authoryukim2014-12-03 01:55:29 +0900
committeryukim2014-12-03 01:55:29 +0900
commit0d4ec6d7477e52334cb38711da696c8774af5ebd (patch)
tree9d2be3465b2849aaf9b97daaeaf3298a68f60b86 /_libly.js
parent5f453ebc33c7c5263af703d24d4221d44c2b36b8 (diff)
downloadvimperator-plugins-0d4ec6d7477e52334cb38711da696c8774af5ebd.tar.bz2
fix "TypeError: ['@@iterator'] is not a function" on Firefox 34
Diffstat (limited to '_libly.js')
-rw-r--r--_libly.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/_libly.js b/_libly.js
index be989d7..9626b54 100644
--- a/_libly.js
+++ b/_libly.js
@@ -280,7 +280,7 @@ libly.$U = {//{{{
}
original = obj[name];
let current = obj[name] = function () {
- let self = this, args = arguments;
+ let self = this, args = Array.from(arguments);
return func.call(self, function (_args) original.apply(self, _args || args), args);
};
libly.$U.extend(current, {original: original && original.original || original, restore: restore});