Skip to content

Instantly share code, notes, and snippets.

@jpoz
Created March 5, 2010 21:40
Show Gist options
  • Select an option

  • Save jpoz/323191 to your computer and use it in GitHub Desktop.

Select an option

Save jpoz/323191 to your computer and use it in GitHub Desktop.
$.engineer.define('gbutton_link', {
defaults: {href:'/', text:'Click Me'},
structure: function(options) {
return $.engineer.make('gbutton', options)
// gbutton is part of the edison library http://github.com/jpoz/edison
},
behavior: function(options) {
this.click(function() {
window.location = options.href
})
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment