#1193 new
joenoez

element.dispatchEvent is not a function

Reported by joenoez | January 7th, 2011 @ 03:49 AM

When i use prototype.js in Ruby on Rails

Ruby version 1.8.7 (i486-linux)
RubyGems version 1.3.7
Rails version 2.2.3

this is the line of error that i've got when it's loaded (5734)

5733 if (document.createEvent)
5734 element.dispatchEvent(event);
5735 else

when i remove the (event), there's no error

5733 if (document.createEvent)
5734 element.dispatchEvent;
5735 else

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins

People watching this ticket

Pages