https://bugs.kde.org/show_bug.cgi?id=356638

--- Comment #4 from Francis Herne <francis.he...@yahoo.co.uk> ---
Whoops, missed a semicolon on the first line.

In fact, KDevelop doesn't like having an object as the second argument either
(contrary to what my original report implies).

var listener = {
    handleEvent: function(event) {}
};
var el = document.getElementById('elephant');
el.addEventListener("click", listener, false);

is also flagged as an error. I think the parser is being too picky about what
can be an EventListener, given JS's duck typing and lack of inheritance (before
ES6).

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to