javascript - jQuery call external plugin method from inside another plugin -


i'm using jquery carousel plugin no documentation , lazy load xt (https://github.com/ressio/lazy-load-xt).

by default, lazy load xt loads images on following events: load orientationchange resize scroll.

i'd carousel plugin lazy load images when switchslide method called, having trouble implementing it.

the 2 ideas had in approaching issue are:

  1. manually initialize lazy load xt each time switchslide method called carousel.
  2. somehow pass custom event carousel plugin lazy load xt updateevent option

questions

  1. is possible call external method / initialize plugin (e.g, lazy load xt) inside plugin?
  2. is possible call lazy load xt within carousel plugin's switchslide method force images display? if so, how?
  3. is possible pass custom event carousel plugin lazy load xt updateevent option? if so, how?

carousel plugin code

http://jsfiddle.net/amc/vfekeyey/

any or advice appreciated.

thanks!


Comments