]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
style nits
authorDaniel Brooks <db48x@db48x.net>
Mon, 28 Mar 2011 09:23:56 +0000 (04:23 -0500)
committerDaniel Brooks <db48x@db48x.net>
Mon, 28 Mar 2011 09:23:56 +0000 (04:23 -0500)
popcorn.js

index ca13f59fd699bc40ae2a853e75c82e38cb1de7a4..51cda50c3b596f1053b41faf9e8d153eb21b4c42 100644 (file)
 
   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" );
         if ( parents.hasOwnProperty( i ) ) {
           var p = parents[ i ];
           getAncestors( p );
-          if (ancestorNames.indexOf( p ) === -1) {
+          if ( ancestorNames.indexOf( p ) === -1 ) {
             ancestorNames.push( p );
           }
         }
             // 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" ),