Opened 16 years ago

Closed 16 years ago

Last modified 15 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:


If you specify error callbacks like this

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

myerrorfunc is not called.

You have to specify error callbacks like this{
 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 16 years ago by Tom Trenka

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

comment:2 Changed 16 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 15 years ago by (none)

Milestone: 0.2release

Milestone 0.2release deleted

Note: See TracTickets for help on using tickets.