@@ -30,7 +30,7 @@ const vFor = {
30
30
'leave-stagger'
31
31
] ,
32
32
33
- bind : function ( ) {
33
+ bind ( ) {
34
34
// support "item in/of items" syntax
35
35
var inMatch = this . expression . match ( / ( .* ) (?: i n | o f ) ( .* ) / )
36
36
if ( inMatch ) {
@@ -78,7 +78,7 @@ const vFor = {
78
78
this . factory = new FragmentFactory ( this . vm , this . el )
79
79
} ,
80
80
81
- update : function ( data ) {
81
+ update ( data ) {
82
82
this . diff ( data )
83
83
this . updateRef ( )
84
84
this . updateModel ( )
@@ -98,7 +98,7 @@ const vFor = {
98
98
* @param {Array } data
99
99
*/
100
100
101
- diff : function ( data ) {
101
+ diff ( data ) {
102
102
// check if the Array was converted from an Object
103
103
var item = data [ 0 ]
104
104
var convertedFromObject = this . fromObject =
@@ -224,7 +224,7 @@ const vFor = {
224
224
* @return {Fragment }
225
225
*/
226
226
227
- create : function ( value , alias , index , key ) {
227
+ create ( value , alias , index , key ) {
228
228
var host = this . _host
229
229
// create iteration scope
230
230
var parentScope = this . _scope || this . vm
@@ -258,7 +258,7 @@ const vFor = {
258
258
* Update the v-ref on owner vm.
259
259
*/
260
260
261
- updateRef : function ( ) {
261
+ updateRef ( ) {
262
262
var ref = this . descriptor . ref
263
263
if ( ! ref ) return
264
264
var hash = ( this . _scope || this . vm ) . $refs
@@ -279,7 +279,7 @@ const vFor = {
279
279
* parent <select>.
280
280
*/
281
281
282
- updateModel : function ( ) {
282
+ updateModel ( ) {
283
283
if ( this . isOption ) {
284
284
var parent = this . start . parentNode
285
285
var model = parent && parent . __v_model
@@ -298,7 +298,7 @@ const vFor = {
298
298
* @param {Boolean } inDocument
299
299
*/
300
300
301
- insert : function ( frag , index , prevEl , inDocument ) {
301
+ insert ( frag , index , prevEl , inDocument ) {
302
302
if ( frag . staggerCb ) {
303
303
frag . staggerCb . cancel ( )
304
304
frag . staggerCb = null
@@ -334,7 +334,7 @@ const vFor = {
334
334
* @param {Boolean } inDocument
335
335
*/
336
336
337
- remove : function ( frag , index , total , inDocument ) {
337
+ remove ( frag , index , total , inDocument ) {
338
338
if ( frag . staggerCb ) {
339
339
frag . staggerCb . cancel ( )
340
340
frag . staggerCb = null
@@ -365,7 +365,7 @@ const vFor = {
365
365
* @param {Node } prevEl
366
366
*/
367
367
368
- move : function ( frag , prevEl ) {
368
+ move ( frag , prevEl ) {
369
369
// fix a common issue with Sortable:
370
370
// if prevEl doesn't have nextSibling, this means it's
371
371
// been dragged after the end anchor. Just re-position
@@ -386,7 +386,7 @@ const vFor = {
386
386
* @param {String } [key]
387
387
*/
388
388
389
- cacheFrag : function ( value , frag , index , key ) {
389
+ cacheFrag ( value , frag , index , key ) {
390
390
var trackByKey = this . params . trackBy
391
391
var cache = this . cache
392
392
var primitive = ! isObject ( value )
@@ -428,7 +428,7 @@ const vFor = {
428
428
* @return {Fragment }
429
429
*/
430
430
431
- getCachedFrag : function ( value , index , key ) {
431
+ getCachedFrag ( value , index , key ) {
432
432
var trackByKey = this . params . trackBy
433
433
var primitive = ! isObject ( value )
434
434
var frag
@@ -455,7 +455,7 @@ const vFor = {
455
455
* @param {Fragment } frag
456
456
*/
457
457
458
- deleteCachedFrag : function ( frag ) {
458
+ deleteCachedFrag ( frag ) {
459
459
var value = frag . raw
460
460
var trackByKey = this . params . trackBy
461
461
var scope = frag . scope
@@ -486,7 +486,7 @@ const vFor = {
486
486
* @param {String } type
487
487
*/
488
488
489
- getStagger : function ( frag , index , total , type ) {
489
+ getStagger ( frag , index , total , type ) {
490
490
type = type + 'Stagger'
491
491
var trans = frag . node . __v_trans
492
492
var hooks = trans && trans . hooks
@@ -501,7 +501,7 @@ const vFor = {
501
501
* filters. This is passed to and called by the watcher.
502
502
*/
503
503
504
- _preProcess : function ( value ) {
504
+ _preProcess ( value ) {
505
505
// regardless of type, store the un-filtered raw value.
506
506
this . rawValue = value
507
507
return value
@@ -516,7 +516,7 @@ const vFor = {
516
516
* the v-for to update when the source Object is mutated.
517
517
*/
518
518
519
- _postProcess : function ( value ) {
519
+ _postProcess ( value ) {
520
520
if ( isArray ( value ) ) {
521
521
return value
522
522
} else if ( isPlainObject ( value ) ) {
@@ -541,7 +541,7 @@ const vFor = {
541
541
}
542
542
} ,
543
543
544
- unbind : function ( ) {
544
+ unbind ( ) {
545
545
if ( this . descriptor . ref ) {
546
546
( this . _scope || this . vm ) . $refs [ this . descriptor . ref ] = null
547
547
}
0 commit comments