File tree Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Expand file tree Collapse file tree 1 file changed +0
-26
lines changed Original file line number Diff line number Diff line change 653
653
/**
654
654
* @param newLayer Layer to apply to this
655
655
* @param reconnectComponents Whether components should be reconnected or not
656
- * @deprecated since 2.5.0. Use @{ComponentContainer#setLayer} instead
657
656
*/
658
657
applyLayer : function ( newLayer , reconnectComponents ) {
659
- console . warn ( "ComponentContainer.applyLayer is deprecated; use ComponentContainer.setLayer instead" ) ;
660
- if ( reconnectComponents !== false ) {
661
- reconnectComponents = true ;
662
- }
663
- if ( reconnectComponents === true ) {
664
- this . forEachComponent ( function ( component ) {
665
- component . disconnect ( ) ;
666
- } ) ;
667
- }
668
-
669
- script . deepMerge ( this , newLayer ) ;
670
-
671
- if ( reconnectComponents === true ) {
672
- this . forEachComponent ( function ( component ) {
673
- component . connect ( ) ;
674
- component . trigger ( ) ;
675
- } ) ;
676
- }
677
- } ,
678
- /**
679
- * @param newLayer Layer to apply to this
680
- * @param reconnectComponents Whether components should be reconnected or not
681
- */
682
- setLayer ( newLayer , reconnectComponents ) {
683
658
if ( reconnectComponents !== false ) {
684
659
reconnectComponents = true ;
685
660
}
697
672
component . trigger ( ) ;
698
673
} ) ;
699
674
}
700
-
701
675
} ,
702
676
shutdown : function ( ) {
703
677
this . forEachComponent ( function ( component ) {
You can’t perform that action at this time.
0 commit comments