This file contains hidden or 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
files = { | |
2:{ | |
filename:"somefile.zip", | |
size:1200, | |
daysOld:2 | |
},7:{ | |
filename:"someother.zip", | |
size:1200, | |
daysOld:7 | |
},21:{ |
This file contains hidden or 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
// setup event management | |
module.exports = function(){ return new Game(); } | |
var events = require('events'), util = require('util'); | |
function Game(){ events.EventEmitter.call(this); } | |
util.inherits(Game, events.EventEmitter); | |
Game.prototype.start = function(){ | |
// called when start is issued | |
NewerOlder