mirror of
https://github.com/overleaf/overleaf.git
synced 2024-10-31 21:21:03 -04:00
12 lines
244 B
CoffeeScript
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
|