jockeyjs
jockeyjs copied to clipboard
嵌套调用jockey.on,出现函数被覆盖
var dataInit = function () { GeoBOS.contacts.getContactsList(function( error, contactsList ){ if (error === null) { //for (var i = 0; i < 10000; i++) { $('#autoTestResultContactsList').text(contactsList.length); //} } else { $('#autoTestResultContactsList').text('getContactsList failed: ' + JSON.stringify(error)); } });
GeoBOS.im.getRecentChats(function(error, chatList){
if(error === null){
//for (var j = 0; j < 10000; j++) {
$('#autoTestResultRecentChats').text(JSON.stringify(chatList));
//}
}else{
$('#autoTestResultRecentChats').text("getRecentChats failed with " + selectedUserId + ":" + JSON.stringify(error));
}
});
};