[Pkg-javascript-commits] [dojo] 79/149: refs #18702, event 'position' deprecation warning in dojo/request/xhr progress

David Prévot taffit at moszumanska.debian.org
Sat Feb 27 03:13:49 UTC 2016


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

taffit pushed a commit to branch master
in repository dojo.

commit d400e28ad88aca5a3244710ad2ac1d341868d3d7
Author: Gavin Rehkemper <gavreh at gmail.com>
Date:   Fri Sep 11 13:40:48 2015 -0700

    refs #18702, event 'position' deprecation warning in dojo/request/xhr progress
---
 request/xhr.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/request/xhr.js b/request/xhr.js
index fff0b54..48e134f 100644
--- a/request/xhr.js
+++ b/request/xhr.js
@@ -115,7 +115,7 @@ define([
 					response.total = evt.total;
 					dfd.progress(response);
 				} else if(response.xhr.readyState === 3){
-					response.loaded = evt.position;
+					response.loaded = ('loaded' in evt) ? evt.loaded : evt.position;
 					dfd.progress(response);
 				}
 			}

-- 
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