-
Notifications
You must be signed in to change notification settings - Fork 42
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
Use Node's EventEmitter semantics #5
Comments
|
Should every GObject be an EventEmitter? |
Well the GObject framework is made so that every instance has event-listening capabilities, and it's recommended that GIR bindings integrate idiomatically with the language that's being binded, so it makes sense to have the same semantics as EventEmitter (
And it would also require getting an instance of the javascript |
Bindings should integrate smoothly with target language, therefore:
EventEmitter#on
<-->GObject#connect
Maybe even inherit from
EventEmitter
?The text was updated successfully, but these errors were encountered: