You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ea...@apache.org on 2016/11/12 18:33:12 UTC
qpid-dispatch git commit: DISPATCH-564 Moved setCurrentNode function
out of a closure and into the main scope
Repository: qpid-dispatch
Updated Branches:
refs/heads/master 4a8a77e3a -> c42f2c452
DISPATCH-564 Moved setCurrentNode function out of a closure and into the main scope
Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/c42f2c45
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/c42f2c45
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/c42f2c45
Branch: refs/heads/master
Commit: c42f2c452f672de2fd655558c112b798bc145f7d
Parents: 4a8a77e
Author: Ernest Allen <ea...@redhat.com>
Authored: Sat Nov 12 13:32:52 2016 -0500
Committer: Ernest Allen <ea...@redhat.com>
Committed: Sat Nov 12 13:32:52 2016 -0500
----------------------------------------------------------------------
console/stand-alone/plugin/js/qdrList.js | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/c42f2c45/console/stand-alone/plugin/js/qdrList.js
----------------------------------------------------------------------
diff --git a/console/stand-alone/plugin/js/qdrList.js b/console/stand-alone/plugin/js/qdrList.js
index 6734e2a..800dde4 100644
--- a/console/stand-alone/plugin/js/qdrList.js
+++ b/console/stand-alone/plugin/js/qdrList.js
@@ -690,6 +690,15 @@ var QDR = (function(QDR) {
};
+ var setCurrentNode = function () {
+ $scope.nodes.some( function (node, i) {
+ if (node.name === $scope.selectedNode) {
+ $scope.currentNode = $scope.nodes[i]
+ return true;
+ }
+ })
+ }
+
var treeReady = false;
var serviceReady = false;
// called after we know for sure the schema is fetched and the routers are all ready
@@ -711,14 +720,6 @@ var QDR = (function(QDR) {
//QDR.log.debug("forcing selectedNode to " + $scope.selectedNode);
}
}
- var setCurrentNode = function () {
- $scope.nodes.some( function (node, i) {
- if (node.name === $scope.selectedNode) {
- $scope.currentNode = $scope.nodes[i]
- return true;
- }
- })
- }
setCurrentNode();
if ($scope.currentNode == undefined) {
if ($scope.nodes.length > 0) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org