Back to a clean phantomas version + modules

This commit is contained in:
Gaël Métais
2014-08-05 00:08:22 +02:00
parent aba5ef5a51
commit df4c93356e
10 changed files with 988 additions and 10 deletions
+5 -1
View File
@@ -7,11 +7,15 @@ app.controller('ResultsCtrl', function ($scope) {
$scope.slowRequestsOn = false;
$scope.slowRequestsLimit = 5;
if ($scope.phantomasResults.offenders && $scope.phantomasResults.offenders.javascriptExecutionTree) {
$scope.javascript = JSON.parse($scope.phantomasResults.offenders.javascriptExecutionTree);
}
$scope.onNodeDetailsClick = function(node) {
var isOpen = node.data.showDetails;
if (!isOpen) {
// Close all other nodes
$scope.phantomasResults.javascript.children.forEach(function(currentNode) {
$scope.javascript.children.forEach(function(currentNode) {
currentNode.data.showDetails = false;
});