You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by pu...@apache.org on 2014/01/31 20:43:51 UTC

[1/3] git commit: [CB-5219] weinre disconnects when history.replaceState is used

Updated Branches:
  refs/heads/master 331fef442 -> bb7abee6b


[CB-5219] weinre disconnects when history.replaceState is used


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/a82f3d0c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/a82f3d0c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/a82f3d0c

Branch: refs/heads/master
Commit: a82f3d0c4d4ce77ee194c5892377d4c01a19f6b1
Parents: 2386d7a
Author: sgrebnov <se...@gmail.com>
Authored: Mon Jan 20 20:27:32 2014 +0400
Committer: sgrebnov <se...@gmail.com>
Committed: Mon Jan 20 20:27:32 2014 +0400

----------------------------------------------------------------------
 wp8/template/cordovalib/XHRHelper.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/a82f3d0c/wp8/template/cordovalib/XHRHelper.cs
----------------------------------------------------------------------
diff --git a/wp8/template/cordovalib/XHRHelper.cs b/wp8/template/cordovalib/XHRHelper.cs
index ae4daf8..058d317 100644
--- a/wp8/template/cordovalib/XHRHelper.cs
+++ b/wp8/template/cordovalib/XHRHelper.cs
@@ -118,7 +118,9 @@ namespace WPCordovaClassLib.CordovaLib
             changeReadyState: function(newState) {
                 this.readyState = newState;
                 if (this.onreadystatechange) {
-                    this.onreadystatechange();
+                    // mimic simple 'readystatechange' event which should be passed as per spec
+                    var evt = {type: 'readystatechange', target: this, timeStamp: new Date().getTime()};
+                    this.onreadystatechange(evt);
                 }
                 if (this.readyState == XHRShim.DONE){
                     this.onload && this.onload();


[2/3] git commit: Merge branch 'CB-5219' of https://github.com/sgrebnov/cordova-wp8

Posted by pu...@apache.org.
Merge branch 'CB-5219' of https://github.com/sgrebnov/cordova-wp8


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/cf71c27d
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/cf71c27d
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/cf71c27d

Branch: refs/heads/master
Commit: cf71c27d2cd59a6a95dcbfe8acfbe244b62809a0
Parents: 331fef4 a82f3d0
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Jan 31 11:40:07 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Jan 31 11:40:07 2014 -0800

----------------------------------------------------------------------
 wp8/template/cordovalib/XHRHelper.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------



[3/3] git commit: apply CB-5219 to WP7 also

Posted by pu...@apache.org.
apply CB-5219 to WP7 also


Project: http://git-wip-us.apache.org/repos/asf/cordova-wp8/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-wp8/commit/bb7abee6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-wp8/tree/bb7abee6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-wp8/diff/bb7abee6

Branch: refs/heads/master
Commit: bb7abee6b1d487c3b43b37ced798a36644f40eb7
Parents: cf71c27
Author: Jesse MacFadyen <pu...@gmail.com>
Authored: Fri Jan 31 11:43:25 2014 -0800
Committer: Jesse MacFadyen <pu...@gmail.com>
Committed: Fri Jan 31 11:43:25 2014 -0800

----------------------------------------------------------------------
 wp7/template/cordovalib/XHRHelper.cs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-wp8/blob/bb7abee6/wp7/template/cordovalib/XHRHelper.cs
----------------------------------------------------------------------
diff --git a/wp7/template/cordovalib/XHRHelper.cs b/wp7/template/cordovalib/XHRHelper.cs
index ae4daf8..058d317 100644
--- a/wp7/template/cordovalib/XHRHelper.cs
+++ b/wp7/template/cordovalib/XHRHelper.cs
@@ -118,7 +118,9 @@ namespace WPCordovaClassLib.CordovaLib
             changeReadyState: function(newState) {
                 this.readyState = newState;
                 if (this.onreadystatechange) {
-                    this.onreadystatechange();
+                    // mimic simple 'readystatechange' event which should be passed as per spec
+                    var evt = {type: 'readystatechange', target: this, timeStamp: new Date().getTime()};
+                    this.onreadystatechange(evt);
                 }
                 if (this.readyState == XHRShim.DONE){
                     this.onload && this.onload();