can-connect
Advanced tools
Comparing version 1.5.2 to 1.5.3
@@ -330,12 +330,7 @@ "use strict"; | ||
if(props && typeof props === 'object') { | ||
if("set" in instance) { | ||
instance.set(isFunction(props.get) ? props.get() : props, this.constructor.removeAttr || false); | ||
} else if("attr" in instance) { | ||
instance.attr(isFunction(props.attr) ? props.attr() : props, this.constructor.removeAttr || false); | ||
if(this.constructor.removeAttr) { | ||
canReflect.updateDeep(instance, props); | ||
} else { | ||
canBatch.start(); | ||
each(props, function(value, prop){ | ||
instance[prop] = value; | ||
}); | ||
canBatch.stop(); | ||
canReflect.assignDeep(instance, props); | ||
} | ||
@@ -342,0 +337,0 @@ } |
{ | ||
"name": "can-connect", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Data connection middleware and utilities", | ||
@@ -16,3 +16,3 @@ "main": "can-connect.js", | ||
"can-observation": "^3.2.0", | ||
"can-reflect": "^1.0.0", | ||
"can-reflect": "^1.2.0", | ||
"can-set": "^1.3.0", | ||
@@ -19,0 +19,0 @@ "can-stache": "^3.1.0", |
507871
146
13359
Updatedcan-reflect@^1.2.0