Skip to content
Snippets Groups Projects
Commit 4f06a324 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Remove VPULitElement/VPULitElementJQuery

We should try to avoid changing the DOM directly and these helpers go against that.
They both just add two lines of code which we can just copy around if needed.
parent c4928eff
No related branches found
No related tags found
No related merge requests found
import VPULitElement from "./vpu-lit-element";
import $ from "jquery";
export default class VPULitElementJQuery extends VPULitElement {
$(selector) {
return $(this._(selector));
}
}
import {LitElement} from "lit-element";
export default class VPULitElement extends LitElement {
_(selector) {
return this.shadowRoot === null ? this.querySelector(selector) : this.shadowRoot.querySelector(selector);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment