mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Avoid underscore (_) name overwriting
This commit is contained in:
parent
03ceb23fcf
commit
a0a4509edc
1 changed files with 2 additions and 2 deletions
|
@ -10,7 +10,7 @@ TagsHandler = require("../Tags/TagsHandler")
|
|||
SubscriptionLocator = require("../Subscription/SubscriptionLocator")
|
||||
NotificationsHandler = require("../Notifications/NotificationsHandler")
|
||||
LimitationsManager = require("../Subscription/LimitationsManager")
|
||||
_ = require("underscore")
|
||||
underscore = require("underscore")
|
||||
Settings = require("settings-sharelatex")
|
||||
AuthorizationManager = require("../Authorization/AuthorizationManager")
|
||||
fs = require "fs"
|
||||
|
@ -221,7 +221,7 @@ module.exports = ProjectController =
|
|||
ProjectUpdateHandler.markAsOpened project_id, ->
|
||||
cb()
|
||||
showTrackChangesOnboarding: (cb) ->
|
||||
cb = _.once(cb)
|
||||
cb = underscore.once(cb)
|
||||
if !user_id?
|
||||
return cb()
|
||||
timeout = setTimeout cb, 500
|
||||
|
|
Loading…
Reference in a new issue