Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var Collection = require('ampersand-rest-collection');
- var AmpersandModel = require('ampersand-model');
- var Gallery = Collection.extend({
- model: function(attr) {
- return new Gallery();
- },
- isModel: function(model) {
- return model instanceof Gallery;
- }
- });
- var GalleryItem = AmpersandModel.extend({
- props: {
- name: 'string',
- picture: 'any'
- },
- collections: {
- gallery: Gallery
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement