1/* 2 By Osvaldas Valutis, www.osvaldas.info 3 Available for use under the MIT License 4*/ 5;(function( $, window, document, undefined ) 6{ 7 $.fn.doubleTapToGo = function( params ) 8 { 9 if( !( 'ontouchstart' in window ) && 10 !navigator.msMaxTouchPoints && 11 !navigator.userAgent.toLowerCase().match( /windows phone os 7/i ) ) return false; 12 this.each( function() 13 { 14 var curItem = false; 15 $( this ).on( 'click', function( e ) 16 { 17 var item = $( this ); 18 if( item[ 0 ] != curItem[ 0 ] ) 19 { 20 e.preventDefault(); 21 curItem = item; 22 } 23 }); 24 $( document ).on( 'click touchstart MSPointerDown', function( e ) 25 { 26 var resetItem = true, 27 parents = $( e.target ).parents(); 28 for( var i = 0; i < parents.length; i++ ) 29 if( parents[ i ] == curItem[ 0 ] ) 30 resetItem = false; 31 if( resetItem ) 32 curItem = false; 33 }); 34 }); 35 return this; 36 }; 37})( 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.