Fix isotope

This commit is contained in:
Rico Sta. Cruz 2017-10-02 05:09:11 +08:00
parent e4b283b83e
commit c7fcab5590
No known key found for this signature in database
GPG Key ID: CAAD38AE2962619A
4 changed files with 14 additions and 21 deletions

View File

@ -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
*/ */

View File

@ -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)
})

View File

@ -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