From: rwldrn Date: Sun, 5 Dec 2010 00:39:28 +0000 (-0500) Subject: Removes console logs X-Git-Tag: v0.2~68^2~7 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=27b021212edecb2567dc342d279e8ff87b4558da;p=popcorn-js.git Removes console logs --- diff --git a/popcorn.js b/popcorn.js index d630bb6..29a10d7 100644 --- a/popcorn.js +++ b/popcorn.js @@ -280,20 +280,20 @@ if ( ~~self.currentTime() === options.start || self.currentTime() === options.start ) { - setup.start.call(self, event); + setup.start.call(self, event, options); } if ( self.currentTime() > options.start && self.currentTime() < options.end ) { - setup.timeupdate.call(self, event); + setup.timeupdate.call(self, event, options); } if ( ~~self.currentTime() === options.end || self.currentTime() === options.end ) { - setup.end.call(self, event); + setup.end.call(self, event, options); } }); diff --git a/test/demo.js b/test/demo.js index 240b728..281b497 100644 --- a/test/demo.js +++ b/test/demo.js @@ -7,41 +7,29 @@ - Popcorn.plugin( "complicator", { + Popcorn.plugin( "complicator", (function () { - - - start: function () { + //create your fucking dom elements here. + + + return { + + start: function () { + + }, + + end: function () { + + }, + + timeupdate: function () { + + } + }; - var $qhead = document.getElementById("qunit-header"); - - $qhead.innerHTML = "complicator STARTED!"; - - }, - - - - end: function () { - - var $qhead = document.getElementById("qunit-header"); - - $qhead.innerHTML = "complicator ENDED!"; - - }, - - - - timeupdate: function () { - - var $qhead = document.getElementById("qunit-header"); - - $qhead.innerHTML = $qhead.innerHTML + " " + this.currentTime(); - - } - - - }); + })() + );