Github user martin-g commented on a diff in the pull request:
https://github.com/apache/wicket/pull/223#discussion_r129422438
--- Diff:
wicket-core/src/main/java/org/apache/wicket/ajax/res/js/wicket-event-jquery.js
---
@@ -277,6 +277,10 @@
* @param topic {String} - the channel name for which
all subscribers will be notified.
*/
publish: function (topic) {
+ if (topic === Topic.AJAX_HANDLERS_BOUND) {
+ console.warn("As of Wicket 8,
Topic.AJAX_HANDLERS_BOUND has been deprecated in favour of
Topic.AJAX_ONDOMREADY_EVENTS_BOUND and will be removed in Wicket 9.")
+ topic = Topic.AJAX_ONDOMREADY_EVENTS_BOUND;
+ }
--- End diff --
To be backward compatible we will have to still publish this event together
with the new one.
This check and warning should be moved to `#subscribe()`.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---