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
Using the hover plugin on multiple elements matching the same selector. Setting any leave prevents the next element from ever being hovered until you mouseover another element. e.g., If you start on an even, only the evens will hover.
var Foo = can.Control({ ".item hoverinit": function(el,ev,hover){ hover.leave(300); }, ".item hoverenter": function(el) { el.addClass("active"); }, ".item hoverleave": function(el) { el.removeClass("active"); } }); new Foo(".test-foo");
<div class="test-foo"> <ol> <li class="item">1 <li class="item">2 <li class="item">3 <li class="item">4 </ol> </div>
Demo: http://jsfiddle.net/AXwHG/
The text was updated successfully, but these errors were encountered:
667b07d
Merge pull request #65 from Spredfast/fix-hoverleave
e86776a
Force hover leave on new mouseenter. Fixes #63 and #64.
No branches or pull requests
Using the hover plugin on multiple elements matching the same selector. Setting any leave prevents the next element from ever being hovered until you mouseover another element. e.g., If you start on an even, only the evens will hover.
Demo: http://jsfiddle.net/AXwHG/
The text was updated successfully, but these errors were encountered: