From 8dcc9f2b40d94b1b40929c286b58113e3d83bc49 Mon Sep 17 00:00:00 2001
From: pkupczyk <pkupczyk>
Date: Fri, 3 May 2013 14:45:13 +0000
Subject: [PATCH] SP-555 / BIS-366 : openbis.js - delete utilities.js files and
 use openbis-action-deferrer.js - remove utilities.js

SVN: 28997
---
 .../source/html/demoapp/utilities.js          | 34 -------------------
 1 file changed, 34 deletions(-)
 delete mode 100644 rtd_phosphonetx/source/html/demoapp/utilities.js

diff --git a/rtd_phosphonetx/source/html/demoapp/utilities.js b/rtd_phosphonetx/source/html/demoapp/utilities.js
deleted file mode 100644
index 6749d86e933..00000000000
--- a/rtd_phosphonetx/source/html/demoapp/utilities.js
+++ /dev/null
@@ -1,34 +0,0 @@
-
-
-/**
- * A utility class for deferring an action until all of some kind of action has completed
- *
- * @argument dependencies An array of the keys for the dependencies.
- * @class
- */
-function ActionDeferrer(pendingAction, dependencies) {
-	this.pendingAction = pendingAction;
-	this.dependencies = {};
-	var newme = this;
-	dependencies.forEach(function(key) {
-		newme.dependencies[key] = false;
-	});
-}
-
-/**
- * Note that a dependency completed. Execute the pending action if appropriate.
- * @method
- */
-ActionDeferrer.prototype.dependencyCompleted = function(key) {
-	this.dependencies[key] = true;
-	var shouldExecute = true;
-	for (prop in this.dependencies) {
-		if (false == this.dependencies[prop]) {
-			shouldExecute = false;
-			break;
-		}
-	}
-	if (shouldExecute) {
-		this.pendingAction();
-	}
-}
-- 
GitLab