[jquery] Fix no-angle-bracket-type-assertion violations.

This commit is contained in:
Leonard Thieu 2018-11-24 09:45:54 -05:00
parent e573d98516
commit bf2beee34c
2 changed files with 3 additions and 3 deletions

View File

@ -1578,7 +1578,7 @@ function examples() {
function event_related_target_0() {
$('a').mouseout(function(event) {
alert((<HTMLElement> event.relatedTarget).nodeName); // "DIV"
alert((event.relatedTarget as HTMLElement).nodeName); // "DIV"
});
}

View File

@ -886,7 +886,7 @@ function longdesc() {
var currentRequests: JQuery.PlainObject = {};
$.ajaxPrefilter(function(options, originalOptions, jqXHR) {
if ((<any> options).abortOnRetry) {
if ((options as any).abortOnRetry) {
if (currentRequests[options.url!]) {
currentRequests[options.url!].abort();
}
@ -1297,7 +1297,7 @@ function longdesc() {
return $.css(elem, borderRadius!);
},
set: function(elem, value) {
(<any> elem.style)[borderRadius!] = value;
(elem.style as any)[borderRadius!] = value;
},
};
}