<commit_before>import Marionette from 'backbone.marionette';

import template from '../templates/backButtonDecorator.jst';

import {editor} from '../base';

export const BackButtonDecoratorView = Marionette.Layout.extend({
  template,
  className: 'back_button_decorator',

  events: {
    'click a.back': 'goBack'
  },

  regions: {
    outlet: '.outlet'
  },

  onRender: function() {
    this.outlet.show(this.options.view);
  },

  goBack: function() {
    editor.navigate('/', {trigger: true});
  }
});
<commit_msg>Back button decorator changes<commit_after>import Marionette from 'backbone.marionette';

import template from '../templates/backButtonDecorator.jst';

import {editor} from '../base';

export const BackButtonDecoratorView = Marionette.Layout.extend({
  template,
  className: 'back_button_decorator',

  events: {
    'click a.back': 'goBack'
  },

  regions: {
    outlet: '.outlet'
  },

  onRender: function() {
    this.outlet.show(this.options.view);
  },

  goBack: function() {
    this.options.view.onGoBack && this.options.view.onGoBack();
    editor.navigate('/', {trigger: true});
  }
});

{'fraction_non_alphanumeric': 0.15803571428571428, 'fraction_numerical': 0.0, 'mean_word_length': 3.8951965065502185, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6438557', 'n_tokens_mistral': 381, 'n_tokens_neox': 368, 'n_words': 73}