Closed weshardee closed 9 years ago
Since the validate function operates on arrays inside the options object, a deep copy is needed to ensure consistent behavior when the function is called with the same options object multiple times.
My bad. That was sloppy of me. I've added a check to make sure opts is defined before doing the deep copy.
opts
Since the validate function operates on arrays inside the options object, a deep copy is needed to ensure consistent behavior when the function is called with the same options object multiple times.