When a JS callback is a function, it should be called. If the function has another function as its handleEvent property, that function should not be called.