#715 ✓ staged
Rick

Core Meta: Add alias cue:exec

Reported by Rick | September 11th, 2011 @ 08:39 AM | in 0.9 (closed)

I want to open up discussion here about adding an "alias" for exec. I think this will make the API more intuitive to new comers from video production and editting backgrounds. See: http://en.wikipedia.org/wiki/Cue_(theatrical)

In The core, we simply need to add:


Popcorn.p.cue = Popcorn.p.exec;

In the test suite, inside the exec test block, add:


ok( Popcorn.p.cue, "Popcorn.p.cue exists" );
equal( typeof Popcorn.p.cue, "function", "Popcorn.p.cue is a function" );
deepEqual( Popcorn.p.cue, Popcorn.p.exec, "Popcorn.p.cue equals Popcorn.p.exec" );

// deepEqual might be unnecessary

An example use case:


Popcorn("#video").cue( 5, function() {

    confirm( "Are you sure you want to continue watching?" );

});

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Popcorn.js is an HTML5 video framework that lets you bring elements of the web into your videos.

Popcorn.js is a project of Web Made Movies, Mozilla's Open Video Lab.

Shared Ticket Bins

Referenced by

Pages