From b983e63130863688540efb229ea6a93a63f38d07 Mon Sep 17 00:00:00 2001 From: rwldrn Date: Mon, 20 Dec 2010 10:01:13 -0500 Subject: [PATCH] merge fix --- popcorn.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/popcorn.js b/popcorn.js index d5faf6d..1d646fa 100644 --- a/popcorn.js +++ b/popcorn.js @@ -26,7 +26,15 @@ 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] ) { @@ -714,6 +722,8 @@ return data; }; + + global.Popcorn = Popcorn; -- 2.43.0