mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-23 09:12:47 +00:00
[jquery] Fix no-angle-bracket-type-assertion violations.
This commit is contained in:
parent
e573d98516
commit
bf2beee34c
@ -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"
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user