Files
codeql/javascript/ql/test/library-tests/frameworks/jQuery/tracking.js
2019-10-07 08:29:42 +01:00

24 lines
301 B
JavaScript

class C {
constructor(elm) {
this.elm = elm;
}
doSomething() {
this.elm.html('foo');
}
/**
* @param {JQuery} e
*/
doSomethingWithTypes(e) {
e.html('foo');
e.attr('class', 'foo');
e.attr({
color: 'red',
size: '12pt',
});
}
}
new C($('#foo'));