Advertisement
Guest User

Untitled

a guest
Sep 19th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. define(function(require) {
  2.   var Marionette = require('marionette');
  3.  
  4.   // ... Other related stuff ...
  5.  
  6.   return Marionette.CollectionView.extend({
  7.     childView: GroupItemView,
  8.     collection: new MyCollection(),
  9.  
  10.     initialize: function() {
  11.       this.collection.fetch();
  12.  
  13.       this.on('render:collection', this.onCollectionRendered);
  14.     },
  15.  
  16.     onRender: function() {
  17.       alert('onRender');
  18.     },
  19.  
  20.     onCollectionRendered: function() {
  21.       alert('onCollectionRendered');
  22.     }
  23.  
  24.   });
  25.  
  26. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement