100+ results results for 'Backbone.Collection.extend' (193 ms)
78 79 var ClientCollection = Backbone.Collection.extend({ 80modelcollections.js git://github.com/jspears/bobamo.git | JavaScript | 125 lines
41 }); 42 var Collection = Backbone.Collection.extend({ 43 model: Model,InstanceModel.js git://github.com/ging/horizon-js.git | JavaScript | 204 lines
187 188var Instances = Backbone.Collection.extend({ 189todos.js git://github.com/documentcloud/backbone.git | JavaScript | 234 lines
35 // server. 36 var TodoList = Backbone.Collection.extend({ 37default.htm git://github.com/ServiceStack/ServiceStack.git | HTML | 0 lines
59 // server. 60 window.TodoList = Backbone.Collection.extend({ 61SNB_004.js http://ownerpress.googlecode.com/svn/trunk/ | JavaScript | 1 lines
1SNB.Models.Comment=Backbone.Model.extend({sync:function(a,b,c){switch(a){case"create":c.url=SNB.domain.apiBase+"/statuses/reply.json",c.type="post",c.data={id:b.get("statusId"),comment:b.get("comment"),forward:b.get("forward")},b.get("in_reply_to_comment_id")&&(c.data.cid=b.get("in_reply_to_comment_id"));break;case"delete":c.url=SNB.domain.apiBase+"/statuses/comment_destroy/"+b.get("id")+".json";break;case"update":c.url=SNB.domain.apiBase+"/comments/edit.json",c.data={text:b.get("text"),id:b.get("id")}}return $.ajax(c)},parse:function(a){var b=$.parseJSON(a),c=b.user,d=c.profile_image_url?c.profile_image_url.split(","):"",e={img:SNB.domain.photo+"/"+(d.length>3?d[3]:d.length==1?d[0]:"community/default/30x30.gif"),id:c.id,profile:c.profile,screen_name:c.screen_name,verified:c.verified,verified_description:c.verified_description},f=SNB.Util.parseTime(b.created_at);return b.user=e,b.createdAt=f,b},rtext:function(){return this.get("text")},head_img:function(){var a=this.get("user").profile_image_url?this.get("user").profile_image_url.split(","):"";return a.length>3?a[3]:a.length==1?a[0]:"community/default/30x30.gif"},screen_name:function(){return this.get("user").screen_name},profile:function(){return this.get("user").profile},verified:function(){return this.get("user").verified},verified_description:function(){return this.get("user").verified_description},created_time:function(){return SNB.Util.parseTime(this.get("created_at"))},isDelete:function(){return SNB.currentUser&&SNB.currentUser.id==this.get("user").id},isEdit:function(){return SNB.currentUser&&SNB.currentUser.id==this.get("user").id}}),SNB.Collections.Comments=Backbone.Collection.extend({model:SNB.Models.Comment,initialize:function(a,b){this.statusId=b.statusId,this.commentCount=b.commentCount,this.in_reply_to_comment_id=b.in_reply_to_comment_id,this.page=this.page?this.page:b.page?b.page:1,this.maxPage=this.maxPage?this.maxPage:b.maxPage?b.maxPage:1,this.url=SNB.domain.apiBase+"/statuses/commentlist.json?id="+b.statusId},updateCount:function(a){this.commentCount&&(this.commentCount.innerHTML=SNB.Util.updateCount(this.commentCount.innerHTML,a))},parse:function(a){var b=typeof a=="string"?$.parseJSON(a):a;return this.maxPage=b.maxPage,this.page=b.page,_.map(b.comments,function(a){var b=a.user,c=b.profile_image_url?b.profile_image_url.split(","):"",d={img:SNB.domain.photo+"/"+(c.length>3?c[3]:c.length==1?c[0]:"community/default/30x30.gif"),id:b.id,profile:b.profile,screen_name:b.screen_name,verified:b.verified,verified_description:b.verified_description},e=SNB.Util.parseTime(a.created_at);return a.user=d,a.createdAt=e,a}),b.comments}}),SNB.Templates.Comment='<div class="headpic"><a href="{{=it.user.profile}}"><img src="{{=it.user.img}}"></a></div><div class="content"><div class=\'comment\'><a href="{{=it.user.profile}}">{{=it.user.screen_name}}</a>{{ if (it.user.verified){ }}'+"<img width='15px' height='13px' title='{{=it.user.verified_description}}' src='"+SNB.domain["static"]+"/images/vipicon.png'/>"+"{{ } }}"+': <span class="cmt_con">{{=it.text}}</span>'+'<span class="time">(<span class="createAt" createdat="{{=it.created_at}}">{{=it.createdAt}}</span>)</span>'+"</div>"+'<div class="ops">'+"{{ if ((it.user.id == {{#def.uid}}) && it.canEdit) { }}"+'<a href="#" class="edit">\u4fee\u6539</a>'+"{{ } }}"+"{{ if (it.user.id == {{#def.uid}}) { }}"+'<a href="#" class="deleteComment">\u5220\u9664</a>'+"{{ } }}"+'<a href="#" class="reply">\u56de\u590d</a>'+"</div>"+"</div>"+"{{ if ((it.user.id == {{#def.uid}}) && it.canEdit) { }}"+'<div style="display:none" class="editarea">'+'<textarea class="comment_edit"></textarea>'+'<div class="ops">'+'<a href="#" class="comment_cancel">\u53d6\u6d88</a>'+'<input type="button" class="comment_save" value="\u4fdd\u5b58"/>'+"</div>"+"</div>"+"{{ } }}",SNB.Templates.commentFunc=doT.template(SNB.Templates.Comment,undefined,{uid:SNB.currentUser.id||0}),SNB.Views.Comment=Backbone.View.extend({initialize:function(a){this.editor=a.editor,_.bindAll(this,"render"),this.model.bind("change",this.render,this),this.model.bind("destroy",this.remove,this)},tagName:"li",events:{"click .edit":"edit","click .reply":"reply","click .deleteComment":"destroy","click .comment_cancel":"cancel","click .comment_save":"save"},render:function(){return $(this.el).html(SNB.Templates.commentFunc(this.model.toJSON())),this.$(".content").show(),this.$(".editarea").hide(),this},edit:function(a){a.preventDefault(),this.$(".content").hide();var b=SNB.Util.reparseContent(this.model.get("text").replace(/<br\/?>/g,"\n"));this.$(".editarea").show().find("textarea").val("").autoResize({minHeight:50,extraSpace:20}).insertString(b).trigger("keyup")},reply:function(a){a.preventDefault();if(!this.editor.attr("disabled")){var b=this,c="\u56de\u590d@"+b.model.get("user").screen_name+": ";b.editor.val(c).focus().setSelection(c.length,0),b.model.collection.in_reply_to_comment_id=b.model.id,b.model.get("statusId")&&(b.model.collection.statusId=b.model.get("statusId"),delete b.model.collection.in_reply_to_comment_id)}},destroy:function(a){var b=$("#dialog-delete-comment"),c=this;if($("#dialog-delete-comment").length===0){var d='<div id="dialog-delete-comment" class="dialog-wrapper"><div class="tipsdivcontent" style="text-align:center;"><p class="message" style="text-align:center;">\u786e\u5b9a\u5220\u9664\u5417\uff1f</p><div><input type="button" class="submit okButton" value="\u786e\u5b9a"/><input type="button" class="button cancelButton" value="\u53d6\u6d88"/></div></div></div>';$("body").append(d),b=$("#dialog-delete-comment")}b.find(".cancelButton").click(function(){b.dialog("close")}),b.find(".okButton").unbind("click").click(function(){b.dialog("close"),a.preventDefault(),c.model.collection.updateCount(-1),c.model.destroy(),c.remove()});var e=$(a.target);return b.dialog({modal:"true",minHeight:50,width:200,position:[e.offset().left-110,e.offset().top-$(document).scrollTop()-110]}).prev().hide(),!1},cancel:function(a){a.preventDefault(),this.$(".content").show(),this.$(".editarea").hide()},save:function(a){a.preventDefault();var b=this.$(".comment_edit").val().replace(/\n/g,"<br/>");this.model.save({text:b})}}),SNB.Templates.Comments='<div class="commentPostArea"><div class="commentTop"></div><div id="inputArea"><textarea class="commentEditor" ></textarea></div><p class="forbidden" style="display:none">\u7531\u4e8e\u5bf9\u65b9\u7684\u8bbe\u7f6e\uff0c\u60a8\u4e0d\u80fd\u8bc4\u8bba</p><span class="showFaceButton"> </span><span class="addStock"> </span><label><input type="checkbox" name="forward"/>\u540c\u65f6\u8f6c\u53d1\u5230\u6211\u7684\u9996\u9875 </label><input type="submit" class="commentSubmit button" value="\u53d1\u5e03"/><div class="fixit"></div></div><div class=\'loading\' style=\'display:none\'></div><ul class="commentList"></ul>',SNB.Views.Comments=Backbone.View.extend({initialize:function(a){this.collection.bind("reset",this.render,this),this.collection.bind("add",this.addComment,this),this.collection.commentTo=a.commentTo},events:{"click .commentSubmit":"submitComment","click .addStock":"addStock","click .showFaceButton":"showFace"},template:SNB.Templates.Comments,render:function(a){var b=this;if(!$(this.el).html()){$(this.el).append(this.template),this.$("textarea").autoResize({minHeight:50,extraSpace:30});var c=this.$("textarea"),b=this,d=this.submitComment;$.browser.msie&&c.live("keyup keydown mouseup",function(){$(this).data("start",$(this).getSelectionStart()),$(this).data("end",$(this).getSelectionEnd())}),function(){var a=!1;c.keydown(function(c){if(c.keyCode==17||c.keyCode==91)a=!0;if(a&&c.keyCode===13)return d.call(b,{}),!1}).keyup(function(b){if(b.keyCode==17||b.keyCode==91)a=!1})}()}(!a||this.collection&&$(this.collection.commentCount).text().match(/\d+/ig))&&this.$(".loading").show(),SNB.currentUser.isGuest||$.getJSON(SNB.domain.apiBase+"/statuses/comment/allow.json",{id:this.collection.statusId},function(a){a.allow||(b.$("textarea").attr("disabled","disabled"),b.$(".forbidden").show())});var e=$("<ul class='commentList'></ul>");this.collection.each(function(a){e.append((new SNB.Views.Comment({model:a,id:"comment_"+a.id,editor:b.$(".commentEditor").filter(":last")})).render().el)});var b=this;this.collection.maxPage>1&&e.append($(SNB.Pager(this.collection.page,this.collection.maxPage)).find("a").click(function(a){a.preventDefault();var c=$(this).attr("data-page");b.$(".commentList").html(""),b.$(".loading").show(),b.collection.fetch({data:{page:c}}),$("html, body").animate({scrollTop:b.$(".commentPostArea").offset().top},200)}).end());var f=this.collection.commentTo?"\u56de\u590d @"+this.collection.commentTo.user.screen_name+": ":"";this.$(".commentEditor").val(),f&&(this.collection.$textarea=this.$(".commentEditor").insertString(f)),this.$(".commentList").replaceWith(e),a!=1&&this.$(".loading").hide()},display:!0,toggle:function(a){this.display?($(this.el).hide(),this.display=!1):(this.$(".commentList").html(""),a||(this.$(".loading").show(),this.collection.fetch()),$(this.el).show(),this.display=!0)},addComment:function(a){this.$(".commentList").prepend((new SNB.Views.Comment({model:a})).render().el)},submitComment:function(a){var b=this;SNB.Util.checkLogin(function(){$.getJSON(SNB.domain.apiBase+"/statuses/comment/allow.json",{id:b.collection.statusId},function(a){if(a.allow){var c=b.$(".commentEditor").filter(":last"),d=c.val();if($.trim(d)==="")return alert("\u8bc4\u8bba\u4e0d\u80fd\u4e3a\u7a7a\uff01"),!1;c.val("").trigger("keyup");var e=b.$("input[name=forward]:checked").length>0?1:0;b.$(".commentSubmit").attr("disabled","disabled"),b.collection.create({statusId:b.collection.statusId,comment:d.replace(/\n/g,"<br/>"),in_reply_to_comment_id:b.collection.in_reply_to_comment_id,forward:e},{success:function(a){var c=b.$(".commentSubmit").attr("disabled");b.$(".commentSubmit").removeAttr("disabled"),b.collection.updateCount()},error:function(a){b.$(".commentSubmit").removeAttr("disabled"),alert("\u8bc4\u8bba\u5931\u8d25")}})}else alert("\u5bf9\u65b9\u4e0d\u5141\u8bb8\u8bc4\u8bba")})},a)},addStock:function(a){var b=$(this.el).find(".commentEditor").filter(":last"),c=[b.offset().left-$(window).scrollLeft(),b.offset().top-$(window).scrollTop()+b.height()];SNB.Util.insertStock(c,function(a){b.insertString("$"+a.name+"("+a.value+")$").focus()})},showFace:function(a){var b=$(this.el).find(".commentEditor").filter(":last");SNB.Util.emotion(a,function(a){b.insertString(a).focus()})}})wsperf_commander.html git://github.com/zaphoyd/websocketpp.git | HTML | 387 lines
126 127 window.ServerList = Backbone.Collection.extend({ 128 model: Server,spiro-models.js https://hg.codeplex.com/restfulobjects | JavaScript | 256 lines
219 // matches a list representation 11.0 220 roc.LinkList = Backbone.Collection.extend({ 221 model: roc.Link,address.js https://git01.codeplex.com/mobileshop | JavaScript | 290 lines
13 14window.CityList = Backbone.Collection.extend({ 15 model: City, 21 22window.AddressList = Backbone.Collection.extend({ 23 model: Address,model.js git://github.com/documentcloud/backbone.git | JavaScript | 1470 lines
3 var ProxyModel = Backbone.Model.extend(); 4 var Klass = Backbone.Collection.extend({ 5 url: function() { return '/collection'; } 401 402 var Collection = Backbone.Collection.extend({ 403 model: Modelcollection.js git://github.com/documentcloud/backbone.git | JavaScript | 2112 lines
48 assert.expect(3); 49 var Collection = Backbone.Collection.extend({ 50 parse: function(data) { 204 assert.expect(1); 205 var Col = Backbone.Collection.extend({ 206 comparator: function(m1, m2) { 287 288 var Col = Backbone.Collection.extend({model: Model}); 289 var collection = new Col;todos.html git://github.com/documentcloud/backbone.git | HTML | 791 lines
193 194 <div class="content"><div class='highlight'><pre> <span class="hljs-keyword">var</span> TodoList = Backbone.Collection.extend({</pre></div></div> 195model.js.tpl git://github.com/jasonhinkle/phreeze.git | Smarty Template | 163 lines
29 */ 30model.AbstractCollection = Backbone.Collection.extend({ 31 totalResults: 0,sync.js git://github.com/documentcloud/backbone.git | JavaScript | 239 lines
2 3 var Library = Backbone.Collection.extend({ 4 url: function() { return '/library'; }TestBackbone.js https://hg.codeplex.com/nakedobjects | JavaScript | 298 lines
150 151 var ActionList = Backbone.Collection.extend({ 152 model: Action, 169 170 var ServiceList = Backbone.Collection.extend({ 171 model: Service,code-comments.js git://pkgs.fedoraproject.org/trac-code-comments-plugin | JavaScript | 215 lines
20 21 window.CommentsList = Backbone.Collection.extend({ 22 model: Comment,application.coffee git://github.com/simukis/django-bfm.git | CoffeeScript | 0 lines
86 87 Files = Backbone.Collection.extend 88 url: 'list_files/' 143 144 Directories = Backbone.Collection.extend 145 url: 'list_directories/'todos.js git://github.com/zgrossbart/jslim.git | JavaScript | 233 lines
34 // server. 35 window.TodoList = Backbone.Collection.extend({ 36myMessage.js https://git01.codeplex.com/mobileshop | JavaScript | 103 lines
4 5window.MessageList = Backbone.Collection.extend({ 6 model: Message,TG_Timeline.js git://github.com/khaneh/Orders.git | JavaScript | 377 lines
31 32 tg.TG_EventCollection = Backbone.Collection.extend({ 33 119 120 tg.TG_TimelineCollection = Backbone.Collection.extend({ 121 model: tg.TG_Timelinesessions.js git://github.com/NancyFx/Nancy.git | JavaScript | 60 lines
5 6 Session.Collection = Backbone.Collection.extend({ 7 model: Session.Model,Todo.js git://github.com/radekstepan/fundamental.js.git | JavaScript | 59 lines
24// The collection of todos is backed by *localStorage* instead of a remote server. 25var TodoList = Backbone.Collection.extend({ 26myOrder.js https://git01.codeplex.com/mobileshop | JavaScript | 101 lines
47 48window.OrderList = Backbone.Collection.extend({ 49 model: Order,client.js git://github.com/LockerProject/Locker.git | JavaScript | 553 lines
45 // Contact Collection 46 var AddressBook = Backbone.Collection.extend({ 47 model: Contactapp.js git://github.com/andrewdavey/cassette.git | JavaScript | 172 lines
21 22 window.TodoList = Backbone.Collection.extend({ 23proposal-edit.js https://bitbucket.org/dwaiter/proposalmatic/ | JavaScript | 206 lines
59 // Library Snippets ------------------------------------------------------------ 60 window.LibrarySnipList = Backbone.Collection.extend({ 61 model: SnippetVersion, 106 // Proposal Snippets ----------------------------------------------------------- 107 window.ProposalSnipList = Backbone.Collection.extend({ 108 model: SnippetVersion,employee.js git://github.com/jspears/bobamo.git | JavaScript | 64 lines
34 35 var EmployeeCollection = Backbone.Collection.extend({ 36app.js git://github.com/mdp/middlefiddle.git | JavaScript | 203 lines
51 52 window.Requests = Backbone.Collection.extend({ 53 model: Request,nodewatch.models.js git://github.com/hyperthunk/nodewatch.git | JavaScript | 265 lines
82 83SubscriptionList = Backbone.Collection.extend({ 84 debuggerTag: 'SubscriptionList', 108 109NodeSet = Backbone.Collection.extend({ 110 debuggerTag: 'NodeSet', 120 121SystemStats = Backbone.Collection.extend({ 122 debuggerTag: 'SystemStats',ImageModel.js git://github.com/ging/horizon-js.git | JavaScript | 41 lines
25 26 var Images = Backbone.Collection.extend({ 27 model: Image,production-admin.js git://github.com/tekpub/mvc3.git | JavaScript | 298 lines
16}); 17Episodes = Backbone.Collection.extend({ 18 model: Episode, 51}); 52Productions = Backbone.Collection.extend({ 53 model : Production,models.js https://bitbucket.org/wez/mtrack/ | JavaScript | 311 lines
42 43var MTrackProjectCollection = Backbone.Collection.extend({ 44 model: MTrackProject, 65 66var MTrackRepoList = Backbone.Collection.extend({ 67 model: MTrackRepo, 81 82var MTrackTicketAttachmentCollection = Backbone.Collection.extend({ 83 model: MTrackAttachment, 89 90var MTrackTicketChangesCollection = Backbone.Collection.extend({ 91 model: MTrackTicketChange, 178 179MTrackTicketCollection = Backbone.Collection.extend({ 180 model: MTrackTicket,traces.js git://github.com/NancyFx/Nancy.git | JavaScript | 81 lines
5 6 Trace.Collection = Backbone.Collection.extend({ 7 model: Trace.Model,TG_Timeline.js https://hg.codeplex.com/visualizeweb | JavaScript | 333 lines
30 31 tg.TG_EventCollection = Backbone.Collection.extend({ 32 model: tg.TG_Event 110 111 tg.TG_TimelineCollection = Backbone.Collection.extend({ 112todos.js git://github.com/maccman/book-assets.git | JavaScript | 164 lines
13 14 window.TodoList = Backbone.Collection.extend({ 15 model: Todo,providers.js git://github.com/NancyFx/Nancy.git | JavaScript | 60 lines
5 6 Provider.Collection = Backbone.Collection.extend({ 7 model: Provider.Model,methods.js git://github.com/NancyFx/Nancy.git | JavaScript | 100 lines
5 6 Method.Collection = Backbone.Collection.extend({ 7 model: Method.Model,VolumeSnapshotModel.js git://github.com/ging/horizon-js.git | JavaScript | 59 lines
42 43var VolumeSnapshots = Backbone.Collection.extend({ 44productDetail.js https://git01.codeplex.com/mobileshop | JavaScript | 324 lines
20 21window.CommentList = Backbone.Collection.extend({ 22 model: Comment, 37 38window.OrderCommentList = Backbone.Collection.extend({ 39 model: OrderComment,myCart.js https://git01.codeplex.com/mobileshop | JavaScript | 206 lines
7 8window.MyCartList = Backbone.Collection.extend({ 9 model: MyCart,dispatchMode.js https://git01.codeplex.com/mobileshop | JavaScript | 62 lines
2 3window.DispatchModeList = Backbone.Collection.extend({ 4 model: DispatchMode,coupon.js https://git01.codeplex.com/mobileshop | JavaScript | 96 lines
2 3window.ActivityList = Backbone.Collection.extend({ 4 model: Activity,FlavorModel.js git://github.com/ging/horizon-js.git | JavaScript | 49 lines
29 30var Flavors = Backbone.Collection.extend({ 31 model: Flavor,KeypairModel.js git://github.com/ging/horizon-js.git | JavaScript | 40 lines
19 20var Keypairs = Backbone.Collection.extend({ 21 model: Keypair,page.js https://git01.codeplex.com/mobileshop | JavaScript | 285 lines
48 49window.PageCollection = Backbone.Collection.extend({ 50 model: Pageapp.js git://github.com/funkatron/WildGarlic-jqmobile.git | JavaScript | 201 lines
15 */ 16 var Results = Backbone.Collection.extend({ 17 initialize: function(models, options) {VolumeModel.js git://github.com/ging/horizon-js.git | JavaScript | 57 lines
40 41var Volumes = Backbone.Collection.extend({ 42backbone-d3.js git://github.com/jspears/bobamo.git | JavaScript | 78 lines
66 }), 67 PlotCollection:Backbone.Collection.extend({ 68 initialize:function (models, settings) {UserModel.js git://github.com/ging/horizon-js.git | JavaScript | 38 lines
22 23var Users = Backbone.Collection.extend({ 24 model: User,model.js https://bitbucket.org/okfn/wdmmg/ | JavaScript | 68 lines
22 }); 23 var DataStoreCollection = Backbone.Collection.extend({ 24 url: function(){enum.php https://bitbucket.org/wez/mtrack/ | PHP | 148 lines
35 }); 36 var ECOL = Backbone.Collection.extend({ 37 model: MODELProjectModel.js git://github.com/ging/horizon-js.git | JavaScript | 35 lines
19 20var Projects = Backbone.Collection.extend({ 21 model: Project,app.js git://github.com/pieter-vanderwerff/backbone-require-wire.git | JavaScript | 68 lines
24 var view = new View(), 25 collection = new ( Backbone.Collection.extend( { 26 done: function() { return []; },client.js git://github.com/cmpolis/Apples-and-Oranges.git | JavaScript | 215 lines
17 18 var NounCollection = Backbone.Collection.extend({ 19 model: Noun 73 74 var UserCollection = Backbone.Collection.extend({ 75 model: User 113 114 var PlayedNounCollection = Backbone.Collection.extend({ 115 model: PlayedNounbackbone-tests.ts https://hg.codeplex.com/mypet | TypeScript | 113 lines
89 var Book: Backbone.Model; 90 var Library = Backbone.Collection.extend({ 91 model: Bookmodels.js git://pkgs.fedoraproject.org/aeolus-conductor | JavaScript | 88 lines
17 18Conductor.Models.Pools = Backbone.Collection.extend({ 19 model: Backbone.Model.Pool, 34 35Conductor.Models.Instances = Backbone.Collection.extend({ 36 model: Backbone.Model.Instance, 71 72Conductor.Models.Deployments = Backbone.Collection.extend({ 73 model: Backbone.Model.Deployment,payment.js https://git01.codeplex.com/mobileshop | JavaScript | 63 lines
2 3window.PaymentList = Backbone.Collection.extend({ 4 model: PaymentStyle,productList.js https://git01.codeplex.com/mobileshop | JavaScript | 173 lines
4 5window.ProductList = Backbone.Collection.extend({ 6 model: Product,searchList.js https://git01.codeplex.com/mobileshop | JavaScript | 172 lines
3 4window.SearchList = Backbone.Collection.extend({ 5 model: Product,todos.js git://github.com/pieter-vanderwerff/backbone-require-wire.git | JavaScript | 88 lines
10 // Todos Collection 11 return Backbone.Collection.extend( { 12images.js git://github.com/saaperezru/Zentity.git | JavaScript | 136 lines
16 // --------------- 17 window.ImageCollection = Backbone.Collection.extend({ 18 model: Image,myFilter.js https://git01.codeplex.com/mobileshop | JavaScript | 50 lines
6 7window.BrandList = Backbone.Collection.extend({ 8 model: BrandModel,MusicPlayer.js https://bitbucket.org/zappan/backbone.musicplayer.git | JavaScript | 326 lines
7 8 MusicPlayer.Library = Backbone.Collection.extend({ // this is collection 9 model: MusicPlayer.Track,myCollect.js https://git01.codeplex.com/mobileshop | JavaScript | 107 lines
7 8window.MyCollectList = Backbone.Collection.extend({ 9 model: MyCollect,todos.js git://github.com/addyosmani/todomvc.git | JavaScript | 41 lines
7 8 var TodosCollection = Backbone.Collection.extend({ 9sidebar-nav.js http://docdoku.googlecode.com/svn/trunk/ | JavaScript | 222 lines
55 56FolderList = Backbone.Collection.extend({ 57invoice.js https://git01.codeplex.com/mobileshop | JavaScript | 127 lines
10 11window.InvoiceTypeList = Backbone.Collection.extend({ 12 model: InvoiceType,category.js https://git01.codeplex.com/mobileshop | JavaScript | 154 lines
8 9window.ProductCategoryCollection = Backbone.Collection.extend({ 10 model: Category,status_list_spec.js git://github.com/bkeepers/monologue.git | JavaScript | 30 lines
7 $el = $('<div/>'); 8 collection = new (Backbone.Collection.extend({url: '/mock'})); 9 // prevent collection from trying to refresh from the servermatching.js https://bitbucket.org/satook/krum_server.git | JavaScript | 426 lines
35 36var ContentList = Backbone.Collection.extend({ 37 model: Content,catalog.js https://git01.codeplex.com/mobileshop | JavaScript | 43 lines
17 18window.CatalogCollection = Backbone.Collection.extend({ 19 model: Catalogfolder.js http://docdoku.googlecode.com/svn/trunk/ | JavaScript | 41 lines
5) { 6 var FolderList = Backbone.Collection.extend({ 7 model: Folder,library.js.coffee https://bitbucket.org/satook/krum_server.git | CoffeeScript | 285 lines
98Player = Backbone.Model.extend() 99PlayerCollection = Backbone.Collection.extend( 100 model: Player, 211MediaTypes = Backbone.Model.extend() 212MediaTypeCollection = Backbone.Collection.extend( 213 model: MediaTypes, 223) 224MediaCollection = Backbone.Collection.extend( 225 model: Mediastream.js git://github.com/diaspora/diaspora.git | JavaScript | 58 lines
1app.models.Stream = Backbone.Collection.extend({ 2 initialize : function(){Tunes.js https://bitbucket.org/edwardstlouis/backbonepeep1.git | JavaScript | 346 lines
20 21 window.Albums = Backbone.Collection.extend({ 22 model: Album,latent.js git://github.com/saaperezru/Zentity.git | JavaScript | 123 lines
16 // --------------- 17 window.TopicCollection = Backbone.Collection.extend({ 18 model: Topic,Collections.js https://bitbucket.org/farmas/hangman.git | JavaScript | 31 lines
2 3 ns.Challenges = Backbone.Collection.extend({ 4 model: ns.Challenge, 20 21 ns.ChallengeResults = Backbone.Collection.extend({ 22 model: ns.ChallengeResult,Participant.js https://bitbucket.org/taxilian/racecontrol5.git | JavaScript | 565 lines
377 378 Participants = Backbone.Collection.extend({ 379 model: Participant,demo.js http://jquery-ui-map.googlecode.com/svn/trunk/ | JavaScript | 34 lines
14 $('#forum').append('<h2>Forum</h2><ul id="forum_posts"></ul><h2>Subscribe</h2><form id="forum_subscribe" class="subscribe" action="#"><label for="email">E-mail:</label><input id="email" type="text" name="email" /><input type="submit" name="sub" value="Subscribe" /></form>'); 15 ForumCollection = Backbone.Collection.extend({ 'url': 'http://ajax.googleapis.com/ajax/services/feed/load?v=1.0&callback=?&q={0}'.format(encodeURIComponent(demo.forum)), 'parse': function(response) { return response.responseData.feed.entries; } }); 16 ForumPost = Backbone.View.extend({ 'tagName': 'li', 'className': 'group-item', 'template': _.template('<a href="<%=link%>"><%=title%></a></h3>'), 'render': function() { $(this.el).html(this.template(this.model.toJSON())); return this; } });wiretap-model.js git://github.com/ifandelse/postal.js.git | JavaScript | 41 lines
13 14 return Backbone.Collection.extend( { 15post_status_spec.js git://github.com/bkeepers/monologue.git | JavaScript | 26 lines
7 $el = $("<form><textarea>See, it's not so hard!</textarea></form>"); 8 collection = new (Backbone.Collection.extend({url: '/mock'})); 9 // prevent collection from trying to sync with the serveractivity-containers.js https://bitbucket.org/bobyuxinyang/letsgaoqi.git | JavaScript | 281 lines
12 13 window.AcitivityContainerList = Backbone.Collection.extend({ 14 model: ActivityContainer,Entry.js https://bitbucket.org/taxilian/racecontrol5.git | JavaScript | 88 lines
51 52 var Entrys = Backbone.Collection.extend({ 53 model: Entry,Station.js https://bitbucket.org/taxilian/racecontrol5.git | JavaScript | 59 lines
26 27 Stations = Backbone.Collection.extend({ 28 model: Station,app.js https://bitbucket.org/atlassian/developer-toolbox.git | JavaScript | 408 lines
7 var Service = Backbone.Model.extend({}); 8 var Services = Backbone.Collection.extend({ 9 model: Service, 17 var Resource = Backbone.Model.extend({}); 18 var Resources = Backbone.Collection.extend({ 19 model: Resourcerepo.js https://bitbucket.org/rmanalan/hipchat-for-fecru.git | JavaScript | 50 lines
4 Room = Backbone.Model.extend({}); 5 Rooms = Backbone.Collection.extend({ 6 model:Room,AttributesMixinCreator-test.js https://bitbucket.org/atlassian/backbone-brace.git | JavaScript | 334 lines
265 conflictedTypesTest('number', Number); 266 conflictedTypesTest(Backbone.Collection.extend(), Backbone.Collection.extend()); 267 conflictedTypesTest(Array, Backbone.Collection.extend());index.coffee https://bitbucket.org/laurenceputra/codegether.git | CoffeeScript | 115 lines
19 20 App.User.collection = Backbone.Collection.extend 21 model: App.User.model 46 $el.html(@template data) 47 App.Message.collection = Backbone.Collection.extend 48 model: App.Message.modelApp.js https://bitbucket.org/farmas/coding-katas.git | JavaScript | 53 lines
16 17var IssueCollection = Backbone.Collection.extend({ 18 model: IssueApp.js https://bitbucket.org/farmas/coding-katas.git | JavaScript | 70 lines
28 29 var IssueCollection = Backbone.Collection.extend({ 30 model: IssueRaceEvent.js https://bitbucket.org/taxilian/racecontrol5.git | JavaScript | 60 lines
36 37 RaceEvents = Backbone.Collection.extend({ 38 model: RaceEvent,app.js https://bitbucket.org/jszynal/gnw.git | JavaScript | 183 lines
49 50GNWApp.collections.Policies = Backbone.Collection.extend({ 51 model: GNWApp.models.Policyweather.js https://bitbucket.org/farmas/farmas-sandbox.git | JavaScript | 256 lines
211 212 var CityCollection = Backbone.Collection.extend({ 213 model: Citycart.js https://bitbucket.org/homanchou/backbone_cart.git | JavaScript | 62 lines
32 33LineItems = Backbone.Collection.extend({}); 34trello_calendar.js https://bitbucket.org/mendisahsp/trello-calendar.git | JavaScript | 177 lines
22 */ 23App.collection.Cards = Backbone.Collection.extend({}); 24 32 */ 33App.collection.Boards = Backbone.Collection.extend({}); 34models.js https://bitbucket.org/caret/timetables-2.git | JavaScript | 257 lines
52 53 var Classifiers = Backbone.Collection.extend({ 54 constructor: function Classifiers() { 106 107 var ClassifierGroups = Backbone.Collection.extend({ 108 constructor: function ClassifierGroups() {Node.js https://bitbucket.org/juliand89/firewall-game.git | JavaScript | 39 lines
36 37Nodes = Backbone.Collection.extend({ 38 model: Nodegamefield.module.js https://bitbucket.org/Fenchurch/isoel.git | JavaScript | 311 lines
28 29var gamefield = Backbone.Collection.extend({ 30 description: "gamefield - holds objects we draw on the canvas",app.js https://bitbucket.org/tariel/contacts.git | JavaScript | 208 lines
29 // Define directory collection 30 var Directory = Backbone.Collection.extend({ 31 model: Contactmeshes.js https://bitbucket.org/Fenchurch/isoel.git | JavaScript | 78 lines
10], function($, _, Backbone, three, materials, geometries){ 11 var entity = Backbone.Collection.extend({ 12 sprites: {mytags.js https://bitbucket.org/bobyuxinyang/letsgaoqi.git | JavaScript | 58 lines
4 5 window.Mytags = Backbone.Collection.extend({ 6 model: mytag,materials.js https://bitbucket.org/Fenchurch/isoel.git | JavaScript | 110 lines
14 15 var entity = Backbone.Collection.extend({ 16app.js https://bitbucket.org/chiefwhitecloud/runningman-ui.git | JavaScript | 331 lines
6 7window.RunnerCollection = Backbone.Collection.extend({ 8 model: Runner, 11 12window.RaceCollection = Backbone.Collection.extend({ 13 initialize: function(models, options) { 26 27window.RunnerResultsCollection = Backbone.Collection.extend({ 28 initialize: function(models, options) { 40 41window.RaceResultsCollection = Backbone.Collection.extend({ 42 initialize: function(models, options) {ui.module.js https://bitbucket.org/Fenchurch/isoel.git | JavaScript | 109 lines
19], function($, _, Backbone, SplashView, endView, targetView, UiBasicView, targetmarkModel){ 20 var module = Backbone.Collection.extend({ 21 views: new Backbone.Collection(),participatorlist.js https://bitbucket.org/bobyuxinyang/letsgaoqi.git | JavaScript | 39 lines
4 5 window.ParticipatorList = Backbone.Collection.extend({ 6 model: Participator,map.js https://bitbucket.org/Fenchurch/isoel.git | JavaScript | 40 lines
12 13 var entity = Backbone.Collection.extend({ 14 model:planetModel,map.module.js https://bitbucket.org/Fenchurch/isoel.git | JavaScript | 172 lines
10 11exports.map = Backbone.Collection.extend({ 12 name:"map MODULE",TestPacket.js https://bitbucket.org/juliand89/firewall-game.git | JavaScript | 25 lines
22 23var TestPackets = Backbone.Collection.extend({ 24 model: TestPacketRuleList.js https://bitbucket.org/juliand89/firewall-game.git | JavaScript | 31 lines
1var RuleList = Backbone.Collection.extend({ 2 model: Rule,admin.js https://bitbucket.org/sampepose/stl-food-rescue.git | JavaScript | 294 lines
33 34var FoodRunCollection = Backbone.Collection.extend({ 35 model:FoodRunModel, 54 55var VolunteerCollection = Backbone.Collection.extend({ 56 model:VolunteerModel,friends-tags.js https://bitbucket.org/bobyuxinyang/letsgaoqi.git | JavaScript | 94 lines
4 5 window.FriendsTags = Backbone.Collection.extend({ 6 initialize: function () {activity-tags.js https://bitbucket.org/bobyuxinyang/letsgaoqi.git | JavaScript | 54 lines
4 5 window.activity_tags = Backbone.Collection.extend({ 6 model: activity_tag,pieces.js https://bitbucket.org/jawa/chess.git | JavaScript | 43 lines
3 function (Backbone, Chessman, ChessmanView) { 4 var Pieces = Backbone.Collection.extend({ 5 model: Chessman,global.js https://bitbucket.org/chepy/iosappcatcher.git | JavaScript | 160 lines
70 */ 71 var AppInfoCollection = Backbone.Collection.extend({ 72 model: AppInfoModelmodels.js https://bitbucket.org/caret/timetables-2.git | JavaScript | 166 lines
22 23 var Organisations = Backbone.Collection.extend({ 24 constructor: function Organisations() { 52 53 var Years = Backbone.Collection.extend({ 54 constructor: function Years() {progressive-data-set.js https://bitbucket.org/atlassian/aui.git | JavaScript | 225 lines
6 7AJS.ProgressiveDataSet = Backbone.Collection.extend( 8/** @lends AJS.ProgressiveDataSet.prototype */combine.js https://bitbucket.org/mattijs/sourceboard.git | JavaScript | 162 lines
128// Collection for storing Action Models 129var ActionsCollection = Backbone.Collection.extend({ 130 model: ActionModel,answer.coffee https://bitbucket.org/pierroweb/learn-addict.git | CoffeeScript | 72 lines
69 70exports.AnswerList = Backbone.Collection.extend(model: SS.client.answer.Answer) 71post_list.js https://bitbucket.org/NickyHuang5293/ulip.git | JavaScript | 485 lines
51 52 window.Comments = Backbone.Collection.extend({ 53 model: Comment,app.js https://bitbucket.org/rmanalan/tenyears-instagram.git | JavaScript | 148 lines
1var StreamCollection = Backbone.Collection.extend({ 2 stream: function(options) {track_search_results.js https://bitbucket.org/olivernn/scpl.git | JavaScript | 27 lines
6 // will hold a colleciton of tracks representing the search results from the soundcloud api. 7 return backbone.Collection.extend({ 8 model: Track,deal.js https://bitbucket.org/leenasn/local_biz_finder.git | JavaScript | 95 lines
12 13 window.DealList = Backbone.Collection.extend({ 14vehiclepass_search_collections.js https://bitbucket.org/uris77/cfz-www.git | JavaScript | 32 lines
8 VehiclePassModule = vehiclePassModule.VehiclePassModule; 9 VehiclePassModule.VehiclepassSearchCollection = Backbone.Collection.extend({ 10 url: function(){comment.coffee https://bitbucket.org/pierroweb/learn-addict.git | CoffeeScript | 51 lines
49 50exports.CommentList = Backbone.Collection.extend(model: Comment) 51ingredients.js https://bitbucket.org/trentonstrong/beautysafe-web.git | JavaScript | 88 lines
8 9bs.IngredientSearchResultsCollection = Backbone.Collection.extend({ 10 url: '/api/ingredients/search/',my.js https://bitbucket.org/koalaKaravan/gigabrausr.git | JavaScript | 54 lines
6 7var MyThings = Backbone.Collection.extend({ 8 url: '/backliftapp/mythings',todos.js https://bitbucket.org/asivura/todos.git | JavaScript | 41 lines
7 8 var TodosCollection = Backbone.Collection.extend({ 9