tree.find('li') .each(function() { $(this) .prepend('
') .find('.addButton') .click(addDeviceAsMemberButtonClickHandler) .mousedown(_app.stopPropagation); });