I hereby claim:
- I am triniMahn on github.
- I am trinimahn (https://keybase.io/trinimahn) on keybase.
- I have a public key whose fingerprint is 637B D6DD E483 ED3E 3C01 50C0 21ED CFD3 9174 936A
To claim this, I am signing this object:
| class window.CompositeModel extends Backbone.Model | |
| #override the Backbone.Model constructor -- setting up our CompositeBin, and then | |
| #allow Backbone.Model to run its constructor | |
| constructor: (attributes, options)-> | |
| @__ = new CompositeBin(options) | |
| Backbone.Model.apply(@, arguments) | |
| #When your Shui ain't Funging, homes | |
| Backbone.SF = {} |
| describe 'Auto model instances with a CompositeBin which', -> | |
| beforeEach -> | |
| @fuelInjector = new FuelInjector() | |
| @engine = new Engine {}, FuelInjector: @fuelInjector | |
| @auto = new Automobile | |
| modelName: 'Ford' | |
| , |
| class window.Automobile extends Backbone.SF.CompositeModel | |
| initialize: (attributes,options)-> | |
| defaults: | |
| modelName: null | |
| startEngine: => | |
| @__.Engine.start() | |
| window.TodoMVC = new Backbone.Marionette.Application() | |
| window.app = {} | |
| window.app.collections = {} | |
| TodoMVC.addRegions | |
| header: '#header' | |
| main: '#main' | |
| footer: '#footer' | |
| filters: '#filters' | |
| class window.Todo extends Backbone.Model | |
| #You can use this to test the (client-side) app logic if you're having issues with BackboneORM to start | |
| #localStorage: new Backbone.LocalStorage('todos-backbone-marionettejs') | |
| urlRoot: '/todos' | |
| #Use backbone-http to communicate with your server -- overriding the model sync method here | |
| sync: BackboneHTTP.sync(Todo) |
| searchArchivedByDate: => | |
| dateFrom = Date.parse(@ui.dateFrom.val()) | |
| dateTo = Date.parse(@ui.dateTo.val()) | |
| Todo.find {archived: true, created: {$gte: dateFrom.valueOf(), $lt: dateTo.valueOf()}}, (err,todos)-> | |
| console.log(err) if err | |
| app.collections.tds.reset(todos or []) |
| Backbone = require 'backbone' | |
| RestController = require 'backbone-rest' | |
| AppSettings = require('./_config') | |
| class Todo extends Backbone.Model | |
| urlRoot: "mongodb://#{AppSettings.DB.cnnString}/Todos" | |
| sync: require('backbone-mongo').sync(Todo) | |
| defaults: | |
| title: '' |
I hereby claim:
To claim this, I am signing this object:
| var DocumentRow = Backbone.View.extend({ | |
| tagName: "li", | |
| className: "document-row", | |
| events: { | |
| "click .icon": "open", | |
| "click .button.edit": "openEditDialog", | |
| "click .button.delete": "destroy" |
| class DocumentRow extends Backbone.View | |
| tagName: "li" | |
| className: "document-row" | |
| events: | |
| "click .icon": "open" | |
| "click .button.edit": "openEditDialog" | |
| "click .button.delete": "destroy" |