#15736 closed defect (fixed)
dojo/request/xhr exception when options not specified
Reported by: | bill | Owned by: | Bryan Forbes |
---|---|---|---|
Priority: | blocker | Milestone: | 1.8 |
Component: | IO | Version: | 1.8.0rc1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
I tried to do this:
request(url)
According to xhr.js, the options parameter is optional:
function xhr(/*String*/ url, /*Object?*/ options, /*Boolean?*/ returnDeferred){
However, it isn't, because xhr() tries to access options.data:
has('native-formdata') && options.data && options.data instanceof FormData
While you are in that file, the description field is meaningless (because it says the same thing as the summary), and should be removed:
// summary: // Sends an HTTP request with the given URL and options. // description: // Sends an HTTP request with the given URL.
Change History (5)
comment:1 Changed 10 years ago by
Milestone: | tbd → 1.8 |
---|---|
Priority: | undecided → blocker |
comment:2 Changed 10 years ago by
comment:4 Changed 10 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note: See
TracTickets for help on using
tickets.
In [29380]: