File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1118,18 +1118,18 @@ class UICollectionViewFlowLinearLayoutImpl extends UICollectionViewFlowLayout {
1118
1118
const originalLayoutAttribute = super . layoutAttributesForElementsInRect ( rect ) ;
1119
1119
const visibleLayoutAttributes = NSMutableArray . alloc ( ) . init ( ) ;
1120
1120
if ( owner && owner . transformers ) {
1121
- const transformsArray = owner . transformers . split ( ' ' ) ;
1121
+ const transformsArray = owner . transformers
1122
+ . split ( ' ' )
1123
+ . map ( ( s ) => Pager . mRegisteredTransformers [ s ] )
1124
+ . filter ( ( s ) => ! ! s ) ;
1122
1125
if ( transformsArray . length ) {
1123
1126
const collectionView = this . collectionView ;
1124
1127
const count = originalLayoutAttribute . count ;
1125
1128
for ( let i = 0 ; i < count ; i ++ ) {
1126
1129
const attributes = originalLayoutAttribute . objectAtIndex ( i ) ;
1127
1130
visibleLayoutAttributes . addObject ( attributes ) ;
1128
1131
for ( const transformer of transformsArray ) {
1129
- const nativeTransformer = Pager . mRegisteredTransformers [ transformer ] ;
1130
- if ( nativeTransformer ) {
1131
- nativeTransformer ( i , attributes , owner , collectionView ) ;
1132
- }
1132
+ transformer ( i , attributes , owner , collectionView ) ;
1133
1133
}
1134
1134
}
1135
1135
}
You can’t perform that action at this time.
0 commit comments