User tests: Successful: Unsuccessful:
Pull Request for Issue # .
Earlier in the development of Joomla 4 we rolled out a wrapper around Events. At that time this was a good idea as we also had a polyfill for customEvent
and our own implementation of {once: true}
. Well, we don't need any of these anymore. Also, the introduction of a wrapper of a Platform feature seems counterproductive. IT's harder for newcomers to figure out their way around. Just use the propper docs from MDN ( https://developer.mozilla.org/en-US/docs/Web/Events ), job done!
Apply the PR and check:
No, actually this PR removes something that if we end up rolling in Joomla 4 we have to document. For the native Javascript events, we could just refer devs to MDN. Win!
@Fedik I know that you're against this, but honestly, I see no reason for Joomla to have such a wrapper
@wilsonge your decision
Status | New | ⇒ | Pending |
Category | ⇒ | JavaScript Repository NPM Change |
There also a big comment, related specifically to Joomla:
We should really document everything in the core.js. I'm thinking a github based docs for the devs is much easier for devs to contribute than the wiki (another account? why, not my existing github account? also no markdown?). I haven't documented much myself but this is not necessarily because I'm lazy but also due to the fact that the wiki docs are extremely outdated. We are devs, we do github, let the devs doc LIVE on github...
Okay I have created the Doc page https://docs.joomla.org/J4.x:ClientSideEvents
Please review
It's perfect!
Labels |
Added:
NPM Resource Changed
?
|
I have tested this item
Read the ClientSideEvents page. Perfect? Mmmmmm!
I have tested this item
Status | Pending | ⇒ | Ready to Commit |
RTC
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-04-19 06:28:09 |
Closed_By | ⇒ | rdeutz | |
Labels |
Added:
?
|
well, if no one need it, then it can be merged I guess
There also a big comment, related specifically to Joomla:
joomla-cms/build/media_source/system/js/core.es6.js
Lines 792 to 825 in c78ef2f
But this can copied to jdocs.
I never done it, because I have no idea which section and I am very lazy.