jockeyjs icon indicating copy to clipboard operation
jockeyjs copied to clipboard

嵌套调用jockey.on,出现函数被覆盖

Open sunshineningjing opened this issue 8 years ago • 0 comments

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));
        }

});

};

sunshineningjing avatar Feb 21 '17 06:02 sunshineningjing