Skip to content

Instantly share code, notes, and snippets.

@elucid
Forked from anonymous/gist:50406
Created January 22, 2009 04:00
Show Gist options
  • Save elucid/50407 to your computer and use it in GitHub Desktop.
Save elucid/50407 to your computer and use it in GitHub Desktop.
View = {}
(function(){
var self = View;
View.init = function() {
$('[href=#evt-name]').click(this.revealEventName);
$('[href=#evt-when]').click(this.revealEventWhen);
},
View.revealEventName = function() {
// do something with self
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment