PrototypeJS fails on chrome 83

91 Views Asked by At

I have an old rails webapp that uses prototypeJS and scriptaculous. In Chrome 83, sometimes, the methodized functions don't get their definitions and nothing works, functions remain undefined. Couple of reloads again, it starts working.

For instance - $(...).build is not a function at this line.

this.calendar_div = $(parent).build('div', {className: "calendar_date_select"}, style);

And in the updateChanges of Ajax.Autocompleter of Scriptaculous

TypeError: element.getStyle is not a function
    at isDisplayed (javascripts/prototype.js?1591714063:3595:29)
    at klass._begin (javascripts/prototype.js?1591714063:3654:11)
    at klass.width (javascripts/prototype.js?1591714063:3801:39)
    at klass._compute (javascripts/prototype.js?1591714063:3724:57)
    at klass.get (javascripts/prototype.js?1591714063:3647:36)
    at klass.get (javascripts/prototype.js?1591714063:447:22)
    at Function.clonePosition (javascripts/prototype.js?1591714063:4319:29)
    at Object.clone (javascripts/prototype.js?1591714063:7459:20)
    at Object.options.onShow (javascripts/controls.js?1594789433:68:20)
    at klass.show (javascripts/controls.js?1594789433:95:71)

This is turning out to be a nightmare, since it blocks major important functions within the app. Any pointers/ideas on how I can immediately deal with this will be God-sent. Thank you for listening.

0

There are 0 best solutions below