mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-11 23:52:19 -05:00
14 lines
378 B
CoffeeScript
14 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()
|