backbone-publication
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -225,3 +225,3 @@ import _ from 'underscore'; | ||
_.each(clone, function (v, k) { | ||
if (_.isObject(v)) { | ||
if (lodash_isplainobject(v)) { | ||
clone[k] = ObjectUtils.deepClone(v); | ||
@@ -340,5 +340,3 @@ } | ||
* stored on the model). */ | ||
var allChangesAreObjects = _.every(changedAttributes, function (v) { | ||
return _.isObject(v); | ||
}); | ||
var allChangesAreObjects = _.every(changedAttributes, ObjectUtils.isPlainObject); | ||
var standardOpts = _.extend({}, options, { silent: allChangesAreObjects }); | ||
@@ -354,3 +352,3 @@ if (options.unset) { | ||
_.each(changedAttributes, function (value, key, attributes) { | ||
if (_.isObject(value)) _this.trigger('change:' + key, _this, attributes[key], options); | ||
if (ObjectUtils.isPlainObject(value)) _this.trigger('change:' + key, _this, attributes[key], options); | ||
}); | ||
@@ -357,0 +355,0 @@ |
{ | ||
"name": "backbone-publication", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "Supports backbone classes backed by `publication-client` reactive queries.", | ||
@@ -5,0 +5,0 @@ "main": "dist/browser/index.js", |
@@ -38,2 +38,3 @@ # backbone-publication | ||
### Changelog | ||
* 1.0.9 - Fixed another instance of object instances were considered plain objects. Replaced all `_.isObject` usages for `isPlainObject` | ||
* 1.0.8 - Fixed issue where object instances were considered plain objects. | ||
@@ -40,0 +41,0 @@ * 1.0.7 - Fixed incorrect function call in `PublicationModel.setReactiveQuery`. |
@@ -86,3 +86,3 @@ import _ from 'underscore'; | ||
* stored on the model). */ | ||
var allChangesAreObjects = _.every(changedAttributes, v => _.isObject(v)); | ||
var allChangesAreObjects = _.every(changedAttributes, ObjectUtils.isPlainObject); | ||
var standardOpts = _.extend({}, options, { silent: allChangesAreObjects }); | ||
@@ -98,3 +98,3 @@ if (options.unset) { | ||
_.each(changedAttributes, (value, key, attributes) => { | ||
if (_.isObject(value)) this.trigger('change:' + key, this, attributes[key], options); | ||
if (ObjectUtils.isPlainObject(value)) this.trigger('change:' + key, this, attributes[key], options); | ||
}); | ||
@@ -101,0 +101,0 @@ |
@@ -86,3 +86,3 @@ import _ from 'underscore'; | ||
_.each(clone, (v,k) => { | ||
if (_.isObject(v)) { | ||
if (isPlainObject(v)) { | ||
clone[k] = ObjectUtils.deepClone(v); | ||
@@ -89,0 +89,0 @@ } |
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
36773
48
850