Yangutils - uses statement can be root
[dlux.git] / modules / common-yangutils-resources / src / main / resources / yangutils / services / sync.services.js
index 56ebe8d88c7a8a9f42cb72c63a51fbf785bfef6e..38c657f326adc3ef0e7b7bd505742ea4af2477f9 100644 (file)
@@ -24,7 +24,6 @@ define([], function () {
             this.spawnRequest = function (digest) {
                 var id = digest + (this.reqId++).toString();
                 this.runningRequests.push(id);
-                // console.debug('adding request ',id,' total running requests  = ',this.runningRequests);
                 return id;
             };
 
@@ -33,9 +32,7 @@ define([], function () {
 
                 if (index > -1) {
                     this.runningRequests.splice(index, 1);
-                    // console.debug('removing request ',id,' remaining requests = ',this.runningRequests);
                 } else {
-                    console.warn('cannot remove request', id, 'from', this.runningRequests, 'index is', index);
                 }
             };
 
@@ -45,7 +42,6 @@ define([], function () {
                     self = this;
 
                 if (processes > 0 && self.timeElapsed < timeout) {
-                    // console.debug('waitin on',processes,'processes',this.runningRequests);
                     $timeout(function () {
                         self.timeElapsed = self.timeElapsed + t;
                         self.waitFor(callback);