[2.0] AddLoadEvent
Posted: Wed Mar 05, 2014 11:56 am
Hi!
In 2.0, the "addLoadEvent" method of the JS has been renamed to "serendipity.addLoadEvent". This imposes a problem for some plugins, which utilize this function:
- spamblockbayes
- freetag
- autosave
- adminnotes
I would opt to put this central addLoadEvent outside the serendipity main object, to ensure operation of the mentioned plugins. I don't think moving the function is worth the additional version switch inside the plugins and making the plugins throw JS error messages and not work if not upgraded.
Opinions?
In 2.0, the "addLoadEvent" method of the JS has been renamed to "serendipity.addLoadEvent". This imposes a problem for some plugins, which utilize this function:
- spamblockbayes
- freetag
- autosave
- adminnotes
I would opt to put this central addLoadEvent outside the serendipity main object, to ensure operation of the mentioned plugins. I don't think moving the function is worth the additional version switch inside the plugins and making the plugins throw JS error messages and not work if not upgraded.
Opinions?