first commit
This commit is contained in:
8
node_modules/lit-html/node/directives/guard.js
generated
vendored
Normal file
8
node_modules/lit-html/node/directives/guard.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
import{noChange as r}from"../lit-html.js";import{directive as t,Directive as s}from"../directive.js";
|
||||
/**
|
||||
* @license
|
||||
* Copyright 2018 Google LLC
|
||||
* SPDX-License-Identifier: BSD-3-Clause
|
||||
*/
|
||||
const e={},i=t(class extends s{constructor(){super(...arguments),this.st=e}render(r,t){return t()}update(t,[s,e]){if(Array.isArray(s)){if(Array.isArray(this.st)&&this.st.length===s.length&&s.every(((r,t)=>r===this.st[t])))return r}else if(this.st===s)return r;return this.st=Array.isArray(s)?Array.from(s):s,this.render(s,e)}});export{i as guard};
|
||||
//# sourceMappingURL=guard.js.map
|
Reference in New Issue
Block a user