Created
January 15, 2010 20:01
-
-
Save mwarkentin/278369 to your computer and use it in GitHub Desktop.
A simple template for new Mootools classes from David Walsh.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var yourClass = new Class({ | |
Implements: [Options], | |
options: { | |
yourOption: '' | |
}, | |
initialize: function(options) { | |
this.setOptions(options); | |
}, | |
yourMethod: function() { | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment