@@ -880,7 +880,7 @@ return /******/ (function(modules) { // webpackBootstrap
880
880
}
881
881
return paramObj ;
882
882
}
883
- _ . eventReg = / ^ o n - ( \w [ - \w ] + ) $ / ;
883
+ _ . eventReg = / ^ o n - ( \w [ - \w ] * ) $ / ;
884
884
885
885
_ . toText = function ( obj ) {
886
886
return obj == null ? "" : "" + obj ;
@@ -4337,7 +4337,7 @@ return /******/ (function(modules) { // webpackBootstrap
4337
4337
}
4338
4338
4339
4339
if ( ! steps || ! steps . length ) return ;
4340
-
4340
+
4341
4341
for ( var i = 0 ; i < steps . length ; i ++ ) { //init
4342
4342
4343
4343
var splice = steps [ i ] ;
@@ -4384,7 +4384,7 @@ return /******/ (function(modules) { // webpackBootstrap
4384
4384
4385
4385
// oldKeyMap: 复用原来的节点
4386
4386
function updateTrack ( newList , oldList , steps , rawNewValue , oldKeyMap ) {
4387
-
4387
+
4388
4388
for ( var i = 0 , slen = steps . length ; i < slen ; i ++ ) {
4389
4389
var step = steps [ i ] ;
4390
4390
switch ( step . mode ) {
@@ -4395,7 +4395,7 @@ return /******/ (function(modules) { // webpackBootstrap
4395
4395
addRange ( step . index , step . index + step . len , newList , rawNewValue , oldKeyMap )
4396
4396
break ;
4397
4397
}
4398
- }
4398
+ }
4399
4399
var children = group . children ;
4400
4400
for ( var j = 1 , len = children . length ; j < len ; j ++ ) {
4401
4401
var child = children [ j ] ;
@@ -4405,7 +4405,7 @@ return /******/ (function(modules) { // webpackBootstrap
4405
4405
}
4406
4406
}
4407
4407
4408
-
4408
+
4409
4409
}
4410
4410
4411
4411
function update ( newValue , oldValue , steps , oldKeyMap , isSimple ) {
@@ -4431,13 +4431,13 @@ return /******/ (function(modules) { // webpackBootstrap
4431
4431
if ( group . get ( 1 ) ) {
4432
4432
var altGroup = children . pop ( ) ;
4433
4433
if ( altGroup . destroy ) altGroup . destroy ( true ) ;
4434
- }
4434
+ }
4435
4435
return addRange ( 0 , nlen , newList , rawNewValue )
4436
4436
}
4437
4437
// @ {#list} {#else}
4438
4438
if ( ! nlen ) {
4439
4439
if ( olen ) {
4440
- removeRange ( 0 , olen , group . children )
4440
+ removeRange ( 0 , olen , group . children )
4441
4441
}
4442
4442
if ( alternate && alternate . length ) {
4443
4443
var section = self . $compile ( alternate , {
@@ -4455,7 +4455,7 @@ return /******/ (function(modules) { // webpackBootstrap
4455
4455
}
4456
4456
4457
4457
if ( track ) {
4458
-
4458
+
4459
4459
if ( track === true || ( isSimple && ! steps . length ) ) { // track 可能走simple update
4460
4460
updateSimple ( newList , oldList , rawNewValue ) ;
4461
4461
} else {
@@ -4467,15 +4467,15 @@ return /******/ (function(modules) { // webpackBootstrap
4467
4467
}
4468
4468
updateTrack ( newList , oldList , steps , rawNewValue , oldKeyMap ) ;
4469
4469
}
4470
-
4470
+
4471
4471
} else {
4472
4472
updateLD ( newList , oldList , steps , rawNewValue ) ;
4473
4473
}
4474
4474
4475
4475
}
4476
4476
4477
- this . $watch ( ast . sequence , update , {
4478
- init : true ,
4477
+ this . $watch ( ast . sequence , update , {
4478
+ init : true ,
4479
4479
keyOf : keyOf ,
4480
4480
diff : track !== true ,
4481
4481
deep : true
@@ -4691,7 +4691,7 @@ return /******/ (function(modules) { // webpackBootstrap
4691
4691
tag = ast . tag ,
4692
4692
Component = Constructor . component ( tag ) ,
4693
4693
ref , group , element , mountNode ;
4694
-
4694
+
4695
4695
4696
4696
4697
4697
@@ -4701,18 +4701,18 @@ return /******/ (function(modules) { // webpackBootstrap
4701
4701
}
4702
4702
4703
4703
4704
- // if inititalized with mount mode, sometime,
4704
+ // if inititalized with mount mode, sometime,
4705
4705
// browser will ignore the whitespace between node, and sometimes it won't
4706
4706
if ( cursor ) {
4707
4707
// textCOntent with Empty text
4708
4708
if ( cursor . node && cursor . node . nodeType === 3 ) {
4709
4709
if ( _ . blankReg . test ( dom . text ( cursor . node ) ) ) cursor . next ( ) ;
4710
4710
else if ( ! Component && tag !== 'r-component' ) {
4711
4711
throw Error ( MSG [ ERROR . UNMATCHED_AST ] ) ;
4712
- }
4712
+ }
4713
4713
}
4714
4714
}
4715
-
4715
+
4716
4716
if ( Component || tag === 'r-component' ) {
4717
4717
options . Component = Component ;
4718
4718
return walkers . component . call ( this , ast , options )
@@ -4816,7 +4816,7 @@ return /******/ (function(modules) { // webpackBootstrap
4816
4816
}
4817
4817
4818
4818
4819
- // @deprecated use
4819
+ // @deprecated use
4820
4820
if ( attr . mdf === 'cmpl' ) {
4821
4821
value = _ . getCompileFn ( value , this , {
4822
4822
record : true ,
@@ -4833,7 +4833,7 @@ return /******/ (function(modules) { // webpackBootstrap
4833
4833
namespace : namespace ,
4834
4834
extra : extra ,
4835
4835
outer : options . outer
4836
- } )
4836
+ } )
4837
4837
}
4838
4838
4839
4839
// @if is r-component . we need to find the target Component
@@ -4911,7 +4911,10 @@ return /******/ (function(modules) { // webpackBootstrap
4911
4911
} ) . bind ( component , name ) , OPTIONS . SYNC )
4912
4912
if ( value . set && ! ( isolate & 1 ) )
4913
4913
// sync the data. it force the component don't trigger attr.name's first dirty echeck
4914
- component . $watch ( name , self . $update . bind ( self , value ) , OPTIONS . INIT ) ;
4914
+ component . $watch ( name , self . $update . bind ( self , value ) , {
4915
+ init : true ,
4916
+ last : this . data [ name ]
4917
+ } ) ;
4915
4918
}
4916
4919
}
4917
4920
if ( is && is . type === 'expression' ) {
0 commit comments