From aed6dd41b6d977110bf5b983b98577a4f83370f0 Mon Sep 17 00:00:00 2001 From: Daniel Brooks Date: Mon, 28 Mar 2011 04:23:56 -0500 Subject: [PATCH] style nits --- popcorn.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/popcorn.js b/popcorn.js index ca13f59..51cda50 100644 --- a/popcorn.js +++ b/popcorn.js @@ -820,8 +820,7 @@ Popcorn.pluginInherit = function( name, parentNames, definition, manifest ) { function getDefinition( p ) { - if ( p in Popcorn.registryHash && Popcorn.registryHash.hasOwnProperty( p ) ) - { + if ( p in Popcorn.registryHash && Popcorn.registryHash.hasOwnProperty( p ) ) { return Popcorn.registryHash[ p ]; } Popcorn.error( "Plugin "+ name +" can't inherit from "+ p +", which doesn't exist" ); @@ -837,7 +836,7 @@ if ( parents.hasOwnProperty( i ) ) { var p = parents[ i ]; getAncestors( p ); - if (ancestorNames.indexOf( p ) === -1) { + if ( ancestorNames.indexOf( p ) === -1 ) { ancestorNames.push( p ); } } @@ -858,15 +857,15 @@ // The new plugin simply calls the delegated methods on // all of its parents in the order they were specified. p[ name ] && p[ name ].apply( self, arguments ); - }); + } ); }; } // When the newly-defined plugin is instantiated, it must // explicitly instantiate all of its ancestors. - var plugins = ancestorNames.map(function( name ) { + var plugins = ancestorNames.map( function( name ) { return instantiate( getDefinition( name ).base_definition ); - }); + } ); return { _setup: delegate( "_setup" ), start: delegate( "start" ), -- 2.43.0