1 |
nelg |
197811 |
diff -urN BUILD/Ajaxterm-0.10/sarissa.js BUILD.1/Ajaxterm-0.10/sarissa.js |
2 |
|
|
--- BUILD/Ajaxterm-0.10/sarissa.js 2006-10-29 15:52:39.000000000 +1300 |
3 |
|
|
+++ BUILD.1/Ajaxterm-0.10/sarissa.js 2012-01-17 04:05:55.498421522 +1300 |
4 |
|
|
@@ -265,7 +265,13 @@ |
5 |
|
|
* <li>3 == INTERACTIVE,</li> |
6 |
|
|
* <li>4 == COMPLETED</li></ul> |
7 |
|
|
*/ |
8 |
|
|
- XMLDocument.prototype.readyState = 0; |
9 |
|
|
+ try { |
10 |
|
|
+ XMLDocument.prototype.readyState = 0; |
11 |
|
|
+ } catch(e) { |
12 |
|
|
+ // XXX on some browsers (Firefox 3.6 at least) this fails, |
13 |
|
|
+ // however I think this is rarely a problem so we just |
14 |
|
|
+ // ignore it here... |
15 |
|
|
+ }; |
16 |
|
|
/** |
17 |
|
|
* <p>Emulate IE's parseError attribute</p> |
18 |
|
|
*/ |