Skip to content

Commit

Permalink
[mozilla#217] removePlugin does not remove plugin from prototype
Browse files Browse the repository at this point in the history
  • Loading branch information
rwaldron committed Dec 14, 2010
1 parent 16238c3 commit 1b3b16d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions popcorn.js
Expand Up @@ -175,9 +175,9 @@

// 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);
},
Expand Down Expand Up @@ -270,7 +270,7 @@
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++ ) {
Expand Down

0 comments on commit 1b3b16d

Please sign in to comment.