1 |
|
the if statement borks under JScript, fix is to use logically equivalent version using DeMorgan's law
1 2 3 4 5 6 7 8 |
var state = documentreadyState; if state != 'loaded' && state != 'complete' PhoneGap_constructorspushfunc; else func; ; |
everything below is not recognized in JScript 3.0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
function var timer = setIntervalfunction var state = documentreadyState; if state != 'loaded' && state != 'complete' return; clearIntervaltimer; while PhoneGap_constructorslength > 0 var constructor = PhoneGap_constructorsshift; try constructor; catche if typeofdebug'log' == 'function' debug.log"Failed to run constructor: " + emessage; else alert"Failed to run constructor: " + emessage; 1; ; |

