]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#369] create empty start and end function
authorScottDowne <sdowne@learn.senecac.on.ca>
Fri, 25 Feb 2011 16:48:49 +0000 (11:48 -0500)
committerScottDowne <sdowne@learn.senecac.on.ca>
Fri, 25 Feb 2011 16:48:49 +0000 (11:48 -0500)
popcorn.js

index 17d20e3bed8cea1c427fb6d41c094a0a5e75fa00..19e7c31cc819a1273a6230565fc3259a397760ac 100644 (file)
 
       //  Push track event ids into the history
       obj.data.history.push( track._id );
+
+      track._natives.start = track._natives.start || Popcorn.nop;
+      track._natives.end = track._natives.end || Popcorn.nop;
     }
 
     // Store this definition in an array sorted by times