Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (12 sloc) 369 Bytes
define (require, exports, module) ->
module.exports = Task
Spine = require "coffee/spineModule"
class Task extends Spine.Model
@configure "Task", "name", "done"
@extend Spine.Model.Local
@active: ->
@select (item) -> !item.done
@done: ->
@select (item) -> !!item.done
@destroyDone: ->
rec.destroy() for rec in @done()
Something went wrong with that request. Please try again.