File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 508
508
}
509
509
510
510
if ( this . _columnTree ) {
511
- this . _columnTree [ this . _columnTree . length - 1 ] . forEach ( c => c . notifyPath && c . notifyPath ( '_cells.*' , c . _cells ) ) ;
511
+ this . _columnTree [ this . _columnTree . length - 1 ] . forEach (
512
+ ( c ) => c . isConnected && c . notifyPath && c . notifyPath ( '_cells.*' , c . _cells )
513
+ ) ;
512
514
}
513
515
514
516
Polymer . RenderStatus . beforeNextRender ( this , ( ) => {
Original file line number Diff line number Diff line change 587
587
expect ( column . _bodyTemplate ) . to . eql ( template2 ) ;
588
588
} ) ;
589
589
} ) ;
590
+
591
+ it ( 'should not throw an exception when size is changed after removing column' , ( ) => {
592
+ expect ( grid . size ) . to . equal ( 10 ) ;
593
+ expect ( column . isConnected ) . to . be . true ;
594
+ column . parentNode . removeChild ( column ) ;
595
+ expect ( column . isConnected ) . to . be . false ;
596
+ expect ( ( ) => ( grid . size = 11 ) ) . not . to . throw ( ) ;
597
+ expect ( grid . size ) . to . equal ( 11 ) ;
598
+ } ) ;
590
599
} ) ;
591
600
592
601
describe ( 'pro host' , ( ) => {
You can’t perform that action at this time.
0 commit comments