Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notifyCaller() will always pass an argument #10

Open
GoogleCodeExporter opened this issue Apr 23, 2016 · 0 comments
Open

notifyCaller() will always pass an argument #10

GoogleCodeExporter opened this issue Apr 23, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

If you call "notifyCaller()" with no value, the handler will receive an
argument.

consider:

public function bob() : void
{
var handler : CallBacks = new Callbacks( onResult_bob );
var event : MyEvent = new MyEvent( MyEvent.EVENT , handler ).dispatch();
}

--the notify caller from the command is just:
notifyCaller();

--if the handler is:
onResult_bob() : void {}
--an error is thrown as an argument is passed
--if the handler is:
onResult_bob( result : * ) : void {}
-- no error is thrown, but the value of "result" is null

Let me know if you need more info from me

Cheers,

David Harris
djohnsmarie@gmail.com

Original issue reported on code.google.com by djohnsma...@gmail.com on 7 Aug 2008 at 4:12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant