From 667182b18960a0b33dec9adf4ad171878ae03f0f Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Wed, 23 Mar 2011 16:06:37 -0500 Subject: [PATCH] Array.isArray is supported everywhere. how refreshing :) --- popcorn.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); -- 2.43.0