@@ -328,22 +328,22 @@ ChatProxy.prototype = {
328
328
329
329
switch ( status ) {
330
330
case Strophe . Status . ERROR :
331
- err = getError ( 422 , 'Status.ERROR - An error has occurred' ) ;
331
+ err = Utils . getError ( 422 , 'Status.ERROR - An error has occurred' ) ;
332
332
if ( typeof callback === 'function' ) callback ( err , null ) ;
333
333
break ;
334
334
case Strophe . Status . CONNECTING :
335
335
Utils . QBLog ( '[ChatProxy]' , 'Status.CONNECTING' ) ;
336
336
Utils . QBLog ( '[ChatProxy]' , 'Chat Protocol - ' + ( config . chatProtocol . active === 1 ? 'BOSH' : 'WebSocket' ) ) ;
337
337
break ;
338
338
case Strophe . Status . CONNFAIL :
339
- err = getError ( 422 , 'Status.CONNFAIL - The connection attempt failed' ) ;
339
+ err = Utils . getError ( 422 , 'Status.CONNFAIL - The connection attempt failed' ) ;
340
340
if ( typeof callback === 'function' ) callback ( err , null ) ;
341
341
break ;
342
342
case Strophe . Status . AUTHENTICATING :
343
343
Utils . QBLog ( '[ChatProxy]' , 'Status.AUTHENTICATING' ) ;
344
344
break ;
345
345
case Strophe . Status . AUTHFAIL :
346
- err = getError ( 401 , 'Status.AUTHFAIL - The authentication attempt failed' ) ;
346
+ err = Utils . getError ( 401 , 'Status.AUTHFAIL - The authentication attempt failed' ) ;
347
347
if ( typeof callback === 'function' ) callback ( err , null ) ;
348
348
break ;
349
349
case Strophe . Status . CONNECTED :
@@ -1001,7 +1001,7 @@ PrivacyListProxy.prototype = {
1001
1001
var errorObject = getErrorFromXMLNode ( stanzaError ) ;
1002
1002
callback ( errorObject , null ) ;
1003
1003
} else {
1004
- callback ( getError ( 408 ) , null ) ;
1004
+ callback ( Utils . getError ( 408 ) , null ) ;
1005
1005
}
1006
1006
} ) ;
1007
1007
} ,
@@ -1041,7 +1041,7 @@ PrivacyListProxy.prototype = {
1041
1041
var errorObject = getErrorFromXMLNode ( stanzaError ) ;
1042
1042
callback ( errorObject , null ) ;
1043
1043
} else {
1044
- callback ( getError ( 408 ) , null ) ;
1044
+ callback ( Utils . getError ( 408 ) , null ) ;
1045
1045
}
1046
1046
} ) ;
1047
1047
} ,
@@ -1105,7 +1105,7 @@ PrivacyListProxy.prototype = {
1105
1105
var errorObject = getErrorFromXMLNode ( stanzaError ) ;
1106
1106
callback ( errorObject ) ;
1107
1107
} else {
1108
- callback ( getError ( 408 ) ) ;
1108
+ callback ( Utils . getError ( 408 ) ) ;
1109
1109
}
1110
1110
} ) ;
1111
1111
} ,
@@ -1154,7 +1154,7 @@ PrivacyListProxy.prototype = {
1154
1154
var errorObject = getErrorFromXMLNode ( stanzaError ) ;
1155
1155
callback ( errorObject ) ;
1156
1156
} else {
1157
- callback ( getError ( 408 ) ) ;
1157
+ callback ( Utils . getError ( 408 ) ) ;
1158
1158
}
1159
1159
} ) ;
1160
1160
} ,
@@ -1177,7 +1177,7 @@ PrivacyListProxy.prototype = {
1177
1177
var errorObject = getErrorFromXMLNode ( stanzaError ) ;
1178
1178
callback ( errorObject ) ;
1179
1179
} else {
1180
- callback ( getError ( 408 ) ) ;
1180
+ callback ( Utils . getError ( 408 ) ) ;
1181
1181
}
1182
1182
} ) ;
1183
1183
} ,
@@ -1200,7 +1200,7 @@ PrivacyListProxy.prototype = {
1200
1200
var errorObject = getErrorFromXMLNode ( stanzaError ) ;
1201
1201
callback ( errorObject ) ;
1202
1202
} else {
1203
- callback ( getError ( 408 ) ) ;
1203
+ callback ( Utils . getError ( 408 ) ) ;
1204
1204
}
1205
1205
} ) ;
1206
1206
}
@@ -1407,7 +1407,7 @@ function getErrorFromXMLNode(stanzaError) {
1407
1407
var errorElement = stanzaError . getElementsByTagName ( 'error' ) [ 0 ] ;
1408
1408
var errorCode = parseInt ( errorElement . getAttribute ( 'code' ) ) ;
1409
1409
var errorText = errorElement . getElementsByTagName ( 'text' ) [ 0 ] . textContent ;
1410
- return getError ( errorCode , errorText ) ;
1410
+ return Utils . getError ( errorCode , errorText ) ;
1411
1411
}
1412
1412
1413
1413
function getLocalTime ( ) {
0 commit comments