[Pkg-javascript-commits] [dojo] 11/88: Properly call RequestTimeoutError. refs #15182 !strict

David Prévot taffit at moszumanska.debian.org
Thu Aug 21 17:39:30 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.8.5
in repository dojo.

commit 4a5a5ff83037af3942f10b42a634a78b0b40cc46
Author: Bryan Forbes <bryan at reigndropsfall.net>
Date:   Wed Aug 22 19:05:44 2012 +0000

    Properly call RequestTimeoutError. refs #15182 !strict
    
    git-svn-id: http://svn.dojotoolkit.org/src/branches/1.8/dojo@29522 560b804f-0ae3-0310-86f3-f6aa0a117693
---
 request/watch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/request/watch.js b/request/watch.js
index 9c1b600..6e0f2f4 100644
--- a/request/watch.js
+++ b/request/watch.js
@@ -34,7 +34,7 @@ define([
 				if(dfd.startTime + (options.timeout || 0) < now){
 					_inFlight.splice(i--, 1);
 					// Cancel the request so the io module can do appropriate cleanup.
-					dfd.cancel(new RequestTimeoutError(response));
+					dfd.cancel(new RequestTimeoutError('Timeout exceeded', response));
 					watch._onAction && watch._onAction();
 				}
 			}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git



More information about the Pkg-javascript-commits mailing list