]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#177] Fixes setup.timeupdate is undefined
authorrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 15:33:21 +0000 (10:33 -0500)
committerrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 15:33:21 +0000 (10:33 -0500)
popcorn.js

index 2cf87bba946a510bffc2f1e8a55e6d08a9bebc3d..e824008c3a4e0ec33f47a9be7b843d84e04cb2f0 100644 (file)
         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);