From 6e8034ff93faf0d81e318c96703f1e972f77faf3 Mon Sep 17 00:00:00 2001 From: Raymond Feng Date: Fri, 6 Jun 2014 09:59:57 -0700 Subject: [PATCH] Fix the forEach closure --- lib/jutil.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jutil.js b/lib/jutil.js index 68b0637b..c50e1f22 100644 --- a/lib/jutil.js +++ b/lib/jutil.js @@ -66,7 +66,7 @@ exports.mixin = function (newClass, mixinClass, options) { }; function mixInto(sourceScope, targetScope, options) { - Object.keys(sourceScope).forEach(function (propertyName, options) { + Object.keys(sourceScope).forEach(function (propertyName) { var targetPropertyExists = targetScope.hasOwnProperty(propertyName); var sourceProperty = Object.getOwnPropertyDescriptor(sourceScope, propertyName); var targetProperty = targetPropertyExists && Object.getOwnPropertyDescriptor(targetScope, propertyName);