]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
use Popcorn.error() for consistancy
authorDaniel Brooks <db48x@db48x.net>
Thu, 24 Mar 2011 22:53:10 +0000 (17:53 -0500)
committerDaniel Brooks <db48x@db48x.net>
Thu, 24 Mar 2011 22:53:10 +0000 (17:53 -0500)
popcorn.js

index 6c6c9d120f82062f949f34f091075805aee01f15..bddfdcd97d7752981212df25ca40347389edae21 100644 (file)
           return Popcorn.registry[i].definition;
         }
       }
-      throw new Error("Plugin "+ name +" can't inherit from "+ p +", which doesn't exist");
+      Popcorn.error("Plugin "+ name +" can't inherit from "+ p +", which doesn't exist");
     }
 
     if ( !Array.isArray( parent ) ) {