mirror of
https://github.com/Microsoft/vscode
synced 2024-08-28 21:39:43 +00:00
48 lines
1.9 KiB
Plaintext
48 lines
1.9 KiB
Plaintext
# Query: @deprecated ES6
|
|
# Flags: CaseSensitive WordMatch
|
|
# ContextLines: 2
|
|
|
|
10 results - 2 files
|
|
|
|
monaco • src/vs/base/browser/dom.ts:
|
|
83 };
|
|
84
|
|
85: /** @deprecated ES6 - use classList*/
|
|
86 export function hasClass(node: HTMLElement | SVGElement, className: string): boolean { return _classList.hasClass(node, className); }
|
|
87: /** @deprecated ES6 - use classList*/
|
|
88 export function addClass(node: HTMLElement | SVGElement, className: string): void { return _classList.addClass(node, className); }
|
|
89: /** @deprecated ES6 - use classList*/
|
|
90 export function addClasses(node: HTMLElement | SVGElement, ...classNames: string[]): void { return _classList.addClasses(node, ...classNames); }
|
|
91: /** @deprecated ES6 - use classList*/
|
|
92 export function removeClass(node: HTMLElement | SVGElement, className: string): void { return _classList.removeClass(node, className); }
|
|
93: /** @deprecated ES6 - use classList*/
|
|
94 export function removeClasses(node: HTMLElement | SVGElement, ...classNames: string[]): void { return _classList.removeClasses(node, ...classNames); }
|
|
95: /** @deprecated ES6 - use classList*/
|
|
96 export function toggleClass(node: HTMLElement | SVGElement, className: string, shouldHaveIt?: boolean): void { return _classList.toggleClass(node, className, shouldHaveIt); }
|
|
97
|
|
|
|
monaco • src/vs/base/common/strings.ts:
|
|
15
|
|
16 /**
|
|
17: * @deprecated ES6: use `String.padStart`
|
|
18 */
|
|
19 export function pad(n: number, l: number, char: string = '0'): string {
|
|
|
|
146
|
|
147 /**
|
|
148: * @deprecated ES6: use `String.startsWith`
|
|
149 */
|
|
150 export function startsWith(haystack: string, needle: string): boolean {
|
|
|
|
167
|
|
168 /**
|
|
169: * @deprecated ES6: use `String.endsWith`
|
|
170 */
|
|
171 export function endsWith(haystack: string, needle: string): boolean {
|
|
|
|
857
|
|
858 /**
|
|
859: * @deprecated ES6
|
|
860 */
|
|
861 export function repeat(s: string, count: number): string {
|