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

Added onAdjust Callback #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

abconrad
Copy link

@abconrad abconrad commented Sep 2, 2014

The Callback parameter will be run when Anystretch is called directly. I needed a callback that would run anytime _adjustBG completed for a project that I am working on.

I wanted to make sure my code wouldn't break any existing implementations of the plugin so I added an option called "onAdjust" to handle this.

Let me know if you would like me to change how I've implemented this solution.

There is now an option to add a callback function for onAjust.

This gets called anytime _adjustBG is done.
My original code through an error when not options were set.
The code is now checking to make sure options are set before
trying to run the onAdjust callback.
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

Successfully merging this pull request may close these issues.

1 participant