Skip to content

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