Opened 11 years ago

Closed 11 years ago

#7792 closed enhancement (notabug)

Widget: Check if option changed before calling _setOption

Reported by: Jörn Zaefferer Owned by:
Priority: minor Milestone: 1.9.0
Component: ui.widget Version: git (not yet released)
Keywords: Cc:
Blocked by: Blocking:


If an option value didn't actually change, a lot of code probably shouldn't run at all. Should be possible to implement that within option or _setOptions.

Change History (2)

comment:1 Changed 11 years ago by rdworth

I'd rather see this done as-needed in specific widgets, otherwise a widget is incapable of knowing about a setOption that is setting the value to the current value. That could be done to force a side effect or a type of refresh (maybe a full refresh is not available or would be more drastic). An example of this is setting the dialog position.

comment:2 Changed 11 years ago by Jörn Zaefferer

Resolution: invalid
Status: newclosed


Note: See TracTickets for help on using tickets.