Skip to content

Commit

Permalink
test availability of features object before inspecting
Browse files Browse the repository at this point in the history
  • Loading branch information
WickyNilliams committed Jan 3, 2014
1 parent 56589c0 commit df14e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Headroom.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ Headroom.options = {
initial : 'headroom'
}
};
Headroom.cutsTheMustard = features.rAF && features.bind && features.classList;
Headroom.cutsTheMustard = typeof features !== 'undefined' && features.rAF && features.bind && features.classList;

0 comments on commit df14e16

Please sign in to comment.