1
1
/*!
2
- * Vue.js v1.0.0
2
+ * Vue.js v1.0.1
3
3
* (c) 2015 Evan You
4
4
* Released under the MIT License.
5
5
*/
@@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
146
146
extend ( p , __webpack_require__ ( 65 ) )
147
147
extend ( p , __webpack_require__ ( 66 ) )
148
148
149
- Vue . version = '1.0.0 '
149
+ Vue . version = '1.0.1 '
150
150
module . exports = _ . Vue = Vue
151
151
152
152
/* istanbul ignore if */
@@ -202,7 +202,7 @@ return /******/ (function(modules) { // webpackBootstrap
202
202
return
203
203
}
204
204
ob . convert ( key , val )
205
- ob . notify ( )
205
+ ob . dep . notify ( )
206
206
if ( ob . vms ) {
207
207
var i = ob . vms . length
208
208
while ( i -- ) {
@@ -229,7 +229,7 @@ return /******/ (function(modules) { // webpackBootstrap
229
229
if ( ! ob ) {
230
230
return
231
231
}
232
- ob . notify ( )
232
+ ob . dep . notify ( )
233
233
if ( ob . vms ) {
234
234
var i = ob . vms . length
235
235
while ( i -- ) {
@@ -689,7 +689,7 @@ return /******/ (function(modules) { // webpackBootstrap
689
689
* Check if a node is in the document.
690
690
* Note: document.documentElement.contains should work here
691
691
* but always returns false for comment nodes in phantomjs,
692
- * making unit tests difficult. This is fixed byy doing the
692
+ * making unit tests difficult. This is fixed by doing the
693
693
* contains() check on the node's parentNode instead of
694
694
* the node itself.
695
695
*
@@ -1931,10 +1931,12 @@ return /******/ (function(modules) { // webpackBootstrap
1931
1931
var asset
1932
1932
while ( i -- ) {
1933
1933
asset = assets [ i ]
1934
- var id = asset . name || ( asset . options && asset . options . name )
1934
+ var id = typeof asset === 'function'
1935
+ ? ( ( asset . options && asset . options . name ) || asset . id )
1936
+ : ( asset . name || asset . id )
1935
1937
if ( ! id ) {
1936
1938
( "development" ) !== 'production' && _ . warn (
1937
- 'Array-syntax assets must provide a "name" field.'
1939
+ 'Array-syntax assets must provide a "name" or "id" field.'
1938
1940
)
1939
1941
} else {
1940
1942
res [ id ] = asset
@@ -3611,9 +3613,10 @@ return /******/ (function(modules) { // webpackBootstrap
3611
3613
// update $key
3612
3614
if ( key ) {
3613
3615
frag . scope . $key = key
3614
- if ( iterator ) {
3615
- frag . scope [ iterator ] = key
3616
- }
3616
+ }
3617
+ // update interator
3618
+ if ( iterator ) {
3619
+ frag . scope [ iterator ] = key || i
3617
3620
}
3618
3621
// update data for track-by, object repeat &
3619
3622
// primitive values.
@@ -8829,42 +8832,7 @@ return /******/ (function(modules) { // webpackBootstrap
8829
8832
Observer . prototype . observeArray = function ( items ) {
8830
8833
var i = items . length
8831
8834
while ( i -- ) {
8832
- var ob = Observer . create ( items [ i ] )
8833
- if ( ob ) {
8834
- ( ob . parents || ( ob . parents = [ ] ) ) . push ( this )
8835
- }
8836
- }
8837
- }
8838
-
8839
- /**
8840
- * Remove self from the parent list of removed objects.
8841
- *
8842
- * @param {Array } items
8843
- */
8844
-
8845
- Observer . prototype . unobserveArray = function ( items ) {
8846
- var i = items . length
8847
- while ( i -- ) {
8848
- var ob = items [ i ] && items [ i ] . __ob__
8849
- if ( ob ) {
8850
- ob . parents . $remove ( this )
8851
- }
8852
- }
8853
- }
8854
-
8855
- /**
8856
- * Notify self dependency, and also parent Array dependency
8857
- * if any.
8858
- */
8859
-
8860
- Observer . prototype . notify = function ( ) {
8861
- this . dep . notify ( )
8862
- var parents = this . parents
8863
- if ( parents ) {
8864
- var i = parents . length
8865
- while ( i -- ) {
8866
- parents [ i ] . notify ( )
8867
- }
8835
+ Observer . create ( items [ i ] )
8868
8836
}
8869
8837
}
8870
8838
@@ -8955,6 +8923,12 @@ return /******/ (function(modules) { // webpackBootstrap
8955
8923
if ( childOb ) {
8956
8924
childOb . dep . depend ( )
8957
8925
}
8926
+ if ( _ . isArray ( val ) ) {
8927
+ for ( var e , i = 0 , l = val . length ; i < l ; i ++ ) {
8928
+ e = val [ i ]
8929
+ e && e . __ob__ && e . __ob__ . dep . depend ( )
8930
+ }
8931
+ }
8958
8932
}
8959
8933
return val
8960
8934
} ,
@@ -9007,7 +8981,7 @@ return /******/ (function(modules) { // webpackBootstrap
9007
8981
}
9008
8982
var result = original . apply ( this , args )
9009
8983
var ob = this . __ob__
9010
- var inserted , removed
8984
+ var inserted
9011
8985
switch ( method ) {
9012
8986
case 'push' :
9013
8987
inserted = args
@@ -9017,17 +8991,11 @@ return /******/ (function(modules) { // webpackBootstrap
9017
8991
break
9018
8992
case 'splice' :
9019
8993
inserted = args . slice ( 2 )
9020
- removed = result
9021
- break
9022
- case 'pop' :
9023
- case 'shift' :
9024
- removed = [ result ]
9025
8994
break
9026
8995
}
9027
8996
if ( inserted ) ob . observeArray ( inserted )
9028
- if ( removed ) ob . unobserveArray ( removed )
9029
8997
// notify change
9030
- ob . notify ( )
8998
+ ob . dep . notify ( )
9031
8999
return result
9032
9000
} )
9033
9001
} )
0 commit comments