LT-275 Implementing search for measure labels

This commit is contained in:
Bruno Alves de Faria committed 2016-08-08 10:47:57 -03:00
1 parent f5a64574cc
commit 9d8c039ffc
6 files changed
+100 -18

No files matched your search

+4 -2
View File
@@ -22,9 +22,11 @@ OHIF.string.search = (object, query, property=null, result=[]) => {
if (_.isString(value) && pattern.test(value)) {
// Add the current item to the result
result.push(item);
} else if (_.isObject(value)) {
}
if (_.isObject(item)) {
// Search recursively the item if the current item is an object
OHIF.string.search(value, query, property, result);
OHIF.string.search(item, query, property, result);
}
});