diff --git a/src/picker/components/Picker/framework.js b/src/picker/components/Picker/framework.js index 367de4f..53c0b57 100644 --- a/src/picker/components/Picker/framework.js +++ b/src/picker/components/Picker/framework.js @@ -2,6 +2,7 @@ import { getFromMap, parseTemplate, toString } from './utils.js' const parseCache = new WeakMap() const domInstancesCache = new WeakMap() +// This needs to be a symbol because it needs to be different from any possible output of a key function const unkeyedSymbol = Symbol('un-keyed') // for debugging @@ -201,8 +202,10 @@ function parse (tokens) { bindings.push(binding) - // add a placeholder comment that we can find later - htmlString += (!withinTag && !withinAttribute) ? `` : '' + if (!withinTag && !withinAttribute) { + // add a placeholder comment that we can find later + htmlString += `` + } } const template = parseTemplate(htmlString) diff --git a/src/picker/components/Picker/reactivity.js b/src/picker/components/Picker/reactivity.js index 61e1b65..a9b9fe8 100644 --- a/src/picker/components/Picker/reactivity.js +++ b/src/picker/components/Picker/reactivity.js @@ -38,7 +38,6 @@ export function createState (abortSignal) { const state = new Proxy({}, { get (target, prop) { - // console.log('reactivity: get', prop) if (currentObserver) { let observers = propsToObservers.get(prop) if (!observers) { @@ -50,7 +49,6 @@ export function createState (abortSignal) { return target[prop] }, set (target, prop, newValue) { - // console.log('reactivity: set', prop, newValue) target[prop] = newValue const observers = propsToObservers.get(prop) if (observers) {