mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 03:45:32 -05:00
Merge pull request #337 from sharelatex/ja-allow-javascript-property-names
Use bare objects without prototypes for tracking filenames
This commit is contained in:
commit
2ba7db603f
1 changed files with 4 additions and 2 deletions
|
@ -197,10 +197,12 @@ define [
|
|||
|
||||
_perDocSummaryOfUpdates: (updates) ->
|
||||
# Track current_pathname -> original_pathname
|
||||
original_pathnames = {}
|
||||
# create bare object for use as Map
|
||||
# http://ryanmorr.com/true-hash-maps-in-javascript/
|
||||
original_pathnames = Object.create(null)
|
||||
|
||||
# Map of original pathname -> doc summary
|
||||
docs_summary = {}
|
||||
docs_summary = Object.create(null)
|
||||
|
||||
updatePathnameWithUpdateVersions = (pathname, update, deleted) ->
|
||||
# docs_summary is indexed by the original pathname the doc
|
||||
|
|
Loading…
Reference in a new issue