From: rwldrn Date: Sun, 5 Dec 2010 15:31:19 +0000 (-0500) Subject: Implements Popcorn.nop() - basic no operation reference; X-Git-Tag: v0.2~68^2~3 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=b8bbe285e49f4b9c1322fedda9bda0a463344944;p=popcorn-js.git Implements Popcorn.nop() - basic no operation reference; --- 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;