Project

General

Profile

Task #91084

Updated by Oliver Hader over 4 years ago

<pre> 
 new RegularEvent('click', (evt) => { 
   console.log(this, instanceof HTMLElement); 
 }).delegateTo(document, 'a[data-action="toggle"]'); 
 </pre> 

 @this@ won't contain the expected @HTMLElement@ (as assigned a @thisArg@ when invoking the callback)

Back