jQuery .one triggered by plugin event

57 Views Asked by At

Is there a way to trigger the removeClass using the jQ .one when it's wrapped in Popcorn .cue event? Can this be done without rigging the internal Popcorn code itself?

popcornClip.cue( 41, function() {

  $('#ele').removeClass('someClass'); // I want this triggered only once

});

I know that it should only do it once as it is but I'm seeing a bug in how it's executed and I'm suspecting Popcorn cue may be at fault. So this is for debugging test

http://popcornjs.org/popcorn-docs/media-methods/#cue

0

There are 0 best solutions below