Fossil SCM

corrected invalid comparison of "typeof" result.

stephan 2011-11-22 11:44 trunk
Commit 036923b66d37e48dbb4d24e8f66aed00c7ce5a32
1 file changed +1 -1
--- ajax/js/whajaj.js
+++ ajax/js/whajaj.js
@@ -103,11 +103,11 @@
103103
like PHP does.
104104
105105
*/
106106
WhAjaj.processUrlArgs = function(str) {
107107
if( 0 === arguments.length ) {
108
- if( (undefined === typeof window) ||
108
+ if( ('undefined' === typeof window) ||
109109
!window.location ||
110110
!window.location.search ) return false;
111111
else str = (''+window.location.search).substring(1);
112112
}
113113
if( ! str ) return false;
114114
--- 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

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button