overleaf/services/web/public/coffee/ide/metadata/MetadataManager.coffee
2017-10-04 17:56:43 +01:00

13 lines
395 B
CoffeeScript

define [], () ->
class MetadataManager
constructor: (@ide, @$scope, @metadata) ->
@ide.socket.on 'broadcastDocMetadata', (data) =>
@metadata.onBroadcastDocMetadata(data)
@$scope.$on 'entity:deleted', @metadata.onEntityDeleted
@$scope.$on 'file:upload:complete', @metadata.fileUploadComplete
loadProjectMetadataFromServer: () ->
@metadata.loadProjectMetadataFromServer()