[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [flashproxy/js] Replace a magic number.



commit dabbd5e747fb638155a61bb8f88a31bb511c83e0
Author: David Fifield <david@xxxxxxxxxxxxxxx>
Date:   Sat Mar 31 15:10:03 2012 -0700

    Replace a magic number.
---
 flashproxy.js |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/flashproxy.js b/flashproxy.js
index bdec17d..7b8b0bc 100644
--- a/flashproxy.js
+++ b/flashproxy.js
@@ -202,8 +202,7 @@ function FlashProxy()
         }
         xhr.responseType = "text";
         xhr.onreadystatechange = function() {
-            /* Status 4 is DONE. */
-            if (xhr.readyState == 4) {
+            if (xhr.readyState == xhr.DONE) {
                 if (xhr.status == 200)
                     this.fac_complete(xhr.responseText);
                 else if (xhr.status == 0 && xhr.statusText == "")



_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits