<commit_before>/* global define */

define([
  'backbone',
  'marionette',
  'models/settings-model',
  'buses/event-bus',
  // Shims
  'behaviors/navigation-behavior',
  'templates/content/type-post-template',
  'templates/content/type-page-template',
  'templates/entry-meta-template'
], function (Backbone, Marionette, Settings, EventBus) {
  'use strict';

  var SinglePostView = Backbone.Marionette.LayoutView.extend({
    tagName: 'div id="post"',
    regions: {
      pagination: '#pagination',
      comments:   '#comments-section'
    },

    ui: {
      postLink:       '.title > a',
      categoryLink:   '.category > a',
      tagLink:        '.tag > a',
      authorLink:     '.author > a, #author > a',
      taxonomyLink:   '.taxonomy > a',
      navigationLink: '.post-content > a'
    },

    behaviors: {
      Navigation: {}
    },

    modelEvents: {
      'change': 'renderContent'
    },

    initialize: function () {
      EventBus.trigger('title:change', this.model.get('title'));

      /**
       * FIXME: Menu may not yet be available at this point.
       */
      EventBus.trigger('change:menu:item:state', {
        object: this.model.get('ID'),
        objectParent: this.model.get('parent'),
        objectType: this.model.get('type')<commit_msg>Add transitions to single post view<commit_after>/* global define */

define([
  'backbone',
  'marionette',
  'models/settings-model',
  'buses/event-bus',
  // Shims
  'behaviors/transition-in-behavior',
  'behaviors/transitioned-navigation-behavior',
  'templates/content/type-post-template',
  'templates/content/type-page-template',
  'templates/entry-meta-template'
], function (Backbone, Marionette, Settings, EventBus) {
  'use strict';

  var SinglePostView = Backbone.Marionette.LayoutView.extend({
    tagName: 'div id="post"',
    regions: {
      pagination: '#pagination',
      comments:   '#comments-section'
    },

    ui: {
      postLink:       '.title > a',
      categoryLink:   '.category > a',
      tagLink:        '.tag > a',
      authorLink:     '.author > a, #author > a',
      taxonomyLink:   '.taxonomy > a',
      navigationLink: '.post-content > a'
    },

    behaviors: {
      TransitionedNavigation: {},
      TransitionIn: {}
    },

    modelEvents: {
      'change': 'renderContent'
    },

    initialize: function () {
      EventBus.trigger('title:change', this.model.get('title'));

      /**
       * FIXME: Menu may not yet be available at this point.
       */
      EventBus.trigger('change:menu:item:state', {
        object: this.model.get('ID'),
        objectParent: this.model.get('parent'),
        objectType: this.model.get('type')
{'fraction_non_alphanumeric': 0.15860517435320584, 'fraction_numerical': 0.0, 'mean_word_length': 2.6299319727891155, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, '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': '5804921', 'n_tokens_mistral': 840, 'n_tokens_neox': 835, 'n_words': 162}