Skip to content

Instantly share code, notes, and snippets.

@aliaspooryorik
Created March 11, 2014 09:47
Show Gist options
  • Save aliaspooryorik/9482602 to your computer and use it in GitHub Desktop.
Save aliaspooryorik/9482602 to your computer and use it in GitHub Desktop.
Callback with arguments example
variables.CUT.$("sayHello").$callback(variables.testFunction);
assertEquals("Hola Luis", variables.CUT.sayHello("Luis"))
// the callback method
private function testFunction(name){
return "Hola " & arguments.name;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment