Skip to content

Commit

Permalink
Use proper isArray fallback.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Apr 6, 2013
1 parent ce8a260 commit afad2e8
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions response.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,14 @@
, ready = $.domReady || $
, $win = $(win) // cache selector
, screen = win.screen
, owns = {}.hasOwnProperty
, slice = [].slice
, concat = [].concat
, isArray = Array.isArray || function(ukn) {
return ukn instanceof Array; // sufficient for our usage
, AP = Array.prototype
, OP = Object.prototype
, slice = AP.slice
, concat = AP.concat
, toString = OP.toString
, owns = OP.hasOwnProperty
, isArray = Array.isArray || function(item) {
return '[object Array]' === toString.call(item);
}

, defaultBreakpoints = {
Expand Down

0 comments on commit afad2e8

Please sign in to comment.