Created
January 14, 2010 00:41
-
-
Save tivac/276741 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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