Fix the forEach closure

This commit is contained in:
Raymond Feng 2014-06-06 09:59:57 -07:00
parent 9a03450e76
commit 6e8034ff93
1 changed files with 1 additions and 1 deletions

View File

@ -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);