Created
March 13, 2012 18:49
-
-
Save hassek/2030685 to your computer and use it in GitHub Desktop.
dynamic function calling
This file contains 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 retrieve_A(){ | |
//do stuff for A | |
} | |
function retrieve_B(){ | |
//do stuff for B | |
} | |
function append_onereceipt(web_case){ | |
info = window['retrieve_' + web_case](); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment