Opened 8 years ago

Closed 6 years ago

#14973 closed defect (patchwelcome)

Invalid namespace for dojox.rpc.OfflineRest

Reported by: will-ob Owned by: Dustin Machi
Priority: undecided Milestone: 1.9
Component: Dojox Version: 1.7.2
Keywords: Cc:
Blocked By: Blocking:

Description

dojox.rpc.OfflineRest? uses namespace dojox_rpc_OfflineRest and throws an error when checked by

dojox.storage.LocalStorageProvider?

isValidNamespace: function(/*string*/ keyName){ /*Boolean*/
			// we *must* prevent namespaces from having
			// underscores - else lookup of namespaces
			// via RegEx (e.g. in getNamespaces ) would
			// return wrong results.
			//
			// The only way around this would be to
			// disallow underscores in keys.

			if(keyName === null || keyName === undefined){
				return false;
			}

			return /^[0-9A-Za-z-]*$/.test(keyName);
		},

perhaps it should be dojox-rpc-OfflineRest

Attachments (1)

offlinerest.html (406 bytes) - added by will-ob 8 years ago.
Some failing code

Download all attachments as: .zip

Change History (3)

comment:1 Changed 8 years ago by Adam Peller

Owner: changed from Adam Peller to Dustin Machi
Status: newassigned

Changed 8 years ago by will-ob

Attachment: offlinerest.html added

Some failing code

comment:2 Changed 6 years ago by dylan

Milestone: tbd1.9
Resolution: patchwelcome
Status: assignedclosed

We would welcome a patch to fix this. Otherwise, I don't think this will be fixed given the lack of activity.

Note: See TracTickets for help on using tickets.