]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
Removes console logs
authorrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 00:39:28 +0000 (19:39 -0500)
committerrwldrn <waldron.rick@gmail.com>
Sun, 5 Dec 2010 00:39:28 +0000 (19:39 -0500)
popcorn.js
test/demo.js

index d630bb6921a7ecc12b084d1b52d4c1895bd9e85d..29a10d798c2b7257466749bf6782590c0fc4339c 100644 (file)
           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);
           }
           
         });
index 240b72830dc7543cc06c0bdf3fa83528d8c3b892..281b497b7b7e8f0121ef64c03851fe98e24adc7a 100644 (file)
@@ -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();
-    
-    }
-    
-    
     
-  });
+    })() 
+  );