Paste number 58855: Borked find_attr

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:
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.