Opened 14 years ago

Closed 10 years ago

#5548 closed enhancement (duplicate)

Make dojo._Url a public constructor

Reported by: guest Owned by: wolfram
Priority: high Milestone: future
Component: General Version: 1.0
Keywords: Cc:
Blocked By: Blocking:

Description (last modified by wolfram)

Given the how central URLs are to the web, it seems like dojo._Url should not be a private constructor.

As I understand it, the _ designates a variable that should be used outside its module infrequently and only with caution. In contrast, dojo._Url is used at least once in each of:

dijit/_editor/RichText.js dojo/_base/_loader/hostenv_browser.js dojo/_base/_loader/loader.js dojo/parser.js dojo/rpc/RpcService.js dojox/dtl/html.js dojox/layout/ContentPane.js dojox/layout/tests/ContentPane.html dojox/off/files.js

From my experience developing a large webapp, dojo._Url is useful in a wide variety of problems.

Transitionally, keeping around _Url with a "deprecated" call makes sense to me.

Change History (6)

comment:1 Changed 14 years ago by dylan

Milestone: 1.2

comment:2 Changed 14 years ago by wolfram

Description: modified (diff)

I added a public version dojo.Uri and extended it a bit, see #6175

comment:3 Changed 14 years ago by dylan

Owner: changed from anonymous to wolfram

comment:4 Changed 14 years ago by Adam Peller

Type: defectenhancement

comment:5 Changed 13 years ago by dylan

Milestone: 1.2future

comment:6 Changed 10 years ago by ben hockey

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.