Created
February 21, 2012 22:35
-
-
Save joubertnel/1879499 to your computer and use it in GitHub Desktop.
prepare balls
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
prepare: function() { | |
var i; | |
var balls = []; | |
for (i=0; i < 100; i++) { | |
balls.push(new Demo.Ball({ number:i })); | |
} | |
this.set('balls', balls); | |
Demo.BallAreaView.create().appendTo('body'); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment