Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Canvas complete #15

Open
niklasp opened this issue May 21, 2014 · 1 comment
Open

Canvas complete #15

niklasp opened this issue May 21, 2014 · 1 comment

Comments

@niklasp
Copy link

niklasp commented May 21, 2014

Is there a way to attach a listener, that executes, when all the words are ready on the canvas?

@k1sr
Copy link

k1sr commented Feb 16, 2017

Surely someone knows how to do this...

ok, so I'm no guru with jQuery, but the canvas 'finishes' at line 441 - i.e. where it say's 'return':

window.setImmediate(function loop() {
	if (i >= $this.words.length) {
		return;
	}
	$this.putWord($this.words[ i ][ 0 ], $this.words[ i ][ 1 ], $this.words[ i ][ 2 ], $this.words[ i ][ 3 ]);
	i += 1;
	window.setImmediate(loop);
});

You could probably put a callback in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants