This project is read-only.

jQuery 1.9.1 and $.event.fix()

Topics: General
Sep 30, 2013 at 4:28 PM
Edited Sep 30, 2013 at 4:44 PM
Hi all!
In jQuery has $.event.fix(), but in the jquery.d.ts no such instructions.
What to do?

Oct 1, 2013 at 9:40 AM
You have at least options:
  • use <any> cast and forget about intellisense and type checking for this function
  • fix jquery.d.ts (and possibly submit a pull request)
Oct 1, 2013 at 10:31 AM
I added a few line in the d.ts. file.
interface JQueryEvent {
    fix(name: any): JQueryEventObject;

interface JQueryStatic {
event: JQueryEvent;