Skip to content

Instantly share code, notes, and snippets.

@cawa87
Last active August 29, 2015 14:04
Show Gist options
  • Save cawa87/a512c3d319cfb17470cb to your computer and use it in GitHub Desktop.
Save cawa87/a512c3d319cfb17470cb to your computer and use it in GitHub Desktop.
mopa-bootstrap collection.js fix
// Indexes must be different for every Collection
if(typeof this.options.index === 'undefined') {
this.options.index = {};
}
// var elements = $('.collection-items');
//console.log(elements.children().length);
this.options.index[this.options.collection_id] = $('.collection-items').children().length;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment