Created
May 17, 2013 18:08
-
-
Save MarkBennett/5600858 to your computer and use it in GitHub Desktop.
An example of seperating business logic from the DOM
This file contains hidden or 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 talk_to_webtrends(name, path) { | |
// Do WebTrends stuff I don't know here | |
} | |
$(".web-trends-link").click(function() { | |
var $elem, name, path; | |
$elem = $(this); | |
name = $elem.data("wtName"); | |
path = window.location.path; | |
talk_to_webtrends(name, path); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment