Add deprecation warnings for events that will be removed.
This commit is contained in:
parent
51e13fc42b
commit
e0c6626c6f
@ -68,6 +68,9 @@
|
|||||||
$(event_context).one(evt, handler);
|
$(event_context).one(evt, handler);
|
||||||
},
|
},
|
||||||
on: function (evt, handler) {
|
on: function (evt, handler) {
|
||||||
|
if (_.contains(['ready', 'initialized'], evt)) {
|
||||||
|
converse.log('Warning: The "'+evt+'" event has been deprecated and will be removed, please use "connected".');
|
||||||
|
}
|
||||||
$(event_context).bind(evt, handler);
|
$(event_context).bind(evt, handler);
|
||||||
},
|
},
|
||||||
off: function (evt, handler) {
|
off: function (evt, handler) {
|
||||||
|
Loading…
Reference in New Issue
Block a user