diff options
Diffstat (limited to 'lib/docx/relationships-reader.js')
| -rw-r--r-- | lib/docx/relationships-reader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/docx/relationships-reader.js b/lib/docx/relationships-reader.js index 5f54f42..a3df9a9 100644 --- a/lib/docx/relationships-reader.js +++ b/lib/docx/relationships-reader.js @@ -19,12 +19,12 @@ function readRelationships(element) { } function Relationships(relationships) { - var targetsByRelationshipId = {}; + var targetsByRelationshipId = Object.create(null); relationships.forEach(function(relationship) { targetsByRelationshipId[relationship.relationshipId] = relationship.target; }); - var targetsByType = {}; + var targetsByType = Object.create(null); relationships.forEach(function(relationship) { if (!targetsByType[relationship.type]) { targetsByType[relationship.type] = []; |
