We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7bcce2c + ffac375 commit 5247feeCopy full SHA for 5247fee
src/main/webapp/js/no-prototype.js
@@ -1,5 +1,5 @@
1
/* global Prototype, jQuery3 */
2
-if (Prototype.BrowserFeatures.ElementExtensions) {
+if (typeof Prototype === 'object' && Prototype.BrowserFeatures.ElementExtensions) {
3
const disablePrototypeJS = function (method, pluginsToDisable) {
4
const handler = function (event) {
5
event.target[method] = undefined;
0 commit comments