]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#336] move var decl
authorDaniel Brooks <db48x@db48x.net>
Wed, 23 Feb 2011 21:19:09 +0000 (15:19 -0600)
committerDaniel Brooks <db48x@db48x.net>
Wed, 23 Feb 2011 21:19:09 +0000 (15:19 -0600)
popcorn.js

index 083f36b72d40d7e1e23d3c7676b64d9a60394805..8c98986a110618e8a50c094a6fa0eb5ab04afe80 100644 (file)
     //  the definition into Popcorn.p
     var reserved = [ "start", "end" ],
         plugin = {},
-        setup;
+        setup,
+        isfn = typeof definition === "function";
 
     var pluginFn = function ( setup, options ) {
 
       Popcorn.manifest[ name ] = manifest || definition.manifest;
     }
 
-    var isfn = typeof definition === "function";
     //  Assign new named definition
     plugin[ name ] = function( options ) {
       return pluginFn.call( this,