]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Restores Popcorn.getTrackEvent()
authorrwldrn <waldron.rick@gmail.com>
Thu, 2 Jun 2011 15:30:25 +0000 (11:30 -0400)
committerrwldrn <waldron.rick@gmail.com>
Thu, 2 Jun 2011 15:30:25 +0000 (11:30 -0400)
popcorn.js

index 7e4ef9c9639df43425669b9fbc05c2d8287cbb25..6775237d6682ed053fe49d41123fe9bab4d509c9 100644 (file)
 
   // Return a single track event bound to this instance object
   Popcorn.getTrackEvent = function( obj, trackId ) {
-    return obj.data.trackRefs[ trackId ] || null;
+    return obj.data.trackRefs[ trackId ];
   };
 
   // Internal Only - Returns an instance object's track reference by track id