overleaf/services/web/public/coffee/ide/metadata/MetadataManager.coffee

14 lines
378 B
CoffeeScript
Raw Normal View History

2017-10-12 10:33:14 -04:00
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()