Ticket #5732 (closed feature: fixed)
Widget: Make the widget method maintain the stack
| Reported by: | scott.gonzalez | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.0 |
| Component: | ui.widget | Version: | 1.8.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$( el ).plugin( "widget" ).end() should work like any other plugin that modifies the stack.
Change History
comment:1 Changed 3 years ago by joern.zaefferer
- Status changed from new to closed
- Resolution set to fixed
comment:2 Changed 3 years ago by scott.gonzalez
- Status changed from closed to reopened
- Resolution fixed deleted
Reverted the commit. See commit notes.
comment:3 Changed 3 years ago by jzaefferer
- Status changed from reopened to closed
- Resolution set to fixed
Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack
Changeset: ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d
comment:4 Changed 3 years ago by jzaefferer
Use pushStack in tooltip's widget method. See #5732
Changeset: 96977edecc134d9212a304a1236e823237e8e274
comment:5 Changed 3 years ago by Scott González
Revert "Use pushStack in widget method. Fixes #5732 - make the widget method maintain the stack"
This reverts commit ea58cd5ac0d852a9c7d7ceadbcbb74006cf9052d.
Changeset: 58ae7ce2fd20fb865c9087fb2eae0dbdb39fc9a7
comment:6 Changed 3 years ago by scott.gonzalez
- Status changed from closed to reopened
- Resolution fixed deleted
comment:7 Changed 2 years ago by scott.gonzalez
- Summary changed from make the widget method maintain the stack to Widget: Make the widget method maintain the stack
comment:8 Changed 2 years ago by Scott González
- Status changed from reopened to closed
- Resolution set to fixed
Widget: Maintain stack when a method returns a jQuery object. Fixes #5732 - Widget: Make the widget method maintain the stack.
Changeset: f77224055a65f8343cd53411608a95d98db97138


Fixed in ea58cd5.
Always use this.element.pushStack(widgetElement.get()) in custom widget() implementations.