Last active
December 18, 2015 10:59
-
-
Save seikai/5772196 to your computer and use it in GitHub Desktop.
amd class define template
This file contains 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
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