1;(function($, window, document, undefined) { 2 $.fn.doubleTapToGo = function(params) { 3 if(!('ontouchstart' in window) && 4 !navigator.msMaxTouchPoints && 5 !navigator.userAgent.toLowerCase().match( /windows phone os 7/i)) { 6 return false; 7 } 8 9 this.each(function() { 10 var curItem = false; 11 12 $(this).on('click', function(e) { 13 var item = $(this); 14 15 if(item[0] != curItem[0]) { 16 e.preventDefault(); 17 curItem = item; 18 } 19 }); 20 21 $(document).on('click touchstart MSPointerDown', function(e){ 22 var resetItem = true; 23 var parents = $(e.target).parents(); 24 25 for(var i = 0; i < parents.length; i++) { 26 if(parents[i] == curItem[0]) { 27 resetItem = false; 28 } 29 } 30 31 if(resetItem) { 32 curItem = false; 33 } 34 }); 35 }); 36 37 return this; 38 }; 39})(jQuery, window, document);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.