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

Fix tests for Chaplin#780 #1

Merged
merged 6 commits into from
Jan 9, 2015
Merged

Fix tests for Chaplin#780 #1

merged 6 commits into from
Jan 9, 2015

Conversation

Florian-R
Copy link

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


matchesSelector: (node, selector) ->
matchesSelector = node.matches || node.webkitMatchesSelector || node.mozMatchesSelector || node.msMatchesSelector
matchesSelector.call(node, selector)

Copy link
Author

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

Copy link
Owner

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

@Florian-R
Copy link
Author

All done. I've also changed the call to $ by Backbone.$ in toggleElement for the sake of consistency.

@akre54
Copy link
Owner

akre54 commented Jan 9, 2015

Awesome. Thanks.

akre54 added a commit that referenced this pull request Jan 9, 2015
@akre54 akre54 merged commit cf2ab90 into akre54:bb-view-hooks Jan 9, 2015
@Florian-R
Copy link
Author

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.

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

Successfully merging this pull request may close these issues.

2 participants