Page MenuHomePhabricator

ActionWidget probably doesn't need to emit 'resize' events
Closed, ResolvedPublic

Description

ActionWidget probably doesn't need to emit 'resize' events.

This dates back to rGOJU3ba36b9a53aa: [BREAKING CHANGE] The great and terrible dialog refactor and I can't find any evidence of it being ever used (not even in that patch, and not in that patch's history). Maybe @TrevorParscal remembers. But we could probably axe it. (It's going to be technically a breaking change, though.)

Event Timeline

Change 328308 had a related patch set uploaded (by IvanFon):
Removed resize event from ActionWidget.js

https://gerrit.wikimedia.org/r/328308

@Aklapper: Reviewed.

Note that we might not be able to merge the patch right now, it's technically a breaking change (even though I don't think anything relied on this feature), so we'll do some deprecation/announcement first. But after my comments are addressed, the coding work will be complete.

@IvanFon Thanks for working on this!

@Aklapper If this work was for a GCI task, it can be considered done. We just can't merge the change until the next major release (probably, it's James' decision and he's on vacation).

Change 336594 had a related patch set uploaded (by Prtksxna):
ActionWidget: Add depracation warnings for methods using the reszive event

https://gerrit.wikimedia.org/r/336594

Change 336965 had a related patch set uploaded (by Prtksxna):
ActionWidget: Add deprecation warnings for methods using the 'resize' event

https://gerrit.wikimedia.org/r/336965

Change 336594 merged by jenkins-bot:
Remove event listening code for ActionWidget's 'resize' event

https://gerrit.wikimedia.org/r/336594

Change 336965 merged by jenkins-bot:
[oojs/ui] ActionWidget/Set: Warn deprecation for methods using the 'resize' event

https://gerrit.wikimedia.org/r/336965

Change 328308 merged by jenkins-bot:
[oojs/ui@master] [BREAKING CHANGE] ActionWidget: Remove resize event

https://gerrit.wikimedia.org/r/328308

Volker_E edited projects, added OOUI (OOjs-UI-0.21.0); removed OOUI.
Volker_E removed a project: Patch-For-Review.
Volker_E removed a subscriber: gerritbot.
Volker_E subscribed.

Thanks @IvanFon for your contribution!