fd14757c04
Expand the event system to have explicit Event objects and potentially many Notifiers. Previously they was only one notifier and one (implied) event. A lot of this is stolen from #358.
14 lines
383 B
VimL
14 lines
383 B
VimL
"CLASS: Event
|
|
"============================================================
|
|
let s:Event = {}
|
|
let g:NERDTreeEvent = s:Event
|
|
|
|
function! s:Event.New(nerdtree, subject, action, params) abort
|
|
let newObj = copy(self)
|
|
let newObj.nerdtree = a:nerdtree
|
|
let newObj.subject = a:subject
|
|
let newObj.action = a:action
|
|
let newObj.params = a:params
|
|
return newObj
|
|
endfunction
|