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

Whole class bindable? #3

Closed
cambiata opened this issue Jul 4, 2013 · 2 comments
Closed

Whole class bindable? #3

cambiata opened this issue Jul 4, 2013 · 2 comments

Comments

@cambiata
Copy link

cambiata commented Jul 4, 2013

Supercool, thanks!

Would it be possible to add a listener to the IBindable class instance itself - not just the fields?

(I think that I could do that back in the Flex days...)

/ Jonas

@profelis
Copy link
Member

profelis commented Jul 4, 2013

Bind.bindxGlobal(classInstance, function (fieldName:String, from:Dynamic, to:Dynamic) {} );

https://github.com/HxJointForces/bindx/blob/master/src/bindx/Bind.hx#L241

@profelis
Copy link
Member

profelis commented Jul 4, 2013

Method and field signals support global listeners - listeners for instance.

UPD: https://github.com/HxJointForces/bindx/blob/master/src/bindx/BindSignal.hx#L83

@profelis profelis closed this as completed Jul 4, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants