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 only fires on image error #11

Open
drewbrolik opened this issue Mar 24, 2014 · 0 comments
Open

callback only fires on image error #11

drewbrolik opened this issue Mar 24, 2014 · 0 comments
Assignees
Labels

Comments

@drewbrolik
Copy link
Owner

Add to line 145 (right after calling setSource):

// callback
if (typeof options.callback == 'function') { // make sure the callback is a function
options.callback.call(this); // brings the scope to the callback
}

@drewbrolik drewbrolik added the bug label Mar 24, 2014
@drewbrolik drewbrolik self-assigned this Mar 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant