@@ -475,7 +475,7 @@ export class ProgramConfiguration {
475475 for ( const property in this . binders ) {
476476 const binder = this . binders [ property ] ;
477477 if ( binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder || binder instanceof CrossFadedCompositeBinder )
478- ( binder as AttributeBinder ) . populatePaintArray ( newLength , feature , options ) ;
478+ binder . populatePaintArray ( newLength , feature , options ) ;
479479 }
480480 }
481481 setConstantPatternPositions ( posTo : ImagePosition , posFrom : ImagePosition ) {
@@ -503,11 +503,11 @@ export class ProgramConfiguration {
503503 for ( const property in this . binders ) {
504504 const binder = this . binders [ property ] ;
505505 if ( ( binder instanceof SourceExpressionBinder || binder instanceof CompositeExpressionBinder ||
506- binder instanceof CrossFadedCompositeBinder ) && ( binder as any ) . expression . isStateDependent === true ) {
506+ binder instanceof CrossFadedCompositeBinder ) && binder . expression . isStateDependent === true ) {
507507 //AHM: Remove after https://github.com/mapbox/mapbox-gl-js/issues/6255
508508 const value = ( layer . paint as any ) . get ( property ) ;
509- ( binder as any ) . expression = value . value ;
510- ( binder as AttributeBinder ) . updatePaintArray ( pos . start , pos . end , feature , featureStates [ id ] , options ) ;
509+ binder . expression = value . value ;
510+ binder . updatePaintArray ( pos . start , pos . end , feature , featureStates [ id ] , options ) ;
511511 dirty = true ;
512512 }
513513 }
0 commit comments