Avoid underscore (_) name overwriting

This commit is contained in:
James Allen 2017-02-14 15:26:36 +01:00
parent 03ceb23fcf
commit a0a4509edc

View file

@ -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