File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ import {
1313 SVG_NAMESPACE ,
1414 UNDEFINED ,
1515 XHTML_NAMESPACE ,
16- MATHML_TOKEN_ELEMENTS
16+ MATHML_TOKEN_ELEMENTS ,
17+ EMPTY_ARR
1718} from '../constants' ;
1819import { BaseComponent , getDomSibling } from '../component' ;
1920import { Fragment } from '../create-element' ;
@@ -209,7 +210,7 @@ export function diff(
209210 if ( vnode ) vnode . _parent = newVNode ;
210211 } ) ;
211212
212- c . _renderCallbacks . push ( ... c . _stateCallbacks ) ;
213+ EMPTY_ARR . push . apply ( c . _renderCallbacks , c . _stateCallbacks ) ;
213214 c . _stateCallbacks = [ ] ;
214215
215216 if ( c . _renderCallbacks . length ) {
@@ -245,7 +246,7 @@ export function diff(
245246
246247 tmp = c . render ( c . props , c . state , c . context ) ;
247248
248- c . _renderCallbacks . push ( ... c . _stateCallbacks ) ;
249+ EMPTY_ARR . push . apply ( c . _renderCallbacks , c . _stateCallbacks ) ;
249250 c . _stateCallbacks = [ ] ;
250251 } else {
251252 do {
You can’t perform that action at this time.
0 commit comments