I'm using the InfiniteScroll jQuery plugin to add items to my page when scrolling to the bottom of the page. This works fine, except for the contextual links. They are processed on a page load, but they don't detect new items. Can we use live() here?
Drupal.behaviors.contextualLinks = {
attach: function (context) {
$('div.contextual-links-wrapper', context).once('contextual-links', function () {
// Added just once, sad puppy.
});
}
};