Skip to content

Commit 5247fee

Browse files
authored
Merge pull request #208 from basil/support-operation-without-prototype
Support operation without Prototype.js
2 parents 7bcce2c + ffac375 commit 5247fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/webapp/js/no-prototype.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/* global Prototype, jQuery3 */
2-
if (Prototype.BrowserFeatures.ElementExtensions) {
2+
if (typeof Prototype === 'object' && Prototype.BrowserFeatures.ElementExtensions) {
33
const disablePrototypeJS = function (method, pluginsToDisable) {
44
const handler = function (event) {
55
event.target[method] = undefined;

0 commit comments

Comments
 (0)