100+ results for 'Backbone.Collection.extend'

Not the results you expected?

base.js (https://github.com/cbmi/cilantro.git) JavaScript · 250 lines

147 });

148

149 var Collection = Backbone.Collection.extend({

150 model: Model,

151

itemView.spec.js (https://bitbucket.org/stevepict/backbone.marionette.git) JavaScript · 357 lines

2 var Model = Backbone.Model.extend();

3

4 var Collection = Backbone.Collection.extend({

5 model: Model

6 });

course-lesson.js (https://gitlab.com/gregtyka/lfmawordpress) JavaScript · 202 lines

122 }

123 });

124 $.LP_Course_Item.Collection = Backbone.Collection.extend({

125 model : $.LP_Course_Item.Model,

126 current : 0,

Tunes.js (https://bitbucket.org/edwardstlouis/backbonepeep1.git) JavaScript · 347 lines

19 });

20

21 window.Albums = Backbone.Collection.extend({

22 model: Album,

23 url: "/albums"

users.js (https://github.com/pandaproject/panda.git) JavaScript · 216 lines

207 });

208

209 PANDA.collections.Users = Backbone.Collection.extend({

210 /*

211 A collection of django.contrib.auth.models.User equivalents.

VideoView.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 169 lines

34 }

35 });

36 LiferayVideoGallery = Backbone.Collection.extend({

37 model: LiferayVideoModel,

38 parse: function (response) {

models.js (https://bitbucket.org/aktivecortex/aktivecortex.git) JavaScript · 196 lines

12 });

13

14 window.CustomerCollection = Backbone.Collection.extend({

15 model: Customer,

16 url: "bank/customers"

88 });

89

90 window.AccountCollection = Backbone.Collection.extend({

91 model: Account

92 });

167 });

168

169 window.MovementCollection = Backbone.Collection.extend({

170 model: Movement

171 });

chiropractor-spec.js (https://github.com/pjmurray/chiropractor.git) JavaScript · 324 lines

247 errorCallback = jasmine.createSpy('500 error');

248 chiropractor.each(500, [500], {500: errorCallback});

249 var Collection = Backbone.Collection.extend({

250 url: function () {

251 return "test"

sync.js (https://github.com/neekey/FreeNote.git) JavaScript · 323 lines

49 }),

50

51 CLchange = Backbone.Collection.extend({

52

53 model: Mchange,

edit.js (https://github.com/tmacdonald/menutron-original.git) JavaScript · 343 lines

31 });

32

33 var RecipeDirections = Backbone.Collection.extend({

34 model: RecipeDirection,

35

53 });

54

55 var RecipeIngredients = Backbone.Collection.extend({

56 model: RecipeIngredient,

57

comment.js (https://github.com/hiphapis/tide_web.git) JavaScript · 231 lines

20

21

22 window.CommentList = Backbone.Collection.extend({

23

24 model: Comment,

47

48

49 window.AgreementList = Backbone.Collection.extend({

50

51 model: Agreement,

todos.js (https://github.com/baali/localtodos.git) JavaScript · 203 lines

17

18 // Todo List

19 window.TodoList = Backbone.Collection.extend({

20

21 model: Todo,

configs.js (https://gitlab.com/dannywillems/laverna) JavaScript · 153 lines

9 'use strict';

10

11 var Configs = Backbone.Collection.extend({

12

13 localStorage: new Backbone.LocalStorage('vimarkable.configs'),

test.js (https://github.com/andynelson/backbone-couchdb.git) JavaScript · 302 lines

120 __testing : function(){}

121 });

122 var CommentList = Backbone.Collection.extend({

123 db : {

124 changes : false

140

141 asyncTest("read collection with custom view" , function(){

142 var CommentList = Backbone.Collection.extend({

143 db : {

144 view : "testView",

161

162 asyncTest("read collection with custom view and custom keys" , function(){

163 var CommentList = Backbone.Collection.extend({

164 db : {

165 view : "testView",

models.js (https://github.com/praekelt/vumi-go.git) JavaScript · 186 lines

29 });

30

31 var RoutingStateCollection = Backbone.Collection.extend({

32 type: null,

33

index.php (https://bitbucket.org/od3n/backbone-app-1.git) PHP · 243 lines

96 //Backbone Person Collection

97

98 Persons = Backbone.Collection.extend({

99 url: 'api.php/person'

100 });

todos.js (https://github.com/dtuite/backbone-presentation-part-2.git) JavaScript · 154 lines

33 // The collection of todos is backed by *localStorage* instead of a remote

34 // server.

35 window.TodoList = Backbone.Collection.extend({

36

37 // Reference to this collection's model.

popup-photo.js (https://github.com/CoJMC/jaam.git) JavaScript · 174 lines

17 app.models.PhotoGallery = Backbone.Model.extend({});

18

19 app.collections.Projects = Backbone.Collection.extend({

20 model: app.models.Project,

21 url: '/api/v1/project',

25 });

26

27 app.collections.PhotoGallerys = Backbone.Collection.extend({

28 model: app.models.PhotoGallery,

29 url: '/api/v1/photogallery',

33 });

34

35 app.collections.ProjectList = Backbone.Collection.extend({ model: app.models.Project })

36

37 app.models.Photo = Backbone.Model.extend({

test.js (https://github.com/raybaxter/Backbone.localStorage.git) JavaScript · 183 lines

7

8 $(document).ready(function() {

9 var Library = Backbone.Collection.extend({

10 localStorage: new Backbone.LocalStorage("libraryStore")

11

107 idAttribute: '_id'

108 });

109 var Collection = Backbone.Collection.extend({

110 model: Model,

111 localStorage: new Store('strangeID')

composer-models.js (https://gitlab.com/mattswann/launch-housing) JavaScript · 252 lines

101 * @type {*}

102 */

103 var Shortcodes = vc.shortcodes_collection = Backbone.Collection.extend( {

104 model: vc.shortcode,

105 last_index: 0,

datasets.js (https://github.com/pandaproject/panda.git) JavaScript · 547 lines

332 });

333

334 PANDA.collections.Datasets = Backbone.Collection.extend({

335 /*

336 * A collection of PANDA.models.Dataset equivalents.

collections.js (https://github.com/fathead-1/MacGruber.git) JavaScript · 124 lines

1 App.Collection = {};

2

3 App.Collection.Listings = Backbone.Collection.extend({

4 model: App.Model.Listing,

5 url: function() {

33 });

34

35 App.Collection.UserSearches = Backbone.Collection.extend({

36 model: App.Model.Search

37 });

38

39 App.Collection.UserListingsViewed = Backbone.Collection.extend({

40 model: App.Model.ListingViewed

41 });

composite-view.spec.js (https://gitlab.com/CodeYellowBV/backbone.marionette) JavaScript · 839 lines

23 // Collections

24

25 this.Collection = Backbone.Collection.extend({

26 model: this.Model

27 });

28

29 this.UserCollection = Backbone.Collection.extend({

30 model: this.User

31 });

32

33 this.NodeCollection = Backbone.Collection.extend({

34 model: this.Node

35 });

gallery.js (https://github.com/ganeshkumar/backbone-rails-gallery.git) JavaScript · 229 lines

19 * @type Backbone.Collection

20 */

21 var PhotoCollection = Backbone.Collection.extend({

22 model: Photo,

23 comparator: function(item) {

test.html (https://github.com/podviaznikov/indexeddb-backbonejs-adapter.git) HTML · 658 lines

41 });

42

43 var Theater = Backbone.Collection.extend({

44 database: database,

45 storeName: "movies",

notes.js (https://gitlab.com/dannywillems/laverna) JavaScript · 143 lines

9 'use strict';

10

11 var Notes = Backbone.Collection.extend({

12 model: Note,

13

TweetEntry.js (https://github.com/sigmonky/LivingRoom.git) JavaScript · 122 lines

12 });

13

14 // TweetCollection = Backbone.Collection.extend({

15 // model: TweetEntry,

16 // value: null,

22

23

24 TweetCollection = Backbone.Collection.extend({

25 model: TweetEntry,

26 value: null,

99 /* */

100

101 // models.TweetCollection = Backbone.Collection.extend({

102 // model: models.TweetEntry

103 // });

entities.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 488 lines

213

214 Entities.AnswerModel = Backbone.Model.extend({});

215 Entities.AnswerModelCollection = Backbone.Collection.extend({

216 model: Entities.AnswerModel

217 });

414 };

415

416 Entities.TreeNodes = Backbone.Collection.extend({

417 model: Entities.TreeNode,

418 comparator: function (a, b) {

entities.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 228 lines

185 });

186

187 Entities.PackageCollection = Backbone.Collection.extend({

188 model: Entities.Package,

189 parse: function(response){

201 }).extend(packageCollectionService);

202

203 Entities.NewPackageCollection = Backbone.Collection.extend({

204 model: Entities.Package,

205 initialize: function(){

contacts.js (https://github.com/samflores/MVC.js.git) JavaScript · 157 lines

24 });

25

26 window.ContactsList = Backbone.Collection.extend({

27 model: Contact,

28 localStorage: new Store("contacts")

palette.js (https://gitlab.com/webkod3r/tripolis) JavaScript · 116 lines

47

48 // Palette Elements collection, it will have all categories elements, it act as an array for all cateogies elements

49 Palette.Elements = Backbone.Collection.extend({

50 model: Palette.Element,

51 url : ajaxurl,

arangoQueries.js (https://github.com/triAGENS/ArangoDB.git) JavaScript · 204 lines

5 'use strict';

6

7 window.ArangoQueries = Backbone.Collection.extend({

8

9 getQueryPath: function () {

scripts.js (https://gitlab.com/adiclepcea/testbb) JavaScript · 154 lines

10 });

11

12 app.Blogs = Backbone.Collection.extend({

13 url:"http://localhost:3000/api/blogs"

14 });

localStorage_spec.js (https://bitbucket.org/albertoprb/fleetster-challenge.git) JavaScript · 338 lines

15 });

16

17 var Collection = Backbone.Collection.extend({

18 model: Model,

19 localStorage: new Backbone.LocalStorage("collectionStore")

160 });

161

162 var Collection2 = Backbone.Collection.extend({

163 model: Model2,

164 localStorage: new Backbone.LocalStorage("collection2Store")

290

291 describe("on a Collection", function(){

292 var Collection = Backbone.Collection.extend()

293 , collection = new Collection();

294

code_buddy.js (https://github.com/houhoulis/code_buddy.git) JavaScript · 262 lines

9 });

10

11 CodeBuddy.backbone.Addresses = Backbone.Collection.extend({

12 model:CodeBuddy.backbone.Address,

13

app.js (https://github.com/carljmosca/backbone-couchdb.git) JavaScript · 164 lines

31

32 // Now let's define a new Collection of Comments

33 var CommentList = Backbone.Collection.extend({

34 // The couchdb-connector is capable of mapping the url scheme

35 // proposed by the authors of Backbone to documents in your database,

comment-widget-live.backbone.js (https://gitlab.com/rockschtar/ultra-recent-comments-and-posts) JavaScript · 169 lines

6 });

7

8 var CommentCollection = Backbone.Collection.extend({

9 model: CommentModel,

10 url: brc_comments_widgets.ajaxurl + "?action=brc_get_widget_comments&max_comment_id=0&instance_id=" + base.widget_id + "&nonce=" + brc_comments_widgets.ajaxnonce,

61 });

62

63 var CommentCollection = Backbone.Collection.extend({

64 model: CommentModel,

65 url: brc_comments_widgets.ajaxurl + "?action=brc_get_widget_comments&max_comment_id=0&instance_id=" + that.widget_id + "&nonce=" + brc_comments_widgets.ajaxnonce,

collectionView.spec.js (https://bitbucket.org/stevepict/backbone.marionette.git) JavaScript · 644 lines

2 var Model = Backbone.Model.extend({});

3

4 var Collection = Backbone.Collection.extend({

5 model: Model

6 });

TweetController.js (https://bitbucket.org/juanpicado/hacker-news-reader.git) JavaScript · 139 lines

74 });

75

76 var TreeCommentCollection = Backbone.Collection.extend({

77 model: TreeComment

78 });

nestedValidation.js (https://github.com/thedersen/backbone.validation.git) JavaScript · 479 lines

452 });

453

454 var Collection = Backbone.Collection.extend({

455 model: Model

456 });

models.js (https://bitbucket.org/alistril/kamcatka.git) JavaScript · 370 lines

61 });

62

63 models.CoordinateDescriptionCollection = Backbone.Collection.extend({

64 model: models.CoordinateDescription,

65 initialize: function(){

175 });

176

177 models.CoordinateCollection = Backbone.Collection.extend({

178 model: models.Coordinate,

179

242 });

243

244 models.DisplacementCollection = Backbone.Collection.extend({

245 model: models.Displacement,

246

stream.js (https://github.com/marconi/devstream.git) JavaScript · 211 lines

9 });

10

11 window.StreamItemList = Backbone.Collection.extend({

12 model: StreamItem,

13 url: '/stream/',

models.js (https://github.com/jeffh/YACS.git) JavaScript · 179 lines

52 });

53

54 var CollectionBase = Backbone.Collection.extend({

55 semesterID: null,

56 getSemesterQueryString: function(){

activities.js (https://github.com/ushahidi/SwiftRiver.git) JavaScript · 234 lines

69 });

70

71 var ActivityList = Activities.ActivityList = Backbone.Collection.extend({

72 model: Activity

73 });

application.js (https://github.com/admanb/tournaments.git) JavaScript · 290 lines

14 });

15

16 Tournaments = Backbone.Collection.extend({

17

18 url: '/tournaments.json',

31 });

32

33 Players = Backbone.Collection.extend({

34

35 url: '/players.json',

48 });

49

50 Participants = Backbone.Collection.extend({

51

52 url: '/participants.json',

sync.js (https://gitlab.com/pravi/lodash) JavaScript · 239 lines

1 (function(QUnit) {

2

3 var Library = Backbone.Collection.extend({

4 url: function() { return '/library'; }

5 });

app.js (https://github.com/jzarka/sgbusmap.git) JavaScript · 152 lines

17 });

18

19 var BusStopModelManager = backbone.Collection.extend({

20 model: BusStopModel

21 });

CertificateModel.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 241 lines

157 });

158

159 var CertificateCollection = Backbone.Collection.extend({

160 model: CertificateModel,

161 parse: function (response) {

194 }});

195

196 var MyCertificateCollection = Backbone.Collection.extend({

197 model: CertificateModel,

198 parse: function (response) {

233 });

234

235 var AvailableCertificateCollection = Backbone.Collection.extend({

236 model: CertificateModel,

237 parse: function (response) {

preferred.js (https://github.com/lefthandedgoat/Oak.git) JavaScript · 194 lines

72 });

73

74 libraries = Backbone.Collection.extend({

75 model: library,

76 url: function() {

customize-models.js (https://gitlab.com/websumon/tosnib) JavaScript · 247 lines

129 * @augments Backbone.Collection

130 */

131 api.HeaderTool.ChoiceList = Backbone.Collection.extend({

132 model: api.HeaderTool.ImageModel,

133

times.js (https://github.com/le0pard/RWProductManager-iOS.git) JavaScript · 172 lines

16 });

17

18 RWManagerTimes.TimeList = Backbone.Collection.extend({

19

20 // Reference to this collection's model.

composer-models.js (https://gitlab.com/juanito.abelo/nlmobile) JavaScript · 197 lines

93 * @type {*}

94 */

95 var Shortcodes = vc.shortcodes_collection = Backbone.Collection.extend({

96 model:vc.shortcode,

97 last_index: 0,

models.js (https://github.com/KeyteqLabs/keymedia-extension.git) JavaScript · 238 lines

150 });

151

152 var MediaCollection = Backbone.Collection.extend({

153 model : Media,

154

backbone-super.js (https://gitlab.com/Blueprint-Marketing/cdnjs) JavaScript · 107 lines

24

25 }(this, function factory(_, Backbone) {

26 Backbone.Model.extend = Backbone.Collection.extend = Backbone.Router.extend = Backbone.View.extend = function(protoProps, classProps) {

27 var child = inherits(this, protoProps, classProps);

28 child.extend = this.extend;

requested.js (https://github.com/lefthandedgoat/Oak.git) JavaScript · 170 lines

54 });

55

56 requestedGames = Backbone.Collection.extend({

57 model: requestedGame,

58 url: function() {

board.js (https://github.com/versionone/boardello.git) JavaScript · 332 lines

202 });

203

204 var Boards = Backbone.Collection.extend({

205 model: Board

206 });

list_spec.js (https://gitlab.com/unofficial-mirrors/edx-platform) JavaScript · 90 lines

17 }

18 }),

19 Collection = Backbone.Collection.extend({

20 model: Model

21 }),

app.js (https://bitbucket.org/halbhalb/cctv-webapp.git) JavaScript · 148 lines

14 });

15

16 App.Collections.Spots = Backbone.Collection.extend({

17 model: App.Models.Spot,

18 page: 0,

GameModel.js (https://github.com/cormac/jasmine-tutorial.git) JavaScript · 82 lines

70 });

71

72 myModelCollection = Backbone.Collection.extend( {

73 model : Game.GameModel,

74 });

weather.js (https://bitbucket.org/pragmaticlogic/farmas-sandbox.git) JavaScript · 256 lines

210 });

211

212 var CityCollection = Backbone.Collection.extend({

213 model: City

214 });

sync.js (https://gitlab.com/yawenzou/backbone) JavaScript · 239 lines

1 (function() {

2

3 var Library = Backbone.Collection.extend({

4 url : function() { return '/library'; }

5 });

menu.js (https://github.com/phpugl/Dime.git) JavaScript · 198 lines

17 }));

18

19 App.provide('Collection.Menu', Backbone.Collection.extend({

20 model: App.Model.Menu,

21 currentActive:undefined,

arangoDocument.js (https://github.com/triAGENS/ArangoDB.git) JavaScript · 232 lines

3 /* global Backbone, window, arangoDocumentModel, $, arangoHelper */

4

5 window.ArangoDocument = Backbone.Collection.extend({

6 url: '/_api/document/',

7 model: arangoDocumentModel,

tests.js (https://github.com/JeromeParadis/server-backbone-redis.git) JavaScript · 276 lines

24 expiration: 1 // 1 second expiration

25 });

26 this.models.TestChatMessageCollection = Backbone.Collection.extend({

27 model: this.models.TestChatMessage

28 });

paginator.js (https://github.com/cbmi/cilantro.git) JavaScript · 198 lines

184

185 // Paginator collection for managing its pages

186 var Paginator = Backbone.Collection.extend({

187 model: Page

188 });

jquery.Midgard.midgardWorkflows.js (https://github.com/szabyg/create.git) JavaScript · 242 lines

215 collectionSettings.url = this.options.url(model);

216 }

217 return Backbone.Collection.extend(collectionSettings);

218 },

219

backbone.js (https://github.com/3on/SynergyPad.git) JavaScript · 137 lines

2 window.People = {}

3 window.People.comment = Backbone.Model.extend({})

4 window.People.commentList = Backbone.Collection.extend({

5 model: window.People.comment

6 })

10 }

11 })

12 window.People.postList = Backbone.Collection.extend({

13 model: window.People.post,

14 localStorage: new Store("PeopleFeed"),

commonplace.js (https://github.com/fredoliveira/commonplace-nodebb.git) JavaScript · 187 lines

19 });

20

21 window.FragmentList = Backbone.Collection.extend({

22 model: Fragment,

23 url: 'fragments'

user.js (https://github.com/neekey/FreeNote.git) JavaScript · 261 lines

96 }),

97

98 CLtag = Backbone.Collection.extend({

99

100 model: Mtag,

208 }),

209

210 CLnote = Backbone.Collection.extend({

211

212 model: Mnote,

backbone-articulation-latest.js (https://github.com/kmalakoff/examples-kmalakoff.git) JavaScript · 278 lines

214 }

215

216 Collection.extend = Backbone.Collection.extend;

217

218 Collection.prototype.__bba_super = Backbone.Collection;

customers.js (https://github.com/seosamba/ecommerce.git) JavaScript · 83 lines

4 ], function(Backbone, CustomerRowModel){

5

6 var CustomersCollection = Backbone.Collection.extend({

7 model: CustomerRowModel,

8 urlRoot: 'api/store/customers/',

test-foo.js (https://bitbucket.org/mcsaatchi/generator-backbone.git) JavaScript · 158 lines

118 collection.run([], function () {

119 helpers.assertFiles([

120 ['app/scripts/collections/foo-collection.js', /Collections.FooCollection = Backbone.Collection.extend\(\{/]

121 ]);

122 });

application.js (https://github.com/etagwerker/chartly.git) JavaScript · 287 lines

78

79 // class DepartamentosCollection

80 window.DepartamentosCollection = Backbone.Collection.extend({

81 model: Departamento,

82

88

89 // class ProvinciasCollection

90 window.ProvinciasCollection = Backbone.Collection.extend({

91 url: 'http://censo.heroku.com/provincias?callback=?',

92 model: Provincia

model.js (https://github.com/okfn/yourtopia.git) JavaScript · 250 lines

29 /*

30 // not sure if needed

31 my.SeriesList = Backbone.Collection.extend({

32 model: my.Series

33 });

127 * Region index result data collection

128 */

129 my.AllRegionsTimeSeries = Backbone.Collection.extend({

130 model: my.RegionTimeSeries,

131 sourceData: null,

notifications.js (https://github.com/prellele/diaspora.git) JavaScript · 115 lines

1 app.collections.Notifications = Backbone.Collection.extend({

2 model: app.models.Notification,

3 // URL parameter

models.js (https://gitlab.com/astian/build-tools) JavaScript · 258 lines

51 });

52

53 var Slaves = Backbone.Collection.extend({

54 url: window.slavealloc_base_url + 'api/slaves',

55 model: Slave,

73 });

74

75 var Masters = Backbone.Collection.extend({

76 url: window.slavealloc_base_url + 'api/masters',

77 model: Master,

91 });

92

93 var Distros = Backbone.Collection.extend({

94 url: window.slavealloc_base_url + 'api/distros',

95 model: Distro,

gallery.js (https://github.com/zeropaper/kern.git) JavaScript · 170 lines

66 });

67

68 GalleryCollection = Backbone.Collection.extend({

69 model: K.models.ContentEntry,

70 current: 0,

compositeView.spec.js (https://bitbucket.org/stevepict/backbone.marionette.git) JavaScript · 435 lines

334 var User = Backbone.Model.extend({});

335

336 var UserCollection = Backbone.Collection.extend({

337 model: User

338 });

382 var Model = Backbone.Model.extend({});

383

384 var Collection = Backbone.Collection.extend({

385 model: Model

386 });

403 });

404

405 var NodeCollection = Backbone.Collection.extend({

406 model: Node

407 });

filters.js (https://github.com/cbmi/cilantro.git) JavaScript · 150 lines

84

85 // Collection of "filters" which correspond to an arbitrarily complex context node

86 var Filters = Backbone.Collection.extend({

87 model: Filter,

88

scaffold_generator_test.rb (https://github.com/meleyal/backbone-on-rails.git) Ruby · 174 lines

71 run_generator ['planet', '--javascript']

72 assert_file "#{collection_path}/planets.js" do |content|

73 assert_match('Dummy.Collections.Planets = Backbone.Collection.extend', content)

74 assert_match('model: Dummy.Models.Planet', content)

75 end

games.js (https://github.com/jonejone/golfstats.git) JavaScript · 275 lines

207

208 /* The collection holding Games */

209 var GameList = Backbone.Collection.extend({

210 model: Game, url: '/api/games/',

211 });

247

248 /* The collection holding "GameHole" */

249 var GameHoleList = Backbone.Collection.extend({

250 model: GameHole,

251

paydown.js (https://bitbucket.org/keithelliott/simplecalc_web.git) JavaScript · 166 lines

131 var AmortModel = Backbone.Model.extend();

132

133 var AmortList = Backbone.Collection.extend({

134 model: AmortModel

135 });

resources.js (https://github.com/benoitc/couchdb.git) JavaScript · 148 lines

66 });

67

68 Databases.Changes = Backbone.Collection.extend({

69

70 initialize: function(options) {

127

128 // TODO: shared databases - read from the user doc

129 Databases.List = Backbone.Collection.extend({

130 model: Databases.Model,

131

LiferaySiteSelectDialog.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 154 lines

30 });

31

32 LiferaySiteCollection = Backbone.Collection.extend({

33 model: LiferaySiteModel,

34 parse: function (response) {

TranscriptModel.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 219 lines

28

29

30 var UserCertificateCollection = Backbone.Collection.extend({

31 model: TranscriptModel,

32 parse: function (response) {

50 });

51

52 var UserCoursesCollection = Backbone.Collection.extend({

53 model: TranscriptModel

54 }).extend(UserCoursesCollectionService);

76 });

77

78 var PackagesCollection = Backbone.Collection.extend({

79 model: TranscriptModel,

80 parse: function (response) {

scratchpads.js (https://gitlab.com/gregtyka/KhanLatest) JavaScript · 125 lines

82 });

83

84 window.ScratchpadList = Backbone.Collection.extend({

85 model: Scratchpad,

86 fetchForUser: function(options) {

plugins.php (https://github.com/ushahidi/SwiftRiver.git) PHP · 103 lines

51 });

52

53 var PluginItemList = Backbone.Collection.extend({

54 model: PluginItem

55 });

fanta.js (https://bitbucket.org/ccucco/bb_tuto1.git) JavaScript · 230 lines

18 });

19

20 var Team = Backbone.Collection.extend({

21

22 model: Player,

32 });

33

34 var Lineup = Backbone.Collection.extend({

35

36 model: Player,

crm.designer.js (https://gitlab.com/virtualrealms/d7civicrm) JavaScript · 119 lines

82 * - ufGroupModel: UFGroupModel

83 */

84 CRM.Designer.PaletteFieldCollection = CRM.Backbone.Collection.extend({

85 model: CRM.Designer.PaletteFieldModel,

86 initialize: function(models, options) {

alloy.js (https://bitbucket.org/pedrobrasileiro/testealloy.git) JavaScript · 137 lines

41 require("alloy/sync/" + type).sync(model, method, opts);

42 }

43 }, Collection = Backbone.Collection.extend(extendObj), config = Collection.prototype.config = model.prototype.config, type = (config.adapter ? config.adapter.type : null) || "localDefault", adapter = require("alloy/sync/" + type);

44 _.isFunction(adapter.afterCollectionCreate) && adapter.afterCollectionCreate(Collection);

45 _.isFunction(modelDesc.extendModel) && (Collection = modelDesc.extendCollection(Collection) || Collection);

StageCollection.js.coffee (https://github.com/jonmumm/Talksho.git) CoffeeScript · 65 lines

1 Talkshow.Collections.StageCollection = Backbone.Collection.extend

2 initialize: ->

3 $(document).bind 'startShow', $.proxy @onStartShow, @

base-collection.js (https://bitbucket.org/madebybottle/bottlecap.git) JavaScript · 143 lines

19 // ### BaseCollection

20 // ------------------

21 var BaseCollection = Backbone.Collection.extend({

22 // The DataStore API events

23 dataStoreAPI: [

sync.js (https://bitbucket.org/juanpicado/hacker-news-reader.git) JavaScript · 212 lines

1 $(document).ready(function() {

2

3 var Library = Backbone.Collection.extend({

4 url : function() { return '/library'; }

5 });

backbone.localforage.js (https://gitlab.com/Mirros/cdnjs) JavaScript · 256 lines

8 // `sync` method on your collections and models to use localForage. So

9 //

10 // var MyModel = Backbone.Collection.extend({})

11 // var MyCollection = Backbone.Collection.extend({\

15 // becomes

16 //

17 // var MyModel = Backbone.Collection.extend({

18 // sync: Backbone.localforage.sync()

19 // });

20 // var MyCollection = Backbone.Collection.extend({

21 // model: MyModel,

22 // sync: Backbone.localforage.sync('MyCollection')

ligament.js (https://github.com/ashook/ligament.js.git) JavaScript · 128 lines

115 // ======================================================================

116 // Ligament.Collection

117 Ligament.Collection = Backbone.Collection.extend({

118 // ;-) - Happy little no-op! Nothing to see here yet.

119 });

resources.js (https://github.com/benoitc/couchdb.git) JavaScript · 255 lines

153 });

154

155 Documents.AllDocs = Backbone.Collection.extend({

156 model: Documents.Doc,

157

196 });

197

198 Documents.IndexCollection = Backbone.Collection.extend({

199 model: Documents.ViewRow,

200

homepage.js (https://bitbucket.org/adi2412/givetocollege-adi.git) JavaScript · 132 lines

29 var UserCampaign = Backbone.Model.extend();

30

31 var UserAchievementList = Backbone.Collection.extend({

32 model: UserAchievement,

33 url: function() {

37 UserAchievementList = new UserAchievementList({});

38

39 var UserCampaignList = Backbone.Collection.extend({

40 model: UserCampaign,

41 url: function() {

_Lesson.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 151 lines

76 _Lesson.Model = Backbone.Model.extend(_Lesson.service);

77

78 _Lesson.Collection = Backbone.Collection.extend({

79 model: _Lesson.Model

80 });

formernotebook.js (https://github.com/amundo/notebook.git) JavaScript · 241 lines

143 });

144

145 window.Text = Backbone.Collection.extend({

146

147 model : Sentence,

reviews.js (https://github.com/harthur/bzhome.git) JavaScript · 162 lines

6 });

7

8 window.Reviews = Backbone.Collection.extend({

9 model: Review,

10

main.js (https://bitbucket.org/biotelligent/winecellar.git) JavaScript · 181 lines

14 });

15

16 window.WineCollection = Backbone.Collection.extend({

17 model:Wine,

18 url:"../api/wines"

place.js (https://bitbucket.org/lojzatran/google-maps-studentive.git) JavaScript · 115 lines

104 * @type {*}

105 */

106 APP.PlaceCollection = Backbone.Collection.extend({

107 initialize:function () {

108 },

collection.js (https://gitlab.com/johanlindberg/irvato-crm) JavaScript · 147 lines

29 Espo.define('collection', [], function () {

30

31 var Collection = Backbone.Collection.extend({

32

33 name: null,

app.js (https://github.com/mickdelaney/cassette.git) JavaScript · 172 lines

20 });

21

22 window.TodoList = Backbone.Collection.extend({

23

24 model: Todo,

CertificateSelectStatementsView.js (https://github.com/ViLPy/JSCORM.git) JavaScript · 175 lines

18 });

19

20 SelectStatementCollection = Backbone.Collection.extend({

21 model: StatementModel,

22 parse: function (response) {

backbone.xmpp.node.js (https://github.com/wycats/todomvc.git) JavaScript · 95 lines

19

20 // PubSub Items collection

21 var PubSubNode = Backbone.Collection.extend({

22

23 model: PubSubItem,

arangoCollections.js (https://github.com/triAGENS/ArangoDB.git) JavaScript · 190 lines

5 'use strict';

6

7 window.ArangoCollections = Backbone.Collection.extend({

8 url: arangoHelper.databaseUrl('/_api/collection'),

9

dashboard.js (https://github.com/glenasmith/shameless.git) JavaScript · 288 lines

20

21 // Collection

22 var MealCollection = Backbone.Collection.extend({

23

24 model: Meal,

gallery.js (https://github.com/FeipingHunag/backbonejs-gallery.git) JavaScript · 228 lines

19 * @type Backbone.Collection

20 */

21 var PhotoCollection = Backbone.Collection.extend({

22 model: Photo,

23 comparator: function(item) {

test-requirejs.js (https://bitbucket.org/mcsaatchi/generator-carnaby.git) JavaScript · 151 lines

108 collection.run([], function () {

109 helpers.assertFiles([

110 ['app/scripts/collections/foo-collection.js', /var FooCollection = Backbone.Collection.extend\(\{/]

111 ]);

112 });

dashboard.coffee (https://github.com/lefthandedgoat/Oak.git) CoffeeScript · 282 lines

193 )

194

195 RollOffs = Backbone.Collection.extend

196 model: Consultant

197

198 url: "rolloffs/list"

199

200 Bench = Backbone.Collection.extend

201 model: Consultant

202

application.js (https://github.com/narangrajeev81/BackboneJsAndFullCalendar.git) JavaScript · 113 lines

2 var Event = Backbone.Model.extend();

3

4 var Events = Backbone.Collection.extend({

5 model: Event,

6 url: 'events'

Collection.js (https://github.com/neogermi/VIE.git) JavaScript · 129 lines

6 // For all details and documentation:

7 // http://viejs.org/

8 VIE.prototype.Collection = Backbone.Collection.extend({

9 model: VIE.prototype.Entity,

10

paginated_collection.js (https://gitlab.com/ykazemi/canvas-lms) JavaScript · 205 lines

62 * Usage example:

63 *

64 * var Collection = Backbone.Collection.extend({

65 * // install the mixin

66 * constructor: function() {

alloy.js (https://bitbucket.org/robertosanchez/ticourse_client.git) JavaScript · 152 lines

41 require("alloy/sync/" + type).sync(model, method, opts);

42 }

43 }, Collection = Backbone.Collection.extend(extendObj), config = Collection.prototype.config = model.prototype.config, type = (config.adapter ? config.adapter.type : null) || "localDefault", adapter = require("alloy/sync/" + type);

44 _.isFunction(adapter.afterCollectionCreate) && adapter.afterCollectionCreate(Collection);

45 _.isFunction(modelDesc.extendCollection) && (Collection = modelDesc.extendCollection(Collection) || Collection);

collection.js (https://github.com/rsimba/nodechat-tutorial.git) JavaScript · 169 lines

115

116 test("collection: initialize", function() {

117 var Collection = Backbone.Collection.extend({

118 initialize: function() {

119 this.one = 1;

index.html (https://github.com/tonyto/hello-backbone.git) HTML · 105 lines

21 });

22

23 window.IdeaList = Backbone.Collection.extend({

24 model: Idea,

25 localStorage: new Store("ideas"),

employee.js (https://github.com/GarfieldLinux/garfield.git) JavaScript · 109 lines

73 }),

74

75 EmployeeCollection = Backbone.Collection.extend({

76

77 model: Employee,

87 }),

88

89 ReportsCollection = Backbone.Collection.extend({

90

91 model: Employee,

table.js (https://github.com/phpugl/Dime.git) JavaScript · 291 lines

82 }));

83

84 App.provide('Collection.Report.Timeslices', Backbone.Collection.extend({

85 duration: function(precision, unit) {

86 var duration = 0;

models.js (https://bitbucket.org/caret/timetables-2.git) JavaScript · 257 lines

51 });

52

53 var Classifiers = Backbone.Collection.extend({

54 constructor: function Classifiers() {

55 superclass(Classifiers).apply(this, arguments);

105 });

106

107 var ClassifierGroups = Backbone.Collection.extend({

108 constructor: function ClassifierGroups() {

109 superclass(ClassifierGroups).apply(this, arguments);

search.js (https://github.com/meirish/backbone-intro.git) JavaScript · 148 lines

120

121

122 Lstn.Collections.SearchCollection = Backbone.Collection.extend({

123

124 model: Lstn.Models.RdioObj,

modules.js (https://github.com/dariocravero/PAd.git) JavaScript · 98 lines

54 }

55 }, {properties: module.properties});

56 PAd.Collections[module.name.collection] = Backbone.Collection.extend({

57 model: PAd.Models[module.name.model],

58 //url: '/' + module.name.collection.toLowerCase(),

models.js (https://gitlab.com/gregtyka/ka-lite) JavaScript · 171 lines

124

125

126 var ContentLogCollection = Backbone.Collection.extend({

127

128 model: ContentLogModel,

NodeListModel.js (https://gitlab.com/zouxc/elasticsearch-cn-out-of-box) JavaScript · 63 lines

26 */

27

28 var NodeListModel = Backbone.Collection.extend({

29 model:NodeSimple,

30 masterNode:'',

app.js (https://github.com/pamelafox/teaching-materials.git) JavaScript · 99 lines

25 });

26

27 var People = Backbone.Collection.extend({

28 model: Person,

29 comparator: function(model) {

CategoriesCollection.js (https://bitbucket.org/javacat/jastrology.git) JavaScript · 98 lines

6

7 // Extends Backbone.Router

8 var Collection = Backbone.Collection.extend( {

9

10 // The Collection constructor

sync.js (https://github.com/andynelson/backbone.git) JavaScript · 160 lines

4 var lastRequest = null;

5

6 var Library = Backbone.Collection.extend({

7 url : function() { return '/library'; }

8 });

index.jade (https://github.com/jwalter/zombiedice.git) Jade · 223 lines

176 });

177

178 Players = Backbone.Collection.extend({

179 model: Player,

180 initialize: function (models, options) {

view.js (https://github.com/cbmi/cilantro.git) JavaScript · 148 lines

12 });

13

14 var Facets = Backbone.Collection.extend({

15 model: Facet

16 });

tasks.js (https://gitlab.com/clusterpress/clusterpress) JavaScript · 236 lines

64 * The Tasks collection

65 */

66 cp.Collections.Tasks = Backbone.Collection.extend( {

67 proceed: function( options ) {

68 options = options || {};

simpleCall.js (https://gitlab.com/essere.lab.public/qualitas.class-corpus) JavaScript · 43 lines

40 * Portions Copyrighted 2012 Sun Microsystems, Inc.

41 */

42 window.ManufacturerList = Backbone.Collection.extend();

43

44

sync.js (https://github.com/ranji/backbone.git) JavaScript · 133 lines

8 }});

9

10 var Library = Backbone.Collection.extend({

11 url : function() { return '/library'; }

12 });

todos.js (https://github.com/larrymyers/backbone-koans.git) JavaScript · 209 lines

35 });

36

37 window.TodoList = Backbone.Collection.extend({

38

39 model: Todo,