export default {
  functional: true,

  props: {
    light: {
      type: Boolean,
      default: true
    },
    dark: Boolean,
    id: {
      type: String,
      default: 'app'
    }
  },

  render (h, { props, data, children }) {
    data.staticClass = data.staticClass ? `application ${data.staticClass} ` : 'application '

    const classes = {
      'application--dark': props.dark,
      'application--light': props.light && !props.dark
    }

    data.staticClass += Object.keys(classes).filter(k => classes[k]).join(' ')

    const toolbar = children.find(c => c.tag === 'nav')
    const footer = children.find(c => c.tag === 'footer')

    if (toolbar) data.staticClass += ' application--toolbar'
    if (footer) {
      data.staticClass += ' application--footer'

      if (footer.data && footer.data.staticClass.indexOf('--fixed') !== -1 ||
        footer.data.staticClass.indexOf('--absolute') !== -1
      ) data.staticClass += ' application--footer-fixed'
    }

    data.attrs = { 'data-app': true }
    data.domProps = { id: props.id }

    return h('div', data, children)
  }
}

@@ -793,16 +793,28 @@
 .data &&
+ (%0A         
  footer.
@@ -859,32 +859,34 @@
 = -1 %7C%7C%0A        
+  
 footer.data.stat
@@ -922,16 +922,26 @@
  !== -1%0A
+        )%0A
       ) 

fix onen more small bug