You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by on...@apache.org on 2016/12/27 14:40:59 UTC
ambari git commit: AMBARI-19301.JS-error on the Host details page
(onechiporenko)
Repository: ambari
Updated Branches:
refs/heads/trunk 7d3d71b97 -> 85738c17a
AMBARI-19301.JS-error on the Host details page (onechiporenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/85738c17
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/85738c17
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/85738c17
Branch: refs/heads/trunk
Commit: 85738c17a417daccaabe509466e19cd6193996e5
Parents: 7d3d71b
Author: Oleg Nechiporenko <on...@apache.org>
Authored: Tue Dec 27 15:59:57 2016 +0200
Committer: Oleg Nechiporenko <on...@apache.org>
Committed: Tue Dec 27 15:59:57 2016 +0200
----------------------------------------------------------------------
ambari-web/app/views/common/chart/linear_time.js | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/85738c17/ambari-web/app/views/common/chart/linear_time.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/views/common/chart/linear_time.js b/ambari-web/app/views/common/chart/linear_time.js
index 919d7fa..d2a7ae1 100644
--- a/ambari-web/app/views/common/chart/linear_time.js
+++ b/ambari-web/app/views/common/chart/linear_time.js
@@ -1512,11 +1512,9 @@ App.ChartLinearTimeView.LoadAggregator = Em.Object.create({
}, this);
}
}).always(function () {
- _request.context.set('runningRequests', _request.context.get('runningRequests').reject(function (item) {
- return item === xhr;
- }));
+ _request.context.set('runningRequests', Em.tryInvoke(_request.context.get('runningRequests'), 'without', [xhr]));
});
- _request.context.get('runningRequests').push(xhr);
+ Em.tryInvoke(_request.context.get('runningRequests'), 'push', [xhr]);
})(bulks[id]);
}
},