I am using XMLHttpRequest to call a REST service.
When testing is under Mozilla and Chrome everything works just fine.
Although, when I enabled the Ripple under Chrome it stopped working. After some debugging I found out that in the switch/case statement, where I do something like ...
switch (this.readyState) {
case XMLHttpRequest.DONE: ... some code here ... break;
}
... the "case" does not get fired.
Closer examination determined that all the values XMLHttpRequest.* are undefined so that is the reason my code stopped working.
Q: Why XMLHttpRequest readyState values, otherwise well defined, become undefined under Ripple?
Are there any solutions for that issue, other than using plain numbers like 1, 2, 3, 4 or defining the values myself.