Details
Description
Certain features introduced in Dojo 1.8 can cause the parser to run in an asynchronous fashion. The Qpid Web Management Console was upgraded to Dojo 1.8 sometime ago (QPID-4762), without taking this change into account. This is causing sporadic failures in the Console.
The dojo docs say:
For new development, it is best interact with parse() as if it was only a promise. For example, to do something with the instantiated objects, you would want to do something like:
require(["dojo/parser", "dojo/_base/array"], function(parser, array){ parser.parse().then(function(instances){ array.forEach(instances, function(instance){ // do something with instances }); }); });
Attachments
Issue Links
- relates to
-
QPID-4762 [Java Broker] Upgrade dojo to the version 1.8.3
- Closed