MetadataManager.js 959 B

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