-
Notifications
You must be signed in to change notification settings - Fork 5
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
Rename __filterChanged to filterChanged #336
Comments
Can you give me an example where you would override |
This issue was requested by @nomego so he knows more, but the problem appears in
The renamings of ( _ [ _ ])filterChanged should be done all over cosmoz-omnitable as told by nomego. |
@nomego Looking at the code, it becomes apparent that the purpose of columnMixin's https://github.com/Neovici/cosmoz-omnitable/blob/master/cosmoz-omnitable-column.js#L84-L89 I'm not sure if making the private method public is the best solution. Maybe it would be better to keep it private and instead set up a different observer in cosmoz-omnitable-column, just like in cosmoz-omnitable-column-boolean: https://github.com/Neovici/cosmoz-omnitable/blob/master/cosmoz-omnitable-column-boolean.js#L90-L118 |
So now Boolean is broken cause it doesn't fire the event? (Haven't looked at the code) I haven't actually analyzed the logic at all, just gave the answer to solve the warning. If the nature of the observer is internal and not meant to be overridden we should change Boolean to not override it. |
@nomego no, boolean has both |
By design
__filterChanged
needs to be overridden, but it needs to be renamed tofilterChanged
because it is private.The text was updated successfully, but these errors were encountered: