Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function Connect(url, callback){
- var connection = {
- response : function(data) {
- console.log(data);
- }
- };
- callback(true, "dota");
- return connection;
- }
- var cn = Connect("vk.com", function(status, data){
- if (status){
- setTimeout(function(){
- cn.response = data;
- },0);
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement