]> khamidou — GitHub mirrors - popcorn-js.git/commitdiff
[#217] removePlugin does not remove plugin from prototype
authorrwldrn <waldron.rick@gmail.com>
Tue, 14 Dec 2010 18:03:25 +0000 (13:03 -0500)
committerrwldrn <waldron.rick@gmail.com>
Tue, 14 Dec 2010 18:03:25 +0000 (13:03 -0500)
popcorn.js

index 11adf01a38bd0bb1a74b184df1f412ec8eee15a6..372d5123cf14d854b3a841a5c08c38aba3e1f5b2 100644 (file)
 
   // A Few reusable utils, memoized onto Popcorn
   Popcorn.extend( Popcorn, {
-       error: function( msg ) {
-               throw msg;
-       },
+    error: function( msg ) {
+      throw msg;
+    },
     guid: function() {
       return +new Date() + Math.floor(Math.random()*11);
     }, 
       var byStart = this.data.trackEvents.byStart, 
           byEnd = this.data.trackEvents.byEnd;        
   
-      this[name] = undef;
+      delete Popcorn.p[ name ];
   
       // remove plugin reference from registry
       for ( var i = 0, rl = Popcorn.registry.length; i < rl; i++ ) {