Просмотр исходного кода

Avoid underscore (_) name overwriting

James Allen 9 лет назад
Родитель
Сommit
a0a4509edc
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      services/web/app/coffee/Features/Project/ProjectController.coffee

+ 2 - 2
services/web/app/coffee/Features/Project/ProjectController.coffee

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