Re:marionette.overrides.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to Re:bus.js from disqus.com - go back
URL https://pastebin.freepbx.org/view/ede81795/diff Embed
Viewing differences between Re:bus.js and Re:marionette.overrides.js
define('core/bus',[
    'backbone',
    'underscore',

    'core/frameBus',
define('home/overrides/marionette.overrides',[
    'backbone-marionette',
], function (
    Backbone,
    _,

    frameBus
Marionette
) {
    'use strict';

    /**
      * New function, not an override.
      * This will rerender the model portion of the template for a composite view
      * but will not rerender the collection portion.
      */
    Marionette.CompositeView.prototype.rerenderModel = function () {
        
var bus $itemViewContainer _.extend({}, Backbone.Events);
    bus.frame = frameBus;

    return bus;
this.$(this.itemViewContainer).detach();
        this.$el.html(this.renderModel());
        this.$(this.itemViewContainer).replaceWith($itemViewContainer);

        this.triggerMethod('render', this);
    };
});

// https://c.disquscdn.com/next/1618bb4/home/js/overrides/marionette.overrides.js

Replies to Re:marionette.overrides.js rss

Title Name Language When
Re:main.js disqus.com javascript 2 Months ago.

Reply to "Re:marionette.overrides.js"

Here you can reply to the paste above