From: ScottDowne Date: Fri, 25 Feb 2011 16:48:49 +0000 (-0500) Subject: [#369] create empty start and end function X-Git-Tag: v0.4~30 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=6847060805e4f43d54610c51386587c2f758d072;p=popcorn-js.git [#369] create empty start and end function --- diff --git a/popcorn.js b/popcorn.js index 17d20e3..19e7c31 100644 --- a/popcorn.js +++ b/popcorn.js @@ -484,6 +484,9 @@ // 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