Javascript class support
Download the production version or the development version.
In your web page:
<script src="dist/class.support.min.js"></script>
<script>
Class('cn.cuizuoli.ClassSupportTest', {
init: function(options) {
var _this = this;
_this._options = $.extend({
id: 'body'
}, options);
_this._root = $(_this._options.id);
_this._bindEvent();
//TODO init.
},
_bindEvent: function() {
var _this = this;
// TODO binding event.
}
});
new cn.cuizuoli.ClassSupportTest();
</script>
(Coming soon)
(Coming soon)
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using Grunt.
Also, please don't edit files in the "dist" subdirectory as they are generated via Grunt. You'll find source code in the "src" subdirectory!
(Nothing yet)
Copyright (c) 2014 cuizuoli
Licensed under the MIT license.