]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#195] Implement this.roundTime() as convenience to currentTime()
authorrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 20:19:07 +0000 (15:19 -0500)
committerrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 20:19:07 +0000 (15:19 -0500)
popcorn.js

index a96403c5826a055420f893c606866705222bf4c0..386ed5c4c9a3838661d44774511c234c06473e90 100644 (file)
   
   Popcorn.extend(Popcorn.p, {
     
-    setCommand: function() {
+    //  getting properties
+    roundTime: function () {
+      return -~this.video.currentTime;
+    },
     
-    }, 
-    getCommand: function() {
     
-    }, 
+    
+    
+    
+
+
+
+
     toTrack: function( setup ) {
       /*
       {