Perform strict presence testing on attribute vals

When initializing an Attribute object, the 'vals' option field was being
loosely tested for content presence.  By changing this test to a strict
comparison against undefined, Attribute object creation will be more
consistent across input values.

Fix mcavage/node-ldapjs#178
This commit is contained in:
Patrick Mooney 2014-05-11 20:38:37 -05:00
parent 4fb97a86b0
commit 8f1eb06ffa
1 changed files with 1 additions and 1 deletions

View File

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