overleaf/services/web/public/coffee/models/Doc.coffee
2014-02-12 10:23:40 +00:00

11 lines
207 B
CoffeeScript

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