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
This is not a very efficient nor maintainable solution to manage dialog open/close event handlers in today's perspective. I'm thinking about defining custom events for dialog opening and closing events, and register/deregister event handlers for them. This was inspired by Bootstrap's show, shown, hide, and hidden events. We could have migrated to Bootstrap's Modal component for easier management, but it has a limitation that only one dialog window is allowed to open at the same time. So we need to stick with our own dialog system and adopt those custom events.
Please complete the following tasks.
Tell us about your environment
Docker
Tell us how you installed ruTorrent
Docker
Describe the bug
The handler and the previous queued function are being called with no arguments in addHandler method:
ruTorrent/js/objects.js
Line 251 in 25679a4
The proper function handler signature is this (when called):
ruTorrent/js/objects.js
Line 236 in 25679a4
Steps to reproduce
Check if handler function has any arg value when multiple handler are registered for the same event.
Expected behavior
Use something like this
Additional context
Noticed while working with the _getDir plugin on the hide events
The text was updated successfully, but these errors were encountered: