From 0d4ec6d7477e52334cb38711da696c8774af5ebd Mon Sep 17 00:00:00 2001 From: yukim Date: Wed, 3 Dec 2014 01:55:29 +0900 Subject: fix "TypeError: ['@@iterator'] is not a function" on Firefox 34 --- _libly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '_libly.js') 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}); -- cgit v1.2.3