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

Callback function #2

Closed
shawnier opened this issue Oct 4, 2012 · 2 comments
Closed

Callback function #2

shawnier opened this issue Oct 4, 2012 · 2 comments

Comments

@shawnier
Copy link

shawnier commented Oct 4, 2012

Hi

Firstable I would like to say thanks for this great plugin. Everything works perfectly for my purpose and it does seems like the besteraser (scratch)plugin available online.

I have been trying to get the callback function working.

however the function is called when the document is loaded. ( instead of being calledback when the eraser function complete).

function test() {
$('#test').fadeIn();
}
function init(event) {
$("#redux").eraser({
completeRatio: 0.8,
completeFunction: test()
});
}
addEventListener( "load", init, false );

@shawnier
Copy link
Author

shawnier commented Oct 4, 2012

Don't worry I think I have got it working.

Thanks for the great plugin again!

@shawnier shawnier closed this as completed Oct 4, 2012
@chuck59
Copy link

chuck59 commented Jun 3, 2016

I'm facing the same issue, can you please assist how did you fix? btw I've removed () from completeFunction: test() line

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