Opened 10 years ago

Closed 8 years ago

#12744 closed defect (fixed) requires

Reported by: flammon Owned by: Kris Zyp
Priority: high Milestone: 1.8
Component: DojoX Data Version: 1.6.0
Keywords: JsonQueryRestStore, ClientFilter Cc:
Blocked By: Blocking:


When is loaded without an exception is thrown as follows.


uncaught exception: Could not load cross-domain resources:

The workaround is to simply load


Change History (3)

comment:1 Changed 10 years ago by bill

Component: GeneralDojoX Data
Owner: set to Kris Zyp

comment:2 Changed 10 years ago by Kenneth G. Franqueiro

Firstly, requiring ClientFilter isn't exactly a workaround, or at least not one without consequences, since it fundamentally alters some of the store's behavior.

I'm wondering if something's dying a horrible death related to how the build script builds the xd version of this file. Here's a few lines from JsonQueryRestStore.xd.js, beautified:

depends: [
    ["provide", ""],
    ["require", ""],
    ["require", ""],
    ["requireIf", !!, "dojox.json.query"]

Notice the _3 above... that should actually be dojox under normal circumstances (and is in fact still intact in the non-xd version of the file). This causes a " is undefined" error which is causing the load failure.

comment:3 Changed 8 years ago by bill

Milestone: tbd1.8
Resolution: fixed
Status: newclosed

The require is there in 1.8, so fixed for 1.8 or perhaps earlier.

Note: See TracTickets for help on using tickets.