baselinejs
Advanced tools
Comparing version 9.1.3 to 9.1.4
@@ -404,9 +404,12 @@ var _ = require( 'underscore' ); | ||
// make sure the attributes we end up storing are copies, in case | ||
// somebody is using the original newRecordDTOs. | ||
var recordIsNew = ! this._recordsById[ recordId ]; | ||
if( recordIsNew ) { | ||
if( ! this._recordsById[ recordId ] ) { | ||
this._recordsById[ recordId ] = {}; | ||
this._recordIds.push( recordId ); | ||
this.length++; | ||
} else { | ||
// if we are merging the record, then it is no longer "new", because the merge | ||
// is coming from some external source. or, so the theory goes. this allows | ||
// us to create endpoints that save and dump down records from multiple collections | ||
// without us having to go through and mark those records manually as not-new. | ||
this._newRecordIds = _.without( this._newRecordIds, recordId ); | ||
} | ||
@@ -413,0 +416,0 @@ |
{ | ||
"name": "baselinejs", | ||
"version": "9.1.3", | ||
"version": "9.1.4", | ||
"description": "Share code and data between the client and the server in full stack JavaScript applications.", | ||
@@ -5,0 +5,0 @@ "main": "baseline.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
118784
409