-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix tests for Chaplin#780 #1
Conversation
|
||
matchesSelector: (node, selector) -> | ||
matchesSelector = node.matches || node.webkitMatchesSelector || node.mozMatchesSelector || node.msMatchesSelector | ||
matchesSelector.call(node, selector) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure DOM manipulation belongs to Chaplin
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. But maybe we could use something like https://github.com/akre54/Backbone.NativeView/blob/0.3.2/backbone.nativeview.js#L34-L48 that has older browser support and eagerly finds the selector... if we really need it
All done. I've also changed the call to |
Awesome. Thanks. |
Meh. I see Travis still fail in the original PR. I must have fucked up something with Grunt when i've rerunned the tests. Won't have time to work on this before Monday, but i'll sent another PR ASAP. |
I'd really like to see chaplinjsgh-780 merged, so i tried to fix the failling tests.
I had to update grunt-mocha due to some inability to install PhantomJS.
I'm not completly happy with this PR, i'll comment in the code.
Also, i didn't try to see if tests are OK without deps, i'd prefer adress eventuals comments before going on with this