Re: SettingsSocialAccountCollection.js.js

From disqus.com, 2 Months ago, written in JavaScript, viewed 3 times. This paste is a reply to Re: Re: Session.js from disqus.com - view diff
URL https://pastebin.freepbx.org/view/5f8a66b6 Embed
Download Paste or View Raw
  1. define('home/collections/SettingsSocialAccountCollection',[
  2.     'backbone',
  3.     'underscore',
  4.  
  5.     'home/models/SettingsSocialAccount',
  6. ], function (
  7.     Backbone,
  8.     _,
  9.  
  10.     SettingsSocialAccount
  11. ) {
  12.     'use strict';
  13.  
  14.     var SettingsSocialAccountCollection = Backbone.Collection.extend({
  15.         model: SettingsSocialAccount,
  16.  
  17.         toJSON: function () {
  18.             return _.reduce(this.models, function (data, model) {
  19.                 data[model.id] = model.toJSON();
  20.                 return data;
  21.             }, {});
  22.         },
  23.     });
  24.  
  25.     return SettingsSocialAccountCollection;
  26. });
  27.  
  28.  
  29.  
  30.  
  31.  
  32. // https://c.disquscdn.com/next/home/js/collections/SettingsSocialAccountCollection.js

Replies to Re: SettingsSocialAccountCollection.js.js rss

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

Reply to "Re: SettingsSocialAccountCollection.js.js"

Here you can reply to the paste above