Alter presence testing for Attribute vals
Ignoring a null 'vals' options while constructing a new Attribute object will more closely mimic the behavior prior to mcavage/node-ldapjs#178.
This commit is contained in:
parent
ebbc3830e3
commit
f3e376d40b
|
@ -76,7 +76,7 @@ function Attribute(options) {
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
||||||
if (options.vals !== undefined)
|
if (options.vals !== undefined && options.vals !== null)
|
||||||
this.vals = options.vals;
|
this.vals = options.vals;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue