From: rwldrn Date: Sun, 5 Dec 2010 20:19:07 +0000 (-0500) Subject: [#195] Implement this.roundTime() as convenience to currentTime() X-Git-Tag: v0.2~59^2~2 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=068502331e3b55b640f5b253a721e7a55c83a4cc;p=popcorn-js.git [#195] Implement this.roundTime() as convenience to currentTime() --- diff --git a/popcorn.js b/popcorn.js index a96403c..386ed5c 100644 --- a/popcorn.js +++ b/popcorn.js @@ -134,12 +134,19 @@ Popcorn.extend(Popcorn.p, { - setCommand: function() { + // getting properties + roundTime: function () { + return -~this.video.currentTime; + }, - }, - getCommand: function() { - }, + + + + + + + toTrack: function( setup ) { /* {