mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-30 15:45:03 -05:00
1e7ab75cbc
GitOrigin-RevId: 64bbca60db983df6dba48c3c8b849cb1ec3e0243
28 lines
815 B
JavaScript
28 lines
815 B
JavaScript
/* eslint-disable
|
|
max-len,
|
|
no-unused-vars,
|
|
*/
|
|
// TODO: This file was created by bulk-decaffeinate.
|
|
// Fix any style issues and re-enable lint.
|
|
/*
|
|
* decaffeinate suggestions:
|
|
* DS102: Remove unnecessary code created because of implicit returns
|
|
* Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
|
|
*/
|
|
let MetadataManager
|
|
|
|
export default MetadataManager = class MetadataManager {
|
|
constructor(ide, $scope, metadata) {
|
|
this.ide = ide
|
|
this.$scope = $scope
|
|
this.metadata = metadata
|
|
this.ide.socket.on('broadcastDocMeta', data => {
|
|
return this.metadata.onBroadcastDocMeta(data)
|
|
})
|
|
this.$scope.$on('entity:deleted', this.metadata.onEntityDeleted)
|
|
}
|
|
|
|
loadProjectMetaFromServer() {
|
|
return this.metadata.loadProjectMetaFromServer()
|
|
}
|
|
}
|