overleaf/services/web/public/coffee/ide/metadata/MetadataManager.coffee
2017-10-12 15:33:14 +01:00

13 lines
378 B
CoffeeScript

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