1// PATCH x/ Prototype 2// http://www.softec.lu/site/DevelopersCorner/BootstrapPrototypeConflict 3if (Prototype.BrowserFeatures.ElementExtensions) { 4 var disablePrototypeJS = function (method, pluginsToDisable) { 5 var handler = function (event) { 6 event.target[method] = undefined; 7 setTimeout(function () { 8 delete event.target[method]; 9 }, 0); 10 }; 11 pluginsToDisable.each(function (plugin) { 12 jQuery(window).on(method + '.bs.' + plugin, handler); 13 }); 14 }, 15 pluginsToDisable = ['collapse', 'dropdown', 'modal', 'tooltip', 'popover']; 16 disablePrototypeJS('show', pluginsToDisable); 17 disablePrototypeJS('hide', pluginsToDisable); 18}
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.