Menu icon Foundation
Orbit: Docs Event Example not working

Hello,

the following example is not working for me (current FF, current Foundation 5)

$("#featured1").on("after-slide-change.fndtn.orbit", function(event, orbit) {
  console.info("after slide change");
  console.info("slide " + orbit.slide_number + " of " + orbit.total_slides);
});

This produces the following error.

TypeError: orbit is undefined

Of course this may be entirely my fault but anyhow, I'm stuck and any help is greatly appreciated. If you need me to provide further information please let me know!

EDIT: I should probably add that, this error aside, orbit does already work as expected.

Orbit

Hello,

the following example is not working for me (current FF, current Foundation 5)

$("#featured1").on("after-slide-change.fndtn.orbit", function(event, orbit) {
  console.info("after slide change");
  console.info("slide " + orbit.slide_number + " of " + orbit.total_slides);
});

This produces the following error.

TypeError: orbit is undefined

Of course this may be entirely my fault but anyhow, I'm stuck and any help is greatly appreciated. If you need me to provide further information please let me know!

EDIT: I should probably add that, this error aside, orbit does already work as expected.