Paste number 58855: Borked find_attr

Paste number 58855: Borked find_attr
Pasted by: djfiander
7 months, 3 weeks ago
#openils-evergreen | Context in IRC logs
Paste contents:
Raw Source | XML | Display As
    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.

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.