Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #10400 (closed task: fixed)

Opened 2 years ago

Last modified 2 years ago

[DOC] Custom events documentation should be updated

Reported by: TigerShark Assigned to: sam
Priority: high Milestone:
Component: Prototype Version: 1.1.6
Severity: minor Keywords: documentation
Cc:

Description

I just spent about one hour trying to figure out why the following didn't work:

myDOMElement.fire('customEvent');

I found out that the event name must contain a colon (i.e 'custom:event') for some reason, after which it worked. This is not described in the documentation, which seems like an important point to emphasize.

Change History

12/06/07 20:22:55 changed by kangax

  • priority changed from normal to low.
  • severity changed from normal to minor.
  • summary changed from Custom events documentation should be updated to [DOC] Custom events documentation should be updated.

02/18/08 18:03:11 changed by hlship

  • priority changed from low to high.

I hit the same problem, fortunately the blog http://andrewdupont.net/2007/11/07/pseudo-custom-events-in-prototype-16/ explained the need for colons. This is very, very important.

02/19/08 13:02:56 changed by Tobie

  • status changed from new to closed.
  • resolution set to fixed.

Fixed.