]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Implements Popcorn.nop() - basic no operation reference;
authorrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 15:31:19 +0000 (10:31 -0500)
committerrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 15:31:19 +0000 (10:31 -0500)
popcorn.js

index 429d1142f4efdce4600555c7aa20184342385cc9..2cf87bba946a510bffc2f1e8a55e6d08a9bebc3d 100644 (file)
@@ -97,7 +97,8 @@
       }
 
       return size;
-    }
+    }, 
+    nop: function () {}
   });    
   
   //  Simple Factory pattern to implement native 
         }
         
         
-        this.listen( "timeupdate", function( event ) {
+        this.addEventListener( "timeupdate", function( event ) {
           
           
           if ( ~~self.currentTime() === options.start || 
             setup.end.call(self, event, options);
           }
           
-        });
+        }, false);
       
         
         return this;