Skip to content

Commit

Permalink
Merge pull request mleibman#521 from loris/patch-1
Browse files Browse the repository at this point in the history
Use of navigator.userAgent instead of $.browser
  • Loading branch information
mleibman committed Jan 21, 2013
2 parents d068650 + c2f1528 commit d477f3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ if (typeof Slick === "undefined") {
function getMaxSupportedCssHeight() {
var supportedHeight = 1000000;
// FF reports the height back but still renders blank after ~6M px
var testUpTo = ($.browser.mozilla) ? 6000000 : 1000000000;
var testUpTo = navigator.userAgent.toLowerCase().match(/firefox/) ? 6000000 : 1000000000;
var div = $("<div style='display:none' />").appendTo(document.body);

while (true) {
Expand Down

0 comments on commit d477f3e

Please sign in to comment.