Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#196 closed defect (fixed)

io.bind error callback bug

Reported by: anonymous Owned by: anonymous
Priority: high Milestone:
Component: General Version: 0.1
Keywords: bind error handler Cc:
Blocked By: Blocking:

Description

If you specify error callbacks like this

function myerrorfunc(a,b,c) {...}

dojo.io.bind({
 load: myloadfunc,
 error: myerrorfunc,
 url: myurl });

myerrorfunc is not called.

You have to specify error callbacks like this

dojo.io.bind({
 load: myloadfunc,
 error: function myerrorfunc(a,b,c) {...},
 url: myurl });

I don't know why. Can someone explain this? see function doLoad in io/BrowserIO.js for more information. error callbacks are called in the else of the first if statement.

Change History (3)

comment:1 Changed 13 years ago by Tom Trenka

Platform and more extensive example? This seems to work in the major browser environments.

comment:2 Changed 13 years ago by dylan

Milestone: 0.2release
Resolution: fixed
Status: newclosed

sounds like a scope issue, and somewhere you would need to use dojo.lang.hitch

comment:3 Changed 12 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.