isuke
2/13/2018 - 2:16 PM

vue.js test all

TestAll.install = (Vue, options) =>
  Vue.prototype.$testAll = () =>
    @test() if !_.isUndefined @test

    _.forEach @$children, (child) =>
      child.testAll()


Vue.use(TestAll)