Comparing version 2.0.2 to 2.0.3
@@ -14,3 +14,8 @@ var Adapter; | ||
Adapter.id = function(model) { | ||
return "" + (this.get(model, 'id')); | ||
var id; | ||
id = this.get(model, 'id'); | ||
if (id === void 0) { | ||
return id; | ||
} | ||
return "" + id; | ||
}; | ||
@@ -17,0 +22,0 @@ |
@@ -156,2 +156,5 @@ module.exports = function(utils, adapter) { | ||
}; | ||
if (model.id === void 0) { | ||
delete model.id; | ||
} | ||
relationships = this.buildRelationships(instance); | ||
@@ -158,0 +161,0 @@ if (relationships != null) { |
{ | ||
"name": "yayson", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "A library for serializing and reading JSON API standardized data in JavaScript.", | ||
@@ -5,0 +5,0 @@ "main": "lib/yayson.js", |
30606
644