| Paste number 58855: | Borked find_attr |
| Pasted by: | djfiander |
| When: | 1 year, 2 months ago |
| Share: | Tweet this! | http://paste.lisp.org/+19EV |
| Channel: | #openils-evergreen |
| Paste contents: |
openils.acq.Picklist.find_attr = function(li, at_name, at_type) {
for (var attr in li.attributes()) {
if (attr.attr_type() == at_type && attr.attr_name == at_name) {
return attr.attr_value();
}
}
return '';
};
This paste has no annotations.