Last active
June 3, 2017 00:17
-
-
Save GoodNew5/2ccf0d797819e19ae36212171e0a0145 to your computer and use it in GitHub Desktop.
controller.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function uiController(domElement){ | |
var data = domElement.data(); | |
domElement.toggleClass('active'); | |
$(data.target).toggleClass('active'); | |
$(data.remove).removeClass('active'); | |
} | |
$(controller).click(function(e){ | |
uiController($(this)); | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment