Opened 6 years ago

Last modified 2 years ago

#16753 new defect

[pr] dojox.string.sprintf relies on dojox global

Reported by: drennalls Owned by: Adam Peller
Priority: undecided Milestone: 1.15
Component: Dojox Version: 1.8.3
Keywords: Cc: cjolif
Blocked By: Blocking:

Description

I'm using the following dojoConfig in order to use Dojo 1.8.3 together with an existing app that's using 1.3.

  <script>
       // Config dojo to allow for multiple-versions, Dojo 1.3 is already in the
       // global namespace so keep 1.8 separate
       var myModMap= { dojo: "dojo18", dijit: "dijit18", dojox: "dojox18", gridx: "gridx110" },
          dojoConfig = {
               baseUrl: "js/",
               isDebug : true,
               tlmSiblingOfDojo: false,
               async : true,
               parseOnLoad: false,
               // use this so 'dojo' doesn't end up globally
               noGlobals: true, 
               packages: [
                   { name: "dojo18", location: "dojo_1.8.3/dojo", packageMap: grouptabModMap },
                   { name: "dijit18", location: "dojo_1.8.3/dijit", packageMap: grouptabModMap },
                   { name: "dojox18", location: "dojo_1.8.3/dojox", packageMap: grouptabModMap },
                   { name: "gridx110", location: "gridx-1.1.0", packageMap: grouptabModMap },
                   { name: "myapp", location: "myapp", main: "app", packageMap: myModMap},
                   ]
           };
   </script>

This works fine until I try to run the same 1.8.3 app on its own (without 1.3 being loaded), that fails with the following error..

ReferenceError: dojox is not defined
var strLib = lang.getObject("string", true, dojox);
sprintf.js (line 7)

Change History (4)

comment:1 Changed 6 years ago by Adam Peller

Cc: cjolif added

There are still many references like this throughout dojox

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.11
Summary: dojox.string.sprintf relies on dojox global[pr] dojox.string.sprintf relies on dojox global

comment:3 Changed 3 years ago by dylan

Milestone: 1.111.12

comment:4 Changed 2 years ago by dylan

Milestone: 1.131.15

Ticket planning... move current 1.13 tickets out to 1.15 to make it easier to move tickets into the 1.13 milestone.

Note: See TracTickets for help on using tickets.