/examples/websocket/scripts/app/client-collection.js
http://skeleton.googlecode.com/ · JavaScript · 36 lines · 21 code · 11 blank · 4 comment · 0 complexity · 9573f1b0a08ae1e00122f41dc767efbb MD5 · raw file
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- $(function(){
- window.Client = Backbone.Model.extend({
-
- });
- window.ClientList = Backbone.Collection.extend({
- model: Client
- });
- window.ClientView = Backbone.View.extend({
- tagName: 'li',
- template: _.template($('#client-template').html()),
- events: {
- 'dblclick li.client' : 'edit'
- },
- initialize: function () {
- _.bindAll(this, 'render', 'close');
- this.model.bind('change', this.render);
- this.model.view = this;
- },
- setName: function () {
-
- }
- })
- })