PageSourceSearch

https://www.chateau-clisson.fr/js/jalios/core/jalios-prototype-conflict.js

js chateau-clisson.fr collected 2026-10-08 11:19:39 UTC 718 bytes, 18 lines download raw bytes

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.