JavaScript, setInterval with a count
If possible I'd like to use to remove count and use an argument in
self.addOrbitTrap(). At the moment for testing my code does something like
this:
Bbrot.prototype.findMSet = function() {
//...code
var self = this;
canvasInterval = setInterval(function() {
self.addOrbitTrap();
}, 0);
}
var count = 0;
Bbrot.prototype.addOrbitTrap = function() {
//...code
count++;
}
No comments:
Post a Comment