Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.59 KB | None | 0 0
  1. $el
  2. .doThis
  3. .end()
  4. .find( "a" ).first().removeClass( someClass );
  5.  
  6. $el
  7. .doThis
  8. .end()
  9. .find( "a" ).first().toggleClass( someClass , ( o.direction == "horizontal" ? !isCollapse : event ) );
  10.  
  11. $el
  12. .doThis
  13. .end()
  14. .find( "a" ).first()[o.direction == 'horizontal' ? 'toggleClass':'removeClass']( someClass )
  15.  
  16. <div data-direction="horizontal">
  17.  
  18. if(element.getAttribute("data-direction") == "horizontal")
  19. {
  20. //TODO: remove or toggle
  21. }
  22.  
  23. element.setAttribute("data-direction","state");
  24.  
  25. .toggleClass( someClass , ( o.direction == "horizontal" ? !isCollapse : false ) )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement