?
avatar uglyeoin
uglyeoin
21 Nov 2019

Steps to reproduce the issue

Load a site.

Array.forEach is deprecated; use Array.prototype.forEach instead
Array.slice is deprecated; use Array.prototype.slice instead

Coming from this file: /media/system/js/mootools-core.js?7715ba7deb75cd59a93ffca47316b2d0

Expected result

Actual result

System information (as much as possible)

Additional comments

avatar uglyeoin uglyeoin - open - 21 Nov 2019
avatar joomla-cms-bot joomla-cms-bot - labeled - 21 Nov 2019
avatar uglyeoin uglyeoin - change - 21 Nov 2019
The description was changed
avatar uglyeoin uglyeoin - edited - 21 Nov 2019
avatar C-Lodder
C-Lodder - comment - 21 Nov 2019

These aren't errors, they're just warnings. Then again if J3 is supported for a couple more years after J4 is "released", browsers may have already started removing support for Array.forEach and Array.slice, so a core hack may be required or a polyfill

avatar Chaosxmk
Chaosxmk - comment - 22 Nov 2019

Wouldn't the easier/better fix be to just update the package Mootools to 1.6.0? The base include version of Mootools is 1.4.5 (at least in Joomla 3.9.13). I don't think current versions of Mootools proc any deprecated warnings.

avatar mbabker
mbabker - comment - 22 Nov 2019

MooTools 1.5 broke compatibility with 1.4 and earlier. At this point it's better to just leave well enough alone than try to do a major JavaScript library/framework update, especially considering the framework's use should be disappearing quickly as it goes away in 4.0.

avatar HLeithner
HLeithner - comment - 23 Nov 2019

As stated by michael a b/c break would be worse, if the deprecation get removed finally before J3 is EOL we have to patch mootools.

I'm closing this for now. Thanks

avatar HLeithner HLeithner - close - 23 Nov 2019
avatar HLeithner HLeithner - change - 23 Nov 2019
Status New Closed
Closed_Date 0000-00-00 00:00:00 2019-11-23 09:53:30
Closed_By HLeithner

Add a Comment

Login with GitHub to post a comment