From 17eb7af474fe26d0f9ca3b98a24dfefa9ea3feb2 Mon Sep 17 00:00:00 2001 From: Tim Tucker Date: Wed, 20 Mar 2013 14:46:38 -0300 Subject: [PATCH] Don't need to get destination[key] type twice --- knockout.mapping.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knockout.mapping.js b/knockout.mapping.js index 2ac4a3d..be411a8 100644 --- a/knockout.mapping.js +++ b/knockout.mapping.js @@ -61,7 +61,7 @@ if (key && destination[key] && destType !== "array" && destType !== "string") { extendObject(destination[key], source[key]); } else { - var bothArrays = exports.getType(destination[key]) === "array" && exports.getType(source[key]) === "array"; + var bothArrays = destType === "array" && exports.getType(source[key]) === "array"; if (bothArrays) { destination[key] = unionArrays(destination[key], source[key]); } else {