Created
June 7, 2012 22:20
-
-
Save toddpi314/2892022 to your computer and use it in GitHub Desktop.
GameClock_ThreeOneFour_Usage
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
for (var i = 0; i <= 100; i++) { | |
var clock = new DeepElement.ThreeOneFour.Clock(); | |
var self = this; | |
clock.addEvent('tick', function(td) { | |
console.log('tick'); | |
var doSomethingWithSelf = self; | |
}); | |
clock.start(); | |
clock.stop(); | |
delete clock; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment