(key: string, options: StorageOptions<T>)
| 192 | storageListeners.forEach((key) => removeStorageListenerByKey(key)); |
| 193 | } |
| 194 | function getObserver(key: string, options: StorageOptions<T>): Function { |
| 195 | const fullOptions = { |
| 196 | defaultValue: options.defaultValue, |
| 197 | polymerProperty: key, |
| 198 | useLocalStorage: false, |
| 199 | ...options, |
| 200 | }; |
| 201 | return function () { |
| 202 | const uriStorageName = getURIStorageName(this, key); |
| 203 | const newVal = this[fullOptions.polymerProperty]; |
| 204 | set(uriStorageName, newVal, fullOptions); |
| 205 | }; |
| 206 | } |
| 207 | return {get, set, getInitializer, getObserver, disposeBinding}; |
| 208 | } |
| 209 | export function migrateLegacyURLScheme() { |
nothing calls this directly
no test coverage detected
searching dependent graphs…