Upd memory adapter to work with undefined in dataset

This commit is contained in:
Anatoliy Chakkaev 2013-03-25 01:28:08 +04:00
parent 2fa07e8e1d
commit b59fb01b4a
1 changed files with 2 additions and 0 deletions

View File

@ -130,6 +130,8 @@ function applyFilter(filter) {
if (typeof value === 'string' && example && example.constructor.name === 'RegExp') {
return value.match(example);
}
if (typeof example === 'undefined') return undefined;
if (typeof value === 'undefined') return undefined;
// not strict equality
return (example !== null ? example.toString() : example) == (value !== null ? value.toString() : value);
}