keyed.js 467 B

1234567
  1. import{nothing as r}from"../lit-html.js";import{directive as t,Directive as e}from"../directive.js";import{setCommittedValue as s}from"../directive-helpers.js";
  2. /**
  3. * @license
  4. * Copyright 2021 Google LLC
  5. * SPDX-License-Identifier: BSD-3-Clause
  6. */const i=t(class extends e{constructor(){super(...arguments),this.key=r}render(r,t){return this.key=r,t}update(r,[t,e]){return t!==this.key&&(s(r),this.key=t),e}});export{i as keyed};
  7. //# sourceMappingURL=keyed.js.map