Skip to content

Commit

Permalink
Simpliest stopFLAG
Browse files Browse the repository at this point in the history
  • Loading branch information
artpolikarpov committed Jun 19, 2013
1 parent f41096c commit 27c30e3
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions stickyeah.js
Expand Up @@ -21,11 +21,7 @@
console = {log: $.noop};
}*/

var touchFLAG = ('ontouchstart' in document);
var ieFLAG = $.browser.msie;
var ie6FLAG = $.browser.version == '6.0' && ieFLAG;
var quirksFLAG = document.compatMode != 'CSS1Compat' && ieFLAG;
var stopFLAG = touchFLAG || ie6FLAG || quirksFLAG;
var stopFLAG = ('ontouchstart' in document) || document.compatMode != 'CSS1Compat' || typeof document.body.style.maxHeight == 'undefined';

var $document = $(document);
var $window = $(window);
Expand Down

0 comments on commit 27c30e3

Please sign in to comment.