Skip to content

Instantly share code, notes, and snippets.

@seikai
Last active December 18, 2015 10:59
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 seikai/5772196 to your computer and use it in GitHub Desktop.
Save seikai/5772196 to your computer and use it in GitHub Desktop.
amd class define template
define([
"require"
],
function (require) {
/**
* @exports Klass
* @constructor
*/
var Klass = function(){
this.initialize.apply(this, arguments);
};
(function(){
/**
* initialize
*
* @alias Klass
*/
this.initialize = function(){
}
}).call(Klass.prototype);
return Klass;
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment