HistoryV2FileTreeController.js 605 B

123456789101112131415161718
  1. /* eslint-disable
  2. max-len,
  3. no-return-assign,
  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. * DS207: Consider shorter variations of null checks
  11. * Full docs: https://github.com/decaffeinate/decaffeinate/blob/master/docs/suggestions.md
  12. */
  13. define(['../../../base'], App =>
  14. App.controller('HistoryV2FileTreeController', function($scope, ide) {
  15. $scope.handleFileSelection = file => {
  16. ide.historyManager.selectFile(file)
  17. }
  18. }))