From 6f04d20048c55e3fc0ef1c0bd8b774bbe5bb84e3 Mon Sep 17 00:00:00 2001 From: wei <> Date: Sat, 21 Oct 2006 03:48:15 +0000 Subject: typo in queue --- framework/Web/Javascripts/prado/ajax3.js | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'framework/Web/Javascripts/prado/ajax3.js') diff --git a/framework/Web/Javascripts/prado/ajax3.js b/framework/Web/Javascripts/prado/ajax3.js index d4221003..66b9a36a 100644 --- a/framework/Web/Javascripts/prado/ajax3.js +++ b/framework/Web/Javascripts/prado/ajax3.js @@ -124,7 +124,7 @@ Object.extend(Prado.CallbackRequest, */ currentRequest : null, - requestQueque : [], + requestQueue : [], /** * Add ids of inputs element to post in the request. @@ -309,10 +309,10 @@ Object.extend(Prado.CallbackRequest, //abort if not ready. if(inProgress.request.transport.readyState < 4) inProgress.request.transport.abort(); - return self.dispatchQueque(); + return self.dispatchQueue(); } else - return self.dispatchQueque(); + return self.dispatchQueue(); }, /** @@ -346,17 +346,17 @@ Object.extend(Prado.CallbackRequest, if(self.currentRequest==null) self.dispatchPriorityRequest(callback); else - self.requestQueque.push(callback); - //Logger.info("current queque length="+self.requestQueque.length); + self.requestQueue.push(callback); + //Logger.info("current queque length="+self.requestQueue.length); }, - dispatchQueque : function() + dispatchQueue : function() { var self = Prado.CallbackRequest; - //Logger.info("dispatching queque, length="+self.requestQueque.length+" request="+self.currentRequest); - if(self.requestQueque.length > 0) + //Logger.info("dispatching queque, length="+self.requestQueue.length+" request="+self.currentRequest); + if(self.requestQueue.length > 0) { - var callback = self.requestQueque.shift(); + var callback = self.requestQueue.shift(); //Logger.info("do dispatch request"); return self.dispatchPriorityRequest(callback); } @@ -372,12 +372,12 @@ Object.extend(Prado.CallbackRequest, else { var queque = []; - self.requestQueque.each(function(callback) + self.requestQueue.each(function(callback) { if(callback.id != id) queque.push(callback); }); - self.requestQueque = queque; + self.requestQueue = queque; } } }) @@ -547,7 +547,7 @@ Prado.CallbackRequest.prototype = if(this.options.HasPriority) { - return Prado.CallbackRequest.enqueque(this); + return Prado.CallbackRequest.enqueue(this); //return Prado.CallbackRequest.dispatchPriorityRequest(this); } else -- cgit v1.2.3