Skip to content

Commit

Permalink
Support directories named like prototype methods (#409)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrcljx authored and blakeembrey committed Feb 8, 2017
1 parent 804dc54 commit e073d95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/converter/plugins/SourcePlugin.ts
Expand Up @@ -163,7 +163,7 @@ export class SourcePlugin extends ConverterComponent
var path = Path.dirname(file.fileName);
if (path != '.') {
path.split('/').forEach((path) => {
if (!directory.directories[path]) {
if (!Object.prototype.hasOwnProperty.call(directory, path)) {
directory.directories[path] = new SourceDirectory(path, directory);
}
directory = directory.directories[path];
Expand Down

0 comments on commit e073d95

Please sign in to comment.