diff --git a/openbis/resource/examples/crud-demo/1/as/webapps/crud-demo/html/utilities.js b/openbis/resource/examples/crud-demo/1/as/webapps/crud-demo/html/utilities.js deleted file mode 100644 index 6749d86e933fd1854d4f7da13920d3f37f45f638..0000000000000000000000000000000000000000 --- a/openbis/resource/examples/crud-demo/1/as/webapps/crud-demo/html/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(); - } -} diff --git a/openbis/resource/examples/service-demo/1/as/webapps/aggregation/html/utilities.js b/openbis/resource/examples/service-demo/1/as/webapps/aggregation/html/utilities.js deleted file mode 100644 index 6749d86e933fd1854d4f7da13920d3f37f45f638..0000000000000000000000000000000000000000 --- a/openbis/resource/examples/service-demo/1/as/webapps/aggregation/html/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(); - } -} diff --git a/openbis/resource/examples/service-demo/1/as/webapps/ingestion/html/utilities.js b/openbis/resource/examples/service-demo/1/as/webapps/ingestion/html/utilities.js deleted file mode 100644 index 6749d86e933fd1854d4f7da13920d3f37f45f638..0000000000000000000000000000000000000000 --- a/openbis/resource/examples/service-demo/1/as/webapps/ingestion/html/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(); - } -} diff --git a/openbis/sourceTest/javascript/simpleapp/utilities.js b/openbis/sourceTest/javascript/simpleapp/utilities.js deleted file mode 100644 index 6749d86e933fd1854d4f7da13920d3f37f45f638..0000000000000000000000000000000000000000 --- a/openbis/sourceTest/javascript/simpleapp/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(); - } -}