/ Published in: JavaScript

MooTools Class Template by David Walsh
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
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() { } });
URL: http://davidwalsh.name/mootools-12-class-template
Comments
