1(function( $ ){ 2 $.fn.uncheckableRadio = function() { 3 return this.each(function () { 4 var radio = this; 5 $('label[for="' + radio.id + '"]').add(radio).mousedown(function () { 6 $(radio).data('wasChecked', radio.checked); 7 }); 8 9 $('label[for="' + radio.id + '"]').add(radio).click(function () { 10 if ($(radio).data('wasChecked')) 11 radio.checked = false; 12 }); 13 }); 14 }; 15})( jQuery );
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.