Comparing version 0.1.4 to 0.1.5
@@ -7,3 +7,8 @@ (function(){ | ||
// namespace. Exported for both CommonJS and the browser. | ||
var Capsule, Backbone, _, uuid, server = false; | ||
var Capsule, | ||
server = false, | ||
Backbone, | ||
_, | ||
uuid; | ||
if (typeof exports !== 'undefined') { | ||
@@ -18,2 +23,3 @@ Backbone = require('backbone'); | ||
_ = this._; | ||
Capsule = this.Capsule || (this.Capsule = {}); | ||
@@ -165,4 +171,4 @@ } | ||
_.each(collection.models, function (modelData, index) { | ||
var newObj = targetObj[name]._add({}, {silent: silent}); | ||
process(newObj, modelData); | ||
var nextObject = targetObj[name].get(modelData.attrs.id) || targetObj[name]._add({}, {silent: silent}); | ||
process(nextObject, modelData); | ||
}); | ||
@@ -275,3 +281,3 @@ }); | ||
// Our server version of the normal `set` method. Takes a hash of attributes | ||
setServer: function(attrs, options) { | ||
setServer: function(attrs) { | ||
socket.send({ | ||
@@ -278,0 +284,0 @@ event: 'set', |
{ | ||
"name": "capsule", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"homepage": "https://github.com/andyet/Capsule", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
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
144875
9
879