overleaf/services/web/public/coffee/models/Doc.coffee
2014-06-06 14:43:45 +01:00

12 lines
244 B
CoffeeScript

define [
"libs/backbone"
], () ->
Doc = Backbone.Model.extend
initialize: () ->
@set("type", "doc")
parse: (rawAttributes) ->
attributes =
id: rawAttributes._id
name: rawAttributes.name
deleted: !!rawAttributes.deleted