Snaterlicious created this task. Snaterlicious added a subscriber: Snaterlicious. Snaterlicious added a project: MediaWiki-extensions-WikibaseRepository. Restricted Application added a subscriber: Aklapper.
TASK DESCRIPTION Currently, all `jQuery.wikibase.*view` widgets (in particular those deriving from `jQuery.ui.TemplatedWidget`) suffer from the conceptual conflict of mixing creation and initialization routine in the `_create` function. While a widget's initialization routine might require `jQuery.ui.TemplatedWidget`'s template short-cuts set up in `jQuery.ui.TemplatedWidget`'s `_create`, other widgets may listen to the widget's "create" event assuming that all the initialization has taken place. The conceptual goal should be: * `_create` is used to only create DOM structure. * `jQuery.ui.TemplatedWidget`'s short-cut selectors are initialized in `jQuery.ui.TemplatedWidget`'s `_create` for those to be used in `_init`. * (`jQuery.Widget` native "create" event is triggered after that creation routine.) * `jQuery.Widget._init` should be overriden for initializing sub-widgets. * "init" event should be triggered at the end of the initialization routine (likely using a basic implementation in `jQuery.ui.TemplatedWidget`). External widgets (e.g. toolbars) should listen on that event. TASK DETAIL https://phabricator.wikimedia.org/T88699 REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>. EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Snaterlicious Cc: Snaterlicious, Aklapper, Wikidata-bugs _______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs