From dd393c9e0f182009a65e9b9ab411e39d8e5a64b8 Mon Sep 17 00:00:00 2001 From: Robert Dennis Date: Thu, 23 Apr 2015 10:12:44 -0400 Subject: [PATCH] Add tests for jQuery failsafe syntax --- jquery/jquery-tests.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/jquery/jquery-tests.ts b/jquery/jquery-tests.ts index 006140f2f..3853a8d5f 100644 --- a/jquery/jquery-tests.ts +++ b/jquery/jquery-tests.ts @@ -2511,10 +2511,10 @@ function test_jQuery() { $foo.triggerHandler('eventName'); $("div > p").css("border", "1px solid gray"); $("input:radio", document.forms[0]); - var xml: any; + var xml: any; $("div", xml.responseXML); $(document.body).css("background", "black"); - var myForm: any; + var myForm: any; $(myForm.elements).hide(); $('

My new text

').appendTo('body'); $(''); @@ -2537,6 +2537,10 @@ function test_jQuery() { } }).appendTo("body"); jQuery(function ($) { + // Your code using failsafe $ alias here... + }); + jQuery(document).ready(function ($) { + // Your code using failsafe $ alias here... }); }