From b8bbe285e49f4b9c1322fedda9bda0a463344944 Mon Sep 17 00:00:00 2001 From: rwldrn Date: Sun, 5 Dec 2010 10:31:19 -0500 Subject: [PATCH] Implements Popcorn.nop() - basic no operation reference; --- popcorn.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/popcorn.js b/popcorn.js index 429d114..2cf87bb 100644 --- a/popcorn.js +++ b/popcorn.js @@ -97,7 +97,8 @@ } return size; - } + }, + nop: function () {} }); // Simple Factory pattern to implement native @@ -279,7 +280,7 @@ } - this.listen( "timeupdate", function( event ) { + this.addEventListener( "timeupdate", function( event ) { if ( ~~self.currentTime() === options.start || @@ -301,7 +302,7 @@ setup.end.call(self, event, options); } - }); + }, false); return this; -- 2.43.0