Skip to content

Commit ffac375

Browse files
committed
Support operation without Prototype.js
1 parent 7bcce2c commit ffac375

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)