PageRenderTime 47ms CodeModel.GetById 23ms RepoModel.GetById 0ms app.codeStats 0ms

/app/assets/javascripts/collections/user_collection.js

https://bitbucket.org/sqctest01/fulcrum
JavaScript | 13 lines | 11 code | 2 blank | 0 comment | 2 complexity | f5032baf5504533fc07d99501c111392 MD5 | raw file
  1. if (typeof Fulcrum == 'undefined') {
  2. Fulcrum = {};
  3. }
  4. Fulcrum.UserCollection = Backbone.Collection.extend({
  5. model: Fulcrum.User,
  6. forSelect: function() {
  7. return this.map(function(user) {
  8. return [user.get('name'),user.id];
  9. });
  10. }
  11. });