From: Daniel Brooks Date: Wed, 23 Mar 2011 21:06:37 +0000 (-0500) Subject: Array.isArray is supported everywhere. how refreshing :) X-Git-Tag: v0.5~53 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=667182b18960a0b33dec9adf4ad171878ae03f0f;p=popcorn-js.git Array.isArray is supported everywhere. how refreshing :) --- diff --git a/popcorn.js b/popcorn.js index 88cf207..0969ddd 100644 --- a/popcorn.js +++ b/popcorn.js @@ -816,7 +816,6 @@ Popcorn.pluginInherit = function(name, parent, definition, manifest) { - var isArray = Array.isArray || function(o) { return Object.prototype.toString.call(o) === '[object Array]'; }; function getDefinition(name) { for each (r in Popcorn.registry) @@ -825,7 +824,7 @@ throw "you idiot"; } - if (!isArray(parent)) + if (!Array.isArray(parent)) parent = [parent]; var parents = parent.map(getDefinition);