Skip to content

Commit

Permalink
fixed overwriting with function decl #32
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Nov 5, 2012
1 parent a5f154f commit ccec298
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ function walkStatement(options, context, statement) {

// Declarations
case "FunctionDeclaration":
if(options.overwrites.hasOwnProperty(statement.name)) {
context.overwrite.push(statement.name);
if(options.overwrites.hasOwnProperty(statement.id.name)) {
context.overwrite.push(statement.id.name);
}
var oldInTry = context.inTry;
context.inTry = false;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "webpack",
"version": "0.7.14",
"version": "0.7.15",
"author": "Tobias Koppers @sokra",
"description": "Packs CommonJs/AMD Modules for the browser. Allows to split your codebase into multiple bundles, which can be loaded on demand. Support loading of js, json, jade, coffee, css, ... out of the box and more with custom loaders.",
"dependencies": {
Expand Down

0 comments on commit ccec298

Please sign in to comment.