-
Notifications
You must be signed in to change notification settings - Fork 25
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
Update BaseMediatorProcessor #18
Comments
I think you can change if (method.parameters.length == 1 && method.parameters[0].type == ViewClass) to something like this if (method.parameters.length == 1 && method.parameters[0].type.prototype.isPrototypeOf (ViewClass.prototype)) |
+1 |
1 similar comment
+1 |
that would be nice feature |
I wanted to do something similar which was identify some views by the implemented Interface instead of the class itself. Here is what I have done which appears to be working. Hope this helps others:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
In my game I have few subclasses of BasePopup (custom DisplayObject class) and mediator for all my popups.
I have to create [ViewAdded] method for each BasePopup subclass
But I want to do something like this
The text was updated successfully, but these errors were encountered: