nl_tokens: / * cleanupStyles ------------- Used for removing all prefixed versions added by server - side rendering . There is a lot of edge - cases in browsers with vendor prefixes so the only strategy that works consistently is let React render all prefixed styles at all times then having this cleanup phase that removes all styles then adds back the styles that we should keep .
pl_tokens: function cleanupStyles ( item ) { var prop ; var reactProps ; if ( item . props . style ) { reactProps = { } ; for ( prop in item . props . style ) { reactProps [ prop ] = item . _node . style [ prop ] ; } } item . _node . removeAttribute ( 'style' ) ; if ( reactProps ) { for ( prop in reactProps ) { item . _node . style [ prop ] = reactProps [ prop ] ; } } if ( item . _prevStyles ) { for ( prop <mask> item . _prevStyles ) { item . _node . style [ prop ] = item . _prevStyles [ prop ] ; } } }