Skip to content

Instantly share code, notes, and snippets.

@tivac
Created January 14, 2010 00:41
Show Gist options
  • Save tivac/276741 to your computer and use it in GitHub Desktop.
Save tivac/276741 to your computer and use it in GitHub Desktop.
Y.Echofin.Modal.async('/path', function(dlg) {
Y.delegate("click", function(e) {
//from in here you can still call stuff from outside the .async
//call thanks to closures, so go nuts!
}, dlg, "a.img");
}, this);
function(path, callback, scope) {
//do some stuff
//on success of the ajax & insertion
callback.call(scope, dialog_reference);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment