Skip to content

Instantly share code, notes, and snippets.

@edspencer
Created May 7, 2009 16:27
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 edspencer/108193 to your computer and use it in GitHub Desktop.
Save edspencer/108193 to your computer and use it in GitHub Desktop.
//constructor for the MyClass class
MyClass = function() {
//do whatever constructor logic you need, or just leave it blank
};
//creates a class-level function, which you can call via MyClass.loadThing()
MyClass.loadThing = function() {
//do your loading thing
}
Ext.extend(Ext.grid.GridPanel, {
loadThing: MyClass.loadThing
});
var myObj = new MyClass();
myObj.loadThing();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment