From 6c108a2e1302b1d89620a4cee68b9c1c54453e21 Mon Sep 17 00:00:00 2001 From: Helen Liu Date: Mon, 11 Dec 2017 14:36:28 -0800 Subject: [PATCH] declare key as a var so it complies with strict mode --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 6ce47c6..9e7aa28 100644 --- a/index.js +++ b/index.js @@ -59,7 +59,7 @@ module.exports = (function(doc, win) { } function mergeObjects(targetObj, sourceObject) { - for (key in sourceObject) { + for (var key in sourceObject) { if (sourceObject.hasOwnProperty(key)) { targetObj[key] = sourceObject[key]; }