Skip to content

Instantly share code, notes, and snippets.

@hazisarashi
Created February 10, 2010 02:23
Show Gist options
  • Save hazisarashi/299950 to your computer and use it in GitHub Desktop.
Save hazisarashi/299950 to your computer and use it in GitHub Desktop.
end = new fnc();
$.getJSON(url1,function(json){ end.a = json; end.check(); });
$.getJSON(url2,function(json){ end.b = json; end.check(); });
function fnc(){
this.a;
this.b;
}
fnc.prototype.check = function(){
if ( this.a && this.b ){
//2つとも取得できた!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment