Properly proxy callbacks
This commit is contained in:
parent
c07c0f5633
commit
4b69a89090
@ -1908,7 +1908,7 @@
|
|||||||
if (this.localStorage.records.length === 0) {
|
if (this.localStorage.records.length === 0) {
|
||||||
// localStorage is empty, so we've likely never queried this
|
// localStorage is empty, so we've likely never queried this
|
||||||
// domain for features yet
|
// domain for features yet
|
||||||
converse.connection.disco.info(converse.domain, null, this.onInfo, this.onError);
|
converse.connection.disco.info(converse.domain, null, $.proxy(this.onInfo, this), $.proxy(this.onError, this));
|
||||||
converse.connection.disco.items(converse.domain, null, $.proxy(this.onItems, this), $.proxy(this.onError, this));
|
converse.connection.disco.items(converse.domain, null, $.proxy(this.onItems, this), $.proxy(this.onError, this));
|
||||||
} else {
|
} else {
|
||||||
this.fetch({add:true});
|
this.fetch({add:true});
|
||||||
|
Loading…
Reference in New Issue
Block a user