From f81b4d1111559cf6496b755eaad8a3d631de5c1e Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Thu, 24 Mar 2011 17:57:20 -0500 Subject: [PATCH] apply function isn't really needed now that there's only once call site --- popcorn.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/popcorn.js b/popcorn.js index bddfdcd..1735945 100644 --- a/popcorn.js +++ b/popcorn.js @@ -832,12 +832,13 @@ return Popcorn.plugin( name, function( options ) { var self = this; - function instantiate( p, options ) { return (typeof p === "function") ? p.call( self, options ) : p; } - function apply( fn, args ) { return fn && fn.apply( self, args ); } + function instantiate( p, options ) { + return (typeof p === "function") ? p.call( self, options ) : p; + } function delegate( name ) { return function() { plugins.forEach( function( p ) { - apply( p[name], arguments ); + p[name] && p[name].apply( self, arguments ); }); }; } -- 2.43.0