Skip to content

Commit

Permalink
fixed bug with custom breakpoints handler
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Mar 8, 2012
1 parent ef91db1 commit 64d3fd9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion response.js
Original file line number Diff line number Diff line change
Expand Up @@ -903,8 +903,10 @@
}*/

, valid8: function(arr, prop) {

arr = this.breakpoints;

if (this.breakpoints) {
if (arr) {
// Filter out non numerics and sort lowest to highest:
arr = isArray(arr) ? sift(arr, isFinite).sort(function(a, b){ return (a - b); }) : [];
arr.length || doError('create @breakpoints');
Expand Down

0 comments on commit 64d3fd9

Please sign in to comment.