11/*!
2- * Vue.js v1.0.0
2+ * Vue.js v1.0.1
33 * (c) 2015 Evan You
44 * Released under the MIT License.
55 */
@@ -146,7 +146,7 @@ return /******/ (function(modules) { // webpackBootstrap
146146 extend ( p , __webpack_require__ ( 65 ) )
147147 extend ( p , __webpack_require__ ( 66 ) )
148148
149- Vue . version = '1.0.0 '
149+ Vue . version = '1.0.1 '
150150 module . exports = _ . Vue = Vue
151151
152152 /* istanbul ignore if */
@@ -202,7 +202,7 @@ return /******/ (function(modules) { // webpackBootstrap
202202 return
203203 }
204204 ob . convert ( key , val )
205- ob . notify ( )
205+ ob . dep . notify ( )
206206 if ( ob . vms ) {
207207 var i = ob . vms . length
208208 while ( i -- ) {
@@ -229,7 +229,7 @@ return /******/ (function(modules) { // webpackBootstrap
229229 if ( ! ob ) {
230230 return
231231 }
232- ob . notify ( )
232+ ob . dep . notify ( )
233233 if ( ob . vms ) {
234234 var i = ob . vms . length
235235 while ( i -- ) {
@@ -689,7 +689,7 @@ return /******/ (function(modules) { // webpackBootstrap
689689 * Check if a node is in the document.
690690 * Note: document.documentElement.contains should work here
691691 * 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
693693 * contains() check on the node's parentNode instead of
694694 * the node itself.
695695 *
@@ -1931,10 +1931,12 @@ return /******/ (function(modules) { // webpackBootstrap
19311931 var asset
19321932 while ( i -- ) {
19331933 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 )
19351937 if ( ! id ) {
19361938 ( "development" ) !== 'production' && _ . warn (
1937- 'Array-syntax assets must provide a "name" field.'
1939+ 'Array-syntax assets must provide a "name" or "id" field.'
19381940 )
19391941 } else {
19401942 res [ id ] = asset
@@ -3611,9 +3613,10 @@ return /******/ (function(modules) { // webpackBootstrap
36113613 // update $key
36123614 if ( key ) {
36133615 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
36173620 }
36183621 // update data for track-by, object repeat &
36193622 // primitive values.
@@ -8829,42 +8832,7 @@ return /******/ (function(modules) { // webpackBootstrap
88298832 Observer . prototype . observeArray = function ( items ) {
88308833 var i = items . length
88318834 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 ] )
88688836 }
88698837 }
88708838
@@ -8955,6 +8923,12 @@ return /******/ (function(modules) { // webpackBootstrap
89558923 if ( childOb ) {
89568924 childOb . dep . depend ( )
89578925 }
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+ }
89588932 }
89598933 return val
89608934 } ,
@@ -9007,7 +8981,7 @@ return /******/ (function(modules) { // webpackBootstrap
90078981 }
90088982 var result = original . apply ( this , args )
90098983 var ob = this . __ob__
9010- var inserted , removed
8984+ var inserted
90118985 switch ( method ) {
90128986 case 'push' :
90138987 inserted = args
@@ -9017,17 +8991,11 @@ return /******/ (function(modules) { // webpackBootstrap
90178991 break
90188992 case 'splice' :
90198993 inserted = args . slice ( 2 )
9020- removed = result
9021- break
9022- case 'pop' :
9023- case 'shift' :
9024- removed = [ result ]
90258994 break
90268995 }
90278996 if ( inserted ) ob . observeArray ( inserted )
9028- if ( removed ) ob . unobserveArray ( removed )
90298997 // notify change
9030- ob . notify ( )
8998+ ob . dep . notify ( )
90318999 return result
90329000 } )
90339001 } )
0 commit comments