]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
don't use for each, it's not broadly available
authorDaniel Brooks <db48x@db48x.net>
Thu, 24 Mar 2011 22:46:15 +0000 (17:46 -0500)
committerDaniel Brooks <db48x@db48x.net>
Thu, 24 Mar 2011 22:46:15 +0000 (17:46 -0500)
popcorn.js

index d58d319d3246e91155d374f1f5c8d41fa0e4dddb..60a71a3d47168ce0bb32bb5b260e056a511f00f8 100644 (file)
   {
     function getDefinition( p )
     {
-      for each ( r in Popcorn.registry ) {
-        if ( r.type === p ) {
-          return r.definition;            
+      for (i in Popcorn.registry)
+      {
+        if ( Popcorn.registry[i].type === p ) {
+          return Popcorn.registry[i].definition;
         }
       }
       throw new Error("Plugin "+ name +" can't inherit from "+ p +", which doesn't exist");