now reusing the terminating handler...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2019-02-10 17:44:42 +03:00
parent 09ce8a4073
commit 8ebc8aa31d

View File

@ -549,9 +549,10 @@ var BrowserPrototype = {
e.classList.add('list')
// localize events...
var stopPropagation = function(evt){ evt.stopPropagation() }
;(options.localEvents || this.options.localEvents || [])
.forEach(function(evt){
e.addEventListener(evt, function(evt){ evt.stopPropagation() }) })
e.addEventListener(evt, stopPropagation) })
// header...
if(header){