@mixd-id/web-scaffold 0.1.230406136 → 0.1.230406137

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.230406136",
4
+ "version": "0.1.230406137",
5
5
  "scripts": {
6
6
  "dev": "vite serve",
7
7
  "build": "vite build",
@@ -109,6 +109,7 @@ export default{
109
109
  },
110
110
 
111
111
  unmounted() {
112
+ this.$observe.unregister(this.$el)
112
113
  this.$unresize(this.onResize)
113
114
  },
114
115
 
@@ -259,6 +260,7 @@ export default{
259
260
  watch:{
260
261
 
261
262
  src(to){
263
+ this.mediaSrc = {}
262
264
  this.loadSrc()
263
265
  },
264
266
 
package/src/index.js CHANGED
@@ -277,7 +277,6 @@ export default{
277
277
  const onWindowResize = throttle(() => {
278
278
  app.config.globalProperties.$screenPrefix = util.calculateMediaPrefix(window.innerWidth)
279
279
  resizeEvents.forEach((fn) => fn())
280
- console.log('1')
281
280
  }, 500, { leading:true })
282
281
 
283
282
  window.addEventListener('resize', onWindowResize)
@@ -281,8 +281,7 @@ function observeInit(){
281
281
 
282
282
  const observeCols = {}
283
283
 
284
- const once = function(el, callback)
285
- {
284
+ const once = function(el, callback){
286
285
  if(typeof el.__observeKey !== 'undefined') return
287
286
 
288
287
  intersectionObserver.observe(el)
@@ -292,8 +291,7 @@ function observeInit(){
292
291
  el.__observeKey = key
293
292
  }
294
293
 
295
- const always = function(el, callback)
296
- {
294
+ const always = function(el, callback){
297
295
  if(typeof el.__observeKey !== 'undefined') return
298
296
 
299
297
  intersectionObserver.observe(el)