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:
Patrick Mooney 2014-06-23 13:37:35 -05:00
parent ebbc3830e3
commit f3e376d40b
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function Attribute(options) {
};
});
if (options.vals !== undefined)
if (options.vals !== undefined && options.vals !== null)
this.vals = options.vals;
}