We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function saveB() will be called twice in the following code. saveA is not called at all.
<body> <div id="a"></div> <div id="b"></div> <button id="test">test</button> </body> <script> function saveA(){ alert('saveA'); } function saveB(){ alert('saveB'); } $('#a').jqScribble({ width: 640, height: 200, saveFunction: saveA }); $('#b').jqScribble({ width: 640, height: 200, saveFunction: saveB }); $('#test').on('click', function(){ $('#a').data('jqScribble').save(); $('#b').data('jqScribble').save(); });
The text was updated successfully, but these errors were encountered:
I'll investigate this and let you know what I find.
Sorry, something went wrong.
I apologize for the delay on getting this fixed. One possible work around is to pass your save method in as a closure:
$('#test').on('click', function(){ $('#a').data('jqScribble').save(function() { alert('saveA'); }); $('#b').data('jqScribble').save(function() { alert('saveB'); }); });
No branches or pull requests
function saveB() will be called twice in the following code. saveA is not called at all.
The text was updated successfully, but these errors were encountered: