1// @open-wc/[email protected] downloaded from https://ga.jspm.io/npm:@open-wc/[email protected]/index.js 2 3const e=new WeakMap; 4/** Vefify if the Mixin was previously applyed 5 * @private 6 * @param {function} mixin Mixin being applyed 7 * @param {object} superClass Class receiving the new mixin 8 * @returns {boolean} 9 */function wasMixinPreviouslyApplied(t,i){let n=i;while(n){if(e.get(n)===t)return true;n=Object.getPrototypeOf(n)}return false} 10/** Apply each mixin in the chain to make sure they are not applied more than once to the final class. 11 * @export 12 * @param {function} mixin Mixin to be applyed 13 * @returns {object} Mixed class with mixin applied 14 */function dedupeMixin(t){return i=>{if(wasMixinPreviouslyApplied(t,i))return i;const n=t(i);e.set(n,t);return n}}export{dedupeMixin}; 15
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.