From: Daniel Brooks Date: Thu, 24 Mar 2011 22:50:19 +0000 (-0500) Subject: oops, it's very bad form to mess with global variables, especially ones called 'i' X-Git-Tag: v0.5~49 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=95a04c80a5463e5256ea36dad2297da47eb03ff6;p=popcorn-js.git oops, it's very bad form to mess with global variables, especially ones called 'i' --- diff --git a/popcorn.js b/popcorn.js index 5a3e8cf..6c6c9d1 100644 --- a/popcorn.js +++ b/popcorn.js @@ -816,7 +816,7 @@ Popcorn.pluginInherit = function( name, parent, definition, manifest ) { function getDefinition( p ) { - for (i in Popcorn.registry) + for (var i in Popcorn.registry) { if ( Popcorn.registry[i].type === p ) { return Popcorn.registry[i].definition;