Comparing version 3.1.0-pre.13 to 3.1.0-pre.14
@@ -801,6 +801,6 @@ /* jshint -W079 */ | ||
each(arguments, function(arg) { | ||
if(types.isListLike(arg) || Array.isArray(arg)) { | ||
if((canReflect.isObservableLike(arg) && canReflect.isListLike(arg)) || Array.isArray(arg)) { | ||
// If it is list-like we want convert to a JS array then | ||
// pass each item of the array to serializeNonTypes | ||
var arr = types.isListLike(arg) ? makeArray(arg) : arg; | ||
var arr = (canReflect.isObservableLike(arg) && canReflect.isListLike(arg)) ? makeArray(arg) : arg; | ||
each(arr, function(innerArg) { | ||
@@ -961,8 +961,2 @@ serializeNonTypes(MapType, innerArg, args); | ||
// specify the type | ||
var oldIsListLike = types.isListLike; | ||
types.isListLike = function(obj){ | ||
return obj instanceof List || oldIsListLike.apply(this, arguments); | ||
}; | ||
// change some map stuff to include list stuff | ||
@@ -969,0 +963,0 @@ var oldType = Map.prototype.__type; |
{ | ||
"name": "can-list", | ||
"version": "3.1.0-pre.13", | ||
"version": "3.1.0-pre.14", | ||
"description": "Observable lists", | ||
@@ -5,0 +5,0 @@ "homepage": "http://canjs.com", |
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
75244
1446