fix global leak that mocha complains
Signed-off-by: Clark Wang <clark.wangs@gmail.com>
This commit is contained in:
parent
a27047a966
commit
b993fb9466
|
@ -2407,7 +2407,7 @@ DataAccessObject.prototype.updateAttributes = function updateAttributes(data, op
|
||||||
if (strict && !allowExtendedOperators) {
|
if (strict && !allowExtendedOperators) {
|
||||||
var props = Model.definition.properties;
|
var props = Model.definition.properties;
|
||||||
var keys = Object.keys(data);
|
var keys = Object.keys(data);
|
||||||
var result = {};
|
var result = {}, key;
|
||||||
for (var i = 0; i < keys.length; i++) {
|
for (var i = 0; i < keys.length; i++) {
|
||||||
key = keys[i];
|
key = keys[i];
|
||||||
if (props[key]) {
|
if (props[key]) {
|
||||||
|
|
Loading…
Reference in New Issue