Fix the forEach closure
This commit is contained in:
parent
9a03450e76
commit
6e8034ff93
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue