diff --git a/src/ajax/ajax.js b/src/ajax/ajax.js index bd69704d..a0e64629 100644 --- a/src/ajax/ajax.js +++ b/src/ajax/ajax.js @@ -223,8 +223,8 @@ jQuery.extend({ * // content[k] = $.trim(this.firstChild.data) || $(this).text(); * content[k] = $(this).text(); * }); - * ok( content[0].match(/blabla/), 'Check first tab' ); - * ok( content[1].match(/blublu/), 'Check second tab' ); + * ok( content[0] && content[0].match(/blabla/), 'Check first tab' ); + * ok( content[1] && content[1].match(/blublu/), 'Check second tab' ); * start(); * }); *