From: Daniel Brooks Date: Thu, 24 Mar 2011 22:46:15 +0000 (-0500) Subject: don't use for each, it's not broadly available X-Git-Tag: v0.5~51 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=49c5016b461f621ddc0553a20133b5799077c078;p=popcorn-js.git don't use for each, it's not broadly available --- diff --git a/popcorn.js b/popcorn.js index d58d319..60a71a3 100644 --- a/popcorn.js +++ b/popcorn.js @@ -818,9 +818,10 @@ { 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");