Fix isotope
This commit is contained in:
parent
e4b283b83e
commit
c7fcab5590
|
@ -3,12 +3,6 @@
|
||||||
import Isotope from 'isotope-layout/dist/isotope.pkgd.js'
|
import Isotope from 'isotope-layout/dist/isotope.pkgd.js'
|
||||||
import onmount from 'onmount'
|
import onmount from 'onmount'
|
||||||
|
|
||||||
/*
|
|
||||||
* Ensure that main-body is evaluated first
|
|
||||||
*/
|
|
||||||
|
|
||||||
import './main-body'
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Behavior: Isotope
|
* Behavior: Isotope
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
import wrapify from '../wrapify'
|
|
||||||
import ready from 'dom101/ready'
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Behavior: Wrapping
|
|
||||||
*/
|
|
||||||
|
|
||||||
ready(() => {
|
|
||||||
const body = document.querySelector('[data-js-main-body]')
|
|
||||||
if (body) wrapify(body)
|
|
||||||
})
|
|
|
@ -1,4 +1,14 @@
|
||||||
|
import wrapify from '../wrapify'
|
||||||
import ready from 'dom101/ready'
|
import ready from 'dom101/ready'
|
||||||
import onmount from 'onmount'
|
import onmount from 'onmount'
|
||||||
|
|
||||||
ready(() => { onmount() })
|
/**
|
||||||
|
* Behavior: Wrapping
|
||||||
|
*/
|
||||||
|
|
||||||
|
ready(() => {
|
||||||
|
const body = document.querySelector('[data-js-main-body]')
|
||||||
|
if (!body) return
|
||||||
|
wrapify(body)
|
||||||
|
setTimeout(() => { onmount() })
|
||||||
|
})
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue