client/js/models.js
changeset 45 37c9a17c3284
parent 37 db991a757015
child 52 e0f6f3c31150
equal deleted inserted replaced
43:90f6937c417e 45:37c9a17c3284
    86                 title: this.get("title"),
    86                 title: this.get("title"),
    87                 uri: this.get("uri"),
    87                 uri: this.get("uri"),
    88                 description: this.get("description"),
    88                 description: this.get("description"),
    89                 position: this.get("position"),
    89                 position: this.get("position"),
    90                 image: this.get("image"),
    90                 image: this.get("image"),
    91                 created_by: this.get("created_by").get("_id")
    91                 created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
    92             };
    92             };
    93         },
    93         },
    94     });
    94     });
    95     
    95     
    96     // EDGE
    96     // EDGE
   124             return {
   124             return {
   125                 _id: this.get("_id"),
   125                 _id: this.get("_id"),
   126                 title: this.get("title"),
   126                 title: this.get("title"),
   127                 uri: this.get("uri"),
   127                 uri: this.get("uri"),
   128                 description: this.get("description"),
   128                 description: this.get("description"),
   129                 from: this.get("from").get("_id"),
   129                 from: this.get("from") ? this.get("from").get("_id") : null,
   130                 to: this.get("to").get("_id"),
   130                 to: this.get("to") ? this.get("to").get("_id") : null,
   131                 created_by: this.get("created_by").get("_id"),
   131                 created_by: this.get("created_by") ? this.get("created_by").get("_id") : null
   132             };
   132             };
   133         },
   133         },
   134     });
   134     });
   135         
   135         
   136     // PROJECT
   136     // PROJECT