@mixd-id/web-scaffold 0.1.230406141 → 0.1.230406143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mixd-id/web-scaffold",
3
3
  "private": false,
4
- "version": "0.1.230406141",
4
+ "version": "0.1.230406143",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -187,7 +187,7 @@ export default{
187
187
  },
188
188
 
189
189
  $route(to, from){
190
- if(from.href !== to.href && !to.hash){
190
+ if(from.path !== to.path && !to.hash){
191
191
  let overlay = document.querySelector('.bW9k')
192
192
  if(overlay && overlay.classList.contains('bW9l'))
193
193
  overlay.classList.remove('bW9l')
@@ -267,14 +267,17 @@ function observeInit(){
267
267
 
268
268
  const item = entry.target
269
269
  const key = item.__observeKey
270
- const { type, callback } = observeCols[key]
271
270
 
272
- if(typeof callback === 'function')
273
- callback.apply(item)
271
+ if(observeCols[key]){
272
+ const { type, callback } = observeCols[key]
274
273
 
275
- if(type === 'once'){
276
- observer.unobserve(item)
277
- delete observeCols[key]
274
+ if(typeof callback === 'function')
275
+ callback.apply(item)
276
+
277
+ if(type === 'once'){
278
+ observer.unobserve(item)
279
+ delete observeCols[key]
280
+ }
278
281
  }
279
282
  })
280
283
  }