Fossil SCM
corrected invalid comparison of "typeof" result.
Commit
036923b66d37e48dbb4d24e8f66aed00c7ce5a32
Parent
0c8d1ca9cd383a4…
1 file changed
+1
-1
+1
-1
| --- ajax/js/whajaj.js | ||
| +++ ajax/js/whajaj.js | ||
| @@ -103,11 +103,11 @@ | ||
| 103 | 103 | like PHP does. |
| 104 | 104 | |
| 105 | 105 | */ |
| 106 | 106 | WhAjaj.processUrlArgs = function(str) { |
| 107 | 107 | if( 0 === arguments.length ) { |
| 108 | - if( (undefined === typeof window) || | |
| 108 | + if( ('undefined' === typeof window) || | |
| 109 | 109 | !window.location || |
| 110 | 110 | !window.location.search ) return false; |
| 111 | 111 | else str = (''+window.location.search).substring(1); |
| 112 | 112 | } |
| 113 | 113 | if( ! str ) return false; |
| 114 | 114 |
| --- ajax/js/whajaj.js | |
| +++ ajax/js/whajaj.js | |
| @@ -103,11 +103,11 @@ | |
| 103 | like PHP does. |
| 104 | |
| 105 | */ |
| 106 | WhAjaj.processUrlArgs = function(str) { |
| 107 | if( 0 === arguments.length ) { |
| 108 | if( (undefined === typeof window) || |
| 109 | !window.location || |
| 110 | !window.location.search ) return false; |
| 111 | else str = (''+window.location.search).substring(1); |
| 112 | } |
| 113 | if( ! str ) return false; |
| 114 |
| --- ajax/js/whajaj.js | |
| +++ ajax/js/whajaj.js | |
| @@ -103,11 +103,11 @@ | |
| 103 | like PHP does. |
| 104 | |
| 105 | */ |
| 106 | WhAjaj.processUrlArgs = function(str) { |
| 107 | if( 0 === arguments.length ) { |
| 108 | if( ('undefined' === typeof window) || |
| 109 | !window.location || |
| 110 | !window.location.search ) return false; |
| 111 | else str = (''+window.location.search).substring(1); |
| 112 | } |
| 113 | if( ! str ) return false; |
| 114 |