]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
merge fix
authorrwldrn <waldron.rick@gmail.com>
Mon, 20 Dec 2010 15:01:13 +0000 (10:01 -0500)
committerrwldrn <waldron.rick@gmail.com>
Mon, 20 Dec 2010 15:01:13 +0000 (10:01 -0500)
popcorn.js

index d5faf6dcb82a9172f22169fc6b93c806e62848a1..1d646fa8a886b65509b48f97cd8f89c8a40a2d59 100644 (file)
     init: function( entity ) {
 
       var elem, matches;
-
+      
+      
+      if ( typeof entity === "function" ) {
+        
+        document.addEventListener( "DOMContentLoaded", entity, false);
+        
+        return;  
+      }
+      
       matches = rIdExp.exec( entity );
       
       if ( matches.length && matches[2]  ) {
     return data;  
   };
   
+  
+  
 
   global.Popcorn = Popcorn;