Skip to content

Instantly share code, notes, and snippets.

@ryanflorence
Created May 12, 2010 18:33
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 ryanflorence/398945 to your computer and use it in GitHub Desktop.
Save ryanflorence/398945 to your computer and use it in GitHub Desktop.
var Person = new Class({
Implements: Options,
options: {
height: 'tall',
weight: 'fat'
},
jQuery: 'person', // must be after options definition
awesome: true,
initialize: function(selector, options){
this.setOptions(options);
this.jqueryObject = jQuery(selector);
},
dance: function(whichDance){
alert(whichDance);
return this;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment