1var DblClickProtect = (function() { 2 var init; 3 4 init = function() { 5 var buttons = $('.dbl-click-protect'); 6 7 buttons.on('click', function(e) { 8 var button = $(e.target); 9 10 if (button.hasClass('has-been-clicked')) { 11 e.preventDefault(); 12 return false; 13 14 } else { 15 button.addClass('has-been-clicked'); 16 return true; 17 } 18 }); 19 }; 20 21 return { init: init }; 22})(); 23 24$(document).ready(function() { 25 DblClickProtect.init(); 26});
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.