#546 ✓ staged
Scott Downe

I think we need a getTrackEventById() proposal

Reported by Scott Downe | June 1st, 2011 @ 10:47 AM | in 0.7

Right now we have a getTrackEvents(), which loops through all the tracks in byStart, pushes them into an array, and returns the array.

If I have an id of a track I want from using getLastTrackEventId(), I need to use getTrackEvents(), then loop through that array again, to compare ids until I find my trackEvent.

If we had a getTrackEventById, or even a getTrackEvent() to mimic the name of removeTrackEvent() which accepts an id, we could get what we want while only using one loop.

We might also consider a getLastTrackEvent() to just return the object of the last event added, instead of an id, and using the id to then get the track.


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