Remove unneccessary type conversion

This commit is contained in:
Jakob Gillich 2013-11-22 17:21:25 +01:00
parent 1c5a811760
commit 184d77156a

View File

@ -12,8 +12,8 @@
parse: function (resp) {
if (resp.status) {
resp.published = !!(resp.status === 'published');
resp.draft = !!(resp.status === 'draft');
resp.published = resp.status === 'published';
resp.draft = resp.status === 'draft';
}
if (resp.tags) {
// TODO: parse tags into it's own collection on the model (this.tags)