You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that #1881 is merged and once #1836 is merged, there's still some opportunities for refactoring the Twinkle.addPortlet() code.
This whole idea of having 5 variables passed into Twinkle.addPortlet() is flawed. The whole thing should be rewritten to pass in 1 variable (the skin name).
We can probably remove portletType/type, and add a comment that portletNext = 'p-cactions' will create a dropdown in vector and vector-2022.
Maybe rename portletArea/navigation to needsPortlet or something.
document.getElementById(navigation) || document.querySelector(navigation) can be simplified to document.querySelector(navigation), and portletAreas not in CSS notation such as right-navigation can be changed to #right-navigation
Probably other tweaks as I immerse myself.
The text was updated successfully, but these errors were encountered:
Now that #1881 is merged and once #1836 is merged, there's still some opportunities for refactoring the Twinkle.addPortlet() code.
portletType/type
, and add a comment thatportletNext = 'p-cactions'
will create a dropdown in vector and vector-2022.portletArea/navigation
toneedsPortlet
or something.document.getElementById(navigation) || document.querySelector(navigation)
can be simplified todocument.querySelector(navigation)
, and portletAreas not in CSS notation such asright-navigation
can be changed to#right-navigation
Probably other tweaks as I immerse myself.
The text was updated successfully, but these errors were encountered: