Return to Snippet

Revision: 24632
at March 5, 2010 22:41 by mdrisser


Initial Code
var yourClass = new Class({
	
	//implements
	Implements: [Options],

	//options
	options: {
		yourOption: ''
	},
	
	//initialization
	initialize: function(options) {
		//set options
		this.setOptions(options);
	},
	
	//a method that does whatever you want
	yourMethod: function() {
		
	}
	
});

Initial URL
http://davidwalsh.name/mootools-12-class-template

Initial Description
MooTools Class Template by David Walsh

Initial Title
MooTools Class Template

Initial Tags

                                

Initial Language
JavaScript