Skip to main content

Bug Tracker

Side navigation

#11437 closed bug (worksforme)

Opened March 05, 2012 06:14AM UTC

Closed March 05, 2012 10:50AM UTC

Last modified July 13, 2012 08:50AM UTC

((f.event.special[r.origType] || {}).handle || r.handler).apply is not a function

Reported by: Owned by:
Priority: low Milestone: None
Component: event Version: 1.7.1
Keywords: Cc:
Blocked by: Blocking:

FireFox 10.0.2 throws "((f.event.special[r.origType] || {}).handle || r.handler).apply is not a function" for the following test-case:

<!DOCTYPE html>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

		<script type="text/javascript" src=""></script>
		<script src=""></script>
		<script src=""></script>
		<script type="text/javascript">
			$(function() {
					title: "Please enter the following information",
					width: 500
		<div id="calculator">
			Income$<input id="income" pattern="^\\d+((\\.|\\,)\\d{2})?$"/>

1. Select input field.

2. Enter any number.

3. Hit TAB.

4. Exception thrown.

Reproducible always.

Attachments (0)
Change History (2)

Changed March 05, 2012 10:50AM UTC by addyosmani comment:1

component: unfiledevent
priority: undecidedlow
resolution: → worksforme
status: newclosed

Rather than passing $(function(event){ ... }) to el.change(), simply pass function(event){..} as follows (and as defined by our docs) and you won't experience any exceptions when tabbing. Your console.log will work absolutely fine and there's no (as far as I can discern) reason to be wrapping your callback with $ here.

Changed July 13, 2012 08:50AM UTC by anonymous comment:2

I got the same exception when I had this line code:

$x = $("table").select('tbody');

I know now that this is a very stupid line of code, but the error message from firefox is not really useful.

My solution was to remove this line of code.