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

Allow overrides to fillFaceboxFrom* behavior via $.facebox.fillFrom* #28

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

Conversation

Empact
Copy link

@Empact Empact commented Jun 6, 2011

Improve customizability by moving the private fillFaceboxFrom* functions onto the $.facebox object as $.facebox.fillFrom*. E.g., you can now override $.facebox.fillFromAjax to customize your AJAX calls.

Previously private function which are now available on $.facebox: init, fillFromAjax, fillFromImage, fillFromHref

Previously private functions which remain private:
As inner functions: showOverlay, getPageHeight, getPageScroll, makeCompatible
As local to the closure: hideOverlay

In $.facebox, I pass the full first data argument to the fillFrom* functions, to allow people to use and process additional arguments on the call side as well.

This addresses pull request #26 and #11 by given people the hooks they need to customize behavior to suit their apps.

…om* functions onto the $.facebox object as $.facebox.fillFrom*. E.g., you can now override $.facebox.fillFrom* to customize your AJAX calls.

Previously private function which are now available on $.facebox: init, fillFromAjax, fillFromImage, fillFromHref

Previously private functions which remain private:
As inner functions: showOverlay, getPageHeight, getPageScroll, makeCompatible
As local to the closure: hideOverlay
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