Opened 6 years ago

Last modified 3 years ago

#17356 new defect

[patch] dojo/text wont load template again when the server is back

Reported by: shanghaikid Owned by:
Priority: undecided Milestone: 1.15
Component: Core Version: 1.9.1
Keywords: Cc:
Blocked By: Blocking:

Description

if the server is down, and we click a button to load a widget which have an template file. the page will stuck which is ok. but what if the server is back after anytime, click that button, the widget can never be load successfully. I check the souce file.

if(text===notFound){
				if(pending[url]){
					pending[url].push(finish);
				}else{
					var pendingList = pending[url] = [finish];
					getText(url, !require.async, function(text){
						theCache[absMid]= theCache[url]= text;
						for(var i = 0; i<pendingList.length;){
							pendingList[i++](text);
						}
						delete pending[url];
					}, function() {
                        delete pending[url];
                    });
				}
			}else{
				finish(text);
			}

you see the getText function. it needs an error handle to remove the pending[url].

Change History (3)

comment:1 Changed 4 years ago by dylan

Component: GeneralCore

comment:2 Changed 4 years ago by dylan

Milestone: tbd1.12
Summary: dojo/text wont load template again when the server is back[patch] dojo/text wont load template again when the server is back

comment:3 Changed 3 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.