Skip to content

Event.fire to support all events, not only custom ones #266

@jwestbrook

Description

@jwestbrook

previous lighthouse ticket #697
by Radoslav Stankov


Today I have been trying to create tests for Event.delegate, and come to the conclusion that prototype needs Event.fire to fire not only custom events but custom too.
I digg a lot today for this issue, I created a Event.fire (looking mainly on old Event.fire and YUI's one)

http://github.com/RStankov/javascript-playground/tree/550554caf705a231a5aa545ab9b2014008dc6a8b/Event.fire

http://gist.github.com/121011

This version now pass all prototype.js tests in - event_test.js + basic tests I created. Tested in FF3 / Safary / IE. But I think there are not enough and I'm not very good at testing.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions