Re:marionette.overrides.js

From disqus.com, 1 Month ago, written in JavaScript, viewed 3 times. This paste is a reply to Re:bus.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/ede81795 Embed
Download Paste or View Raw
  1. define('home/overrides/marionette.overrides',[
  2.     'backbone-marionette',
  3. ], function (
  4.     Marionette
  5. ) {
  6.     'use strict';
  7.  
  8.     /**
  9.       * New function, not an override.
  10.       * This will rerender the model portion of the template for a composite view
  11.       * but will not rerender the collection portion.
  12.       */
  13.     Marionette.CompositeView.prototype.rerenderModel = function () {
  14.         var $itemViewContainer = this.$(this.itemViewContainer).detach();
  15.         this.$el.html(this.renderModel());
  16.         this.$(this.itemViewContainer).replaceWith($itemViewContainer);
  17.  
  18.         this.triggerMethod('render', this);
  19.     };
  20. });
  21.  
  22. // 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 1 Month ago.

Reply to "Re:marionette.overrides.js"

Here you can reply to the paste above