Created
March 11, 2014 09:47
-
-
Save aliaspooryorik/9482602 to your computer and use it in GitHub Desktop.
Callback with arguments example
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
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