]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
oops, it's very bad form to mess with global variables, especially ones called 'i'
authorDaniel Brooks <db48x@db48x.net>
Thu, 24 Mar 2011 22:50:19 +0000 (17:50 -0500)
committerDaniel Brooks <db48x@db48x.net>
Thu, 24 Mar 2011 22:50:19 +0000 (17:50 -0500)
popcorn.js

index 5a3e8cff35ee673b8a24e03c97c48eef8b0c30f2..6c6c9d120f82062f949f34f091075805aee01f15 100644 (file)
 
   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;