Skip to content

Commit

Permalink
Little improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
lifesinger committed Mar 25, 2013
1 parent 4fb7a68 commit eb254e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/plugin-flush.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb254e7

Please sign in to comment.