소스 검색

Properly proxy callbacks

JC Brand 12 년 전
부모
커밋
4b69a89090
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      converse.js

+ 1 - 1
converse.js

@@ -1908,7 +1908,7 @@
             if (this.localStorage.records.length === 0) {
                 // localStorage is empty, so we've likely never queried this
                 // 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));
             } else {
                 this.fetch({add:true});