[
https://issues.apache.org/jira/browse/QPID-6398?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Keith Wall updated QPID-6398:
-----------------------------
Description:
Because 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, without taking this change into account.
The dojo docs say:
.bq
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:
{code}
require(["dojo/parser", "dojo/_base/array"], function(parser, array){
parser.parse().then(function(instances){
array.forEach(instances, function(instance){
// do something with instances
});
});
});
{code}
was:
Because certain features introduced in Dojo 1.8 can cause the parser to run in
an asynchronous fashion
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:
{code}
require(["dojo/parser", "dojo/_base/array"], function(parser, array){
parser.parse().then(function(instances){
array.forEach(instances, function(instance){
// do something with instances
});
});
});
{code}
> [Java Broker] Update web management console UI to invoke dojo parser.parse as
> a promise due to changes in dojo 1.8 causing the parser to run in
> asynchronous fashion in some cases
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-6398
> URL: https://issues.apache.org/jira/browse/QPID-6398
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: 0.26, 0.27, 0.28, 0.29, 0.30
> Reporter: Alex Rudyy
> Assignee: Keith Wall
>
> Because 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, without taking this change into account.
> The dojo docs say:
> .bq
> 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:
> {code}
> require(["dojo/parser", "dojo/_base/array"], function(parser, array){
> parser.parse().then(function(instances){
> array.forEach(instances, function(instance){
> // do something with instances
> });
> });
> });
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]