View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0019230 | MMW 5 | Extensions framework | public | 2022-06-30 14:06 | 2022-08-31 20:16 |
Reporter | zvezdan | Assigned To | |||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Target Version | 5.0.4 | Fixed in Version | 5.0.4 | ||
Summary | 0019230: app.listen(app.playlists.root, 'playlistChanged' and 'playlistAdded' should have a playlist object as argument | ||||
Description | 'playlistChanged' and 'playlistAdded' should be consistent with 'playlistRemoved' and with MM4 (ISDBApplicationEvents::OnPlaylistChanged and ISDBApplicationEvents::OnPlaylistAdded), which have a playlist object as an argument of the listener, not the playlist id. | ||||
Tags | todoc-dev | ||||
Fixed in build | 2656 | ||||
|
I am afraid that changing it now from ID to Playlist object would break existing scripts/addons. But we could add it as the second argument. |
|
Added in 5.0.4.2656 and updated the documentation (to be updated on the web later) that the second argument is added in 5.0.4 Example: app.listen(app.playlists.root, 'playlistAdded', (id, pl) => { uitools.toastMessage.show(id + ' -- ' + pl.title); }); |
|
Verified 2661 |