From: rwldrn Date: Sun, 5 Dec 2010 15:33:21 +0000 (-0500) Subject: [#177] Fixes setup.timeupdate is undefined X-Git-Tag: v0.2~68^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=4c13b44df5838c53be97a06a5ac0693e4ebc10b8;p=popcorn-js.git [#177] Fixes setup.timeupdate is undefined --- diff --git a/popcorn.js b/popcorn.js index 2cf87bb..e824008 100644 --- a/popcorn.js +++ b/popcorn.js @@ -274,6 +274,10 @@ if ( !( "end" in options ) ) { options.end = this.duration(); } + + if ( !( "timeupdate" in options ) ) { + options.timeupdate = Popcorn.nop; + } if ( "_setup" in setup && typeof setup._setup === "function" ) { setup._setup.call(self, options);