From f3e376d40b0ef751c718c118dd825347403d5d4c Mon Sep 17 00:00:00 2001 From: Patrick Mooney Date: Mon, 23 Jun 2014 13:37:35 -0500 Subject: [PATCH] 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. --- lib/attribute.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/attribute.js b/lib/attribute.js index 4881c3d..02be8a5 100644 --- a/lib/attribute.js +++ b/lib/attribute.js @@ -76,7 +76,7 @@ function Attribute(options) { }; }); - if (options.vals !== undefined) + if (options.vals !== undefined && options.vals !== null) this.vals = options.vals; }