Skip to content

Instantly share code, notes, and snippets.

@wrumsby
Created July 21, 2013 08:53
Show Gist options
  • Save wrumsby/6047965 to your computer and use it in GitHub Desktop.
Save wrumsby/6047965 to your computer and use it in GitHub Desktop.
AMD constructor
define([], function () {
function Ticker () {
this.seed = 0;
}
Ticker.prototype = {
next: function () {
return this.seed++;
}
};
return Ticker;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment