Artifact Content
Artifact 2a79f0af88d9003397406ed362b1afe7cca5e791c7534857b0d7e5212eb2587f:
- File public/riot-3.13.2/lib/browser/common/util/dom/$.js — part of check-in [12a9bb700d] at 2021-08-11 18:56:04 on branch trunk — Import from git Added a changelog (user: dev size: 339)
/** * Shorter and fast way to select a single node in the DOM * @param { String } selector - unique dom selector * @param { Object } ctx - DOM node where the target of our search will is located * @returns { Object } dom node found */ export default function $(selector, ctx) { return (ctx || document).querySelector(selector) }