Skip to content

Instantly share code, notes, and snippets.

@mroch
Created January 21, 2010 23:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mroch/283316 to your computer and use it in GitHub Desktop.
Save mroch/283316 to your computer and use it in GitHub Desktop.
initialize: function(elem) {
this.content = $(elem);
},
actions: function(){
this.content.select('.lbAction').each(function(lbAction) {
lbAction.observe('click', this[lbAction.rel]);
lbAction.onclick = function() { return false };
}, this);
return this;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment