File tree 3 files changed +11
-4
lines changed
3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1
- EpEv8ewlNPY90ULIm8etkaS9plo =
1
+ WeIr8BhWti5PEgIpG30j/drpLD4 =
Original file line number Diff line number Diff line change @@ -999,7 +999,9 @@ class UI5Element extends HTMLElement {
999
999
1000
1000
if ( altTag && ! customElements . get ( altTag ) ) {
1001
1001
registerTag ( altTag ) ;
1002
- window . customElements . define ( altTag , getClassCopy ( this ) ) ;
1002
+ window . customElements . define ( altTag , getClassCopy ( this , ( ) => {
1003
+ console . log ( `The ${ altTag } tag is deprecated and will be removed in the next release, please use ${ tag } instead.` ) ; // eslint-disable-line
1004
+ } ) ) ;
1003
1005
}
1004
1006
}
1005
1007
return this ;
Original file line number Diff line number Diff line change 1
- const getClassCopy = klass => {
2
- return class classCopy extends klass { } ;
1
+ const getClassCopy = ( klass , constructorCallback ) => {
2
+ return class classCopy extends klass {
3
+ constructor ( ) {
4
+ super ( ) ;
5
+ constructorCallback && constructorCallback ( ) ;
6
+ }
7
+ } ;
3
8
} ;
4
9
5
10
export default getClassCopy ;
You can’t perform that action at this time.
0 commit comments