Skip to content
This repository has been archived by the owner on Feb 17, 2021. It is now read-only.

Commit

Permalink
use Array.isArray if available for utils.isArray
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordon Koo committed Mar 28, 2013
1 parent ed78265 commit d117e95
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion js/hopscotch-0.0.5.js
Expand Up @@ -336,7 +336,7 @@
/**
* @private
*/
isArray: function(obj) {
isArray: Array.isArray || function(obj) {
return typeof obj.length === 'number' && typeof obj.unshift === 'function' && typeof obj.push === 'function';
},

Expand Down
30 changes: 15 additions & 15 deletions js/hopscotch-0.0.5.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d117e95

Please sign in to comment.