From 5e55c3ef2d8afad59bf789d8de8d4a725baf6b40 Mon Sep 17 00:00:00 2001 From: Adam Coldrick Date: Sat, 26 Sep 2015 16:20:54 +0100 Subject: FIXME: Do something --- js/main.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'js/main.js') diff --git a/js/main.js b/js/main.js index 3f219e9..09a7b27 100644 --- a/js/main.js +++ b/js/main.js @@ -6,18 +6,14 @@ app.config(['$httpProvider', function($httpProvider) { } ]); -app.controller('VisualisationController', ['$scope', '$http', '$interval', - function($scope, $http, $interval) { - function formatBuild(response) { - var success = false; - if (response.data.text) { - if (response.data.text.indexOf('successful') > -1) { - success = true; +app.controller('VisualisationController', function($scope, $http, $q) { + function checkInArray(array, key) { + if (array) { + if (array.indexOf(key) > -1) { + return true; } } - return { - success: success - }; + return False; } function load() { -- cgit v1.2.1