Skip to content

Commit

Permalink
fixed as per PR comments [mozilla#474]
Browse files Browse the repository at this point in the history
  • Loading branch information
annasob committed Apr 20, 2011
1 parent 50ef906 commit 78f1535
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions popcorn.js
Original file line number Diff line number Diff line change
Expand Up @@ -845,13 +845,6 @@
// Extend Popcorn.p with new named definition
Popcorn.extend( Popcorn.p, plugin );

// Push into the registry
Popcorn.registry.push(
Popcorn.extend( plugin, {
type: name
})
);

// Push into the registry
var entry = {
fn: plugin[ name ],
Expand All @@ -860,6 +853,11 @@
parents: [],
name: name
};
Popcorn.registry.push(
Popcorn.extend( plugin, entry, {
type: name
})
);
Popcorn.registryByName[ name ] = entry;

return plugin;
Expand Down

0 comments on commit 78f1535

Please sign in to comment.