.closest()

  • function
FuncUnit.prototype.closest  

closest()

Asynchronous version of jQuery's closest. Performs the exact same functionality as the jQuery method but adds itself to the queue.

// after the click, filter the collection, then wait for result to be visible
F(".foo").click().closest(".bar").visible();

Parameters

  1. selector {string}