Created
January 7, 2011 07:27
-
-
Save jimfleming/769224 to your computer and use it in GitHub Desktop.
Listens for events from emission...
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
var sys = require('sys'), | |
Emission = require('./emission'); | |
var emission = new Emission(); | |
emission.cycle(); | |
emission.on('recycle', function(cycles) { | |
if (cycles < 10) { | |
sys.puts(cycles); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment