up.fragment.first([root], selector, [options])
JavaScript function
This feature has been deprecated. Use up.fragment.get() instead.
Load unpoly-migrate.js
to polyfill deprecated features.
Returns the first element matching the given selector, but ignores elements that are being destroyed or that are being removed by a transition.
Returns undefined if no element matches these conditions.
Parameters
[root=document]
selector
required
The selector to match
Type: string
[options.layer='current']
[options.origin]
Return value
The first element that is not being destroyed,
or undefined if no such element was found.
Type: Element | undefined