@@ -17,17 +17,17 @@ export interface DragTransform {
1717 yOffset : number ;
1818}
1919
20- /**
21- * @internal Checks for obsolete method names and provides deprecation warnings.
22- * Creates a wrapper function that logs a deprecation warning when called.
23- *
24- * @param self the object context to apply the function to
25- * @param f the new function to call
26- * @param oldName the deprecated method name
27- * @param newName the new method name to use instead
28- * @param rev the version when the deprecation was introduced
29- * @returns a wrapper function that warns about deprecation
30- */
20+ // / **
21+ // * Checks for obsolete method names and provides deprecation warnings.
22+ // * Creates a wrapper function that logs a deprecation warning when called.
23+ // *
24+ // * @param self the object context to apply the function to
25+ // * @param f the new function to call
26+ // * @param oldName the deprecated method name
27+ // * @param newName the new method name to use instead
28+ // * @param rev the version when the deprecation was introduced
29+ // * @returns a wrapper function that warns about deprecation
30+ // */
3131// eslint-disable-next-line
3232// export function obsolete(self, f, oldName: string, newName: string, rev: string): (...args: any[]) => any {
3333// const wrapper = (...args) => {
@@ -39,15 +39,15 @@ export interface DragTransform {
3939// return wrapper;
4040// }
4141
42- /**
43- * @internal Checks for obsolete grid options and migrates them to new names.
44- * Automatically copies old option values to new option names and shows deprecation warnings.
45- *
46- * @param opts the options object to check and migrate
47- * @param oldName the deprecated option name
48- * @param newName the new option name to use instead
49- * @param rev the version when the deprecation was introduced
50- */
42+ // / **
43+ // * Checks for obsolete grid options and migrates them to new names.
44+ // * Automatically copies old option values to new option names and shows deprecation warnings.
45+ // *
46+ // * @param opts the options object to check and migrate
47+ // * @param oldName the deprecated option name
48+ // * @param newName the new option name to use instead
49+ // * @param rev the version when the deprecation was introduced
50+ // */
5151// export function obsoleteOpts(opts: GridStackOptions, oldName: string, newName: string, rev: string): void {
5252// if (opts[oldName] !== undefined) {
5353// opts[newName] = opts[oldName];
@@ -56,30 +56,30 @@ export interface DragTransform {
5656// }
5757// }
5858
59- /**
60- * @internal Checks for obsolete grid options that have been completely removed.
61- * Shows deprecation warnings for options that are no longer supported.
62- *
63- * @param opts the options object to check
64- * @param oldName the removed option name
65- * @param rev the version when the option was removed
66- * @param info additional information about the removal
67- */
59+ // / **
60+ // * Checks for obsolete grid options that have been completely removed.
61+ // * Shows deprecation warnings for options that are no longer supported.
62+ // *
63+ // * @param opts the options object to check
64+ // * @param oldName the removed option name
65+ // * @param rev the version when the option was removed
66+ // * @param info additional information about the removal
67+ // */
6868// export function obsoleteOptsDel(opts: GridStackOptions, oldName: string, rev: string, info: string): void {
6969// if (opts[oldName] !== undefined) {
7070// console.warn('gridstack.js: Option `' + oldName + '` is deprecated in ' + rev + info);
7171// }
7272// }
7373
74- /**
75- * @internal Checks for obsolete HTML element attributes and migrates them.
76- * Automatically copies old attribute values to new attribute names and shows deprecation warnings.
77- *
78- * @param el the HTML element to check and migrate
79- * @param oldName the deprecated attribute name
80- * @param newName the new attribute name to use instead
81- * @param rev the version when the deprecation was introduced
82- */
74+ // / **
75+ // * Checks for obsolete HTML element attributes and migrates them.
76+ // * Automatically copies old attribute values to new attribute names and shows deprecation warnings.
77+ // *
78+ // * @param el the HTML element to check and migrate
79+ // * @param oldName the deprecated attribute name
80+ // * @param newName the new attribute name to use instead
81+ // * @param rev the version when the deprecation was introduced
82+ // */
8383// export function obsoleteAttr(el: HTMLElement, oldName: string, newName: string, rev: string): void {
8484// const oldAttr = el.getAttribute(oldName);
8585// if (oldAttr !== null) {
0 commit comments