mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
24 lines
301 B
JavaScript
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'));
|