From 27b021212edecb2567dc342d279e8ff87b4558da Mon Sep 17 00:00:00 2001 From: rwldrn Date: Sat, 4 Dec 2010 19:39:28 -0500 Subject: [PATCH] Removes console logs --- popcorn.js | 6 +++--- test/demo.js | 52 ++++++++++++++++++++-------------------------------- 2 files changed, 23 insertions(+), 35 deletions(-) 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(); - - } - - - }); + })() + ); -- 2.43.0