Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # 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.

Empact added 2 commits June 5, 2011 19:52
…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
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant