From eb254e7ba7ef39239d2875166139d0bd24dda1ae Mon Sep 17 00:00:00 2001 From: lifesinger Date: Mon, 25 Mar 2013 15:00:46 +0800 Subject: [PATCH] Little improvement --- src/plugins/plugin-flush.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/plugins/plugin-flush.js b/src/plugins/plugin-flush.js index 458f36fb..407e7af8 100644 --- a/src/plugins/plugin-flush.js +++ b/src/plugins/plugin-flush.js @@ -63,8 +63,10 @@ return ret } + var toString = {}.toString + var isArray = Array.isArray || function(obj) { - return obj instanceof Array + return toString.call(obj) === "[object Array]" } })(seajs);