JAVASCRIPT   84

collection.js

Guest on 9th September 2021 04:27:39 PM

  1. var RevisionModel = require( './model' );
  2.  
  3. module.exports = Backbone.Collection.extend( {
  4.         model: RevisionModel,
  5.         comparator: function( model ) {
  6.                 return -model.get( 'timestamp' );
  7.         },
  8. } );

Raw Paste


Login or Register to edit or fork this paste. It's free.