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);