Opened 14 years ago

Closed 14 years ago

Last modified 12 years ago

#22 closed defect (fixed)

dojo.event.connect doesn't throw error with first argument null

Reported by: david Owned by: alex
Priority: high Milestone:
Component: Core Version: 0.0
Keywords: events Cc:
Blocked By: Blocking:

Description

When I have the following:

dojo.event.connect(foo, "onSomething", ...)

And foo is null, the event still gets connected w/o throwing an error. This is doubly bad because it connects to dj_global (window in the browser). I think the problem lies in interpolateArgs where it gets the typeof foo and null is an object. I'd fix but I don't know the function well enough.

Change History (4)

comment:1 Changed 14 years ago by alex

Status: newassigned

comment:2 Changed 14 years ago by schontz@…

Milestone: 0.1release
Version: 0.10.0

comment:3 Changed 14 years ago by alex

Resolution: fixed
Status: assignedclosed

(In [1186]) fixes #22

comment:4 Changed 12 years ago by (none)

Milestone: 0.1release

Milestone 0.1release deleted

Note: See TracTickets for help on using tickets.