File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,11 @@ StateMachine.ctor = function() {
65
65
*/
66
66
67
67
StateMachine . prototype . _changeState = function _changeState ( path , nextState ) {
68
- const prevBucket = this . states [ this . paths [ path ] ] ;
68
+ const prevState = this . paths [ path ] ;
69
+ if ( prevState === nextState ) {
70
+ return ;
71
+ }
72
+ const prevBucket = this . states [ prevState ] ;
69
73
if ( prevBucket ) delete prevBucket [ path ] ;
70
74
71
75
this . paths [ path ] = nextState ;
Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ const methods = {
375
375
atomics . $push = val ;
376
376
} else {
377
377
if ( val . length === 1 ) {
378
- atomics . $push . $each . push ( val ) ;
378
+ atomics . $push . $each . push ( val [ 0 ] ) ;
379
379
} else if ( val . length < 10000 ) {
380
380
atomics . $push . $each . push ( ...val ) ;
381
381
} else {
You can’t perform that action at this time.
0 commit comments