From 4ff7d4364ecd453c094844038ea7ff17c0d8f20c Mon Sep 17 00:00:00 2001 From: Brian Tsai Date: Mon, 6 Jan 2014 23:45:06 +0900 Subject: [PATCH] changing patch for #3982 to check if array first. replaces previous patch. --- js/foundation/foundation.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/foundation/foundation.js b/js/foundation/foundation.js index f0fcafe5a..889aa23da 100644 --- a/js/foundation/foundation.js +++ b/js/foundation/foundation.js @@ -220,7 +220,8 @@ return this.libs[lib].init.apply(this.libs[lib], [this.scope, args[lib]]); } - return this.libs[lib].init.apply(this.libs[lib], [args]); + args = args instanceof Array ? args : Array(args); // PATCH: added this line + return this.libs[lib].init.apply(this.libs[lib], args); } return function () {}; -- 2.47.2