Returns a selection object that lazily represents a method with the name within the treespace element (or document).
Invoking [call]AttrSelector#get will call the corresponding method on the
element selected with the key argument.
This is used as the target of the proxy object returned by method
Example
import { MethodSelector } from'deleight/proxy/selector'; document.body.innerHTML = ` <div>I am a div</div> <p>I am a paragraph</p> <section>I am a section</section> <article>I am an article</article> `; constslct = newMethodSelector('remove', document.body); slct.call('section'); console.log(document.querySelector('section')); // null
Returns a selection object that lazily represents a method with the name within the
treespace
element (or document). Invoking [call]AttrSelector#get will call the corresponding method on the element selected with thekey
argument.This is used as the target of the proxy object returned by method
Example