Page MenuHomePhabricator

jQuery.event.dispatch TypeError on
Closed, ResolvedPublic


Hello. In the project when editing - do not working bottom buttons (<tt></tt>, <nowiki></nowiki>, {{DEFAULTSORT:}} and other). I click on it, but it's not pasted. How can fix error?

Event Timeline

Green_Zero raised the priority of this task from to Medium.
Green_Zero updated the task description. (Show Details)
Green_Zero added a subscriber: Green_Zero.

Uncaught TypeError: ((jQuery.event.special[handleObj.origType] || (intermediate value)).handle || handleObj.handler).apply is not a function
from jQuery.event.dispatch

Aklapper renamed this task from Error in to jQuery.event.dispatch TypeError on 11 2015, 12:21 PM
Aklapper set Security to None.
Krinkle claimed this task.

Indeed. The following line seems invalid. jQuery does not support binding strings as click handlers. They must be functions. Naturally, a method apply is later not found.

$ $(this).attr('onclick') );

Fixed in Revision 177245.

See also T85787 and T11424 which are in need of attention.