MetadataManager.js 815 B

12345678910111213141516171819202122232425262728
  1. /* eslint-disable
  2. max-len,
  3. no-unused-vars,
  4. */
  5. // TODO: This file was created by bulk-decaffeinate.
  6. // Fix any style issues and re-enable lint.
  7. /*
  8. * decaffeinate suggestions:
  9. * DS102: Remove unnecessary code created because of implicit returns
  10. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  11. */
  12. let MetadataManager
  13. export default MetadataManager = class MetadataManager {
  14. constructor(ide, $scope, metadata) {
  15. this.ide = ide
  16. this.$scope = $scope
  17. this.metadata = metadata
  18. this.ide.socket.on('broadcastDocMeta', data => {
  19. return this.metadata.onBroadcastDocMeta(data)
  20. })
  21. this.$scope.$on('entity:deleted', this.metadata.onEntityDeleted)
  22. }
  23. loadProjectMetaFromServer() {
  24. return this.metadata.loadProjectMetaFromServer()
  25. }
  26. }