Skip to content

Instantly share code, notes, and snippets.

@mrico
Created January 18, 2014 18:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrico/8494528 to your computer and use it in GitHub Desktop.
Save mrico/8494528 to your computer and use it in GitHub Desktop.
define([
'CollectionExtend',
'underscore',
'backbone',
'models/UserModel'
], function (Collection, _, Backbone, UserModel) {
'use strict';
Collection.namespace = 'users';
Collection.code = Backbone.Collection.extend({
model: UserModel().code,
url: 'http://localhost/source/api/rest/index.php/user-info',
initialize: function () {
this.Collection.fetch();
_.debug.log('los gehts!');
}
});
return Collection;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment