Open lambdalisue opened 8 years ago
To solve #26. I create a 'global' helper which can register events globally like:
let s:events = {} function! s:events.initialize() abort call themis#log('Initialize') endfunction function! s:events.before() abort call themis#log('Before') endfunction function! s:events.before_each() abort call themis#log('Before each') endfunction function! s:events.after_each() abort call themis#log('After each') endfunction function! s:events.after() abort call themis#log('After') endfunction function! s:events.finalize() abort call themis#log('Finalize') endfunction " Register global event call themis#helper('global').with(s:events)
すいませんがちょっと保留させてください。インターフェースがちょっとしっくり来ない…(主に with)。
with
Oh. 了解しました。
ping
これ
call themis#helper('global').use(s:events)
とかだとシックリきたりします?w
To solve #26. I create a 'global' helper which can register events globally like: