File tree 4 files changed +18
-28
lines changed
4 files changed +18
-28
lines changed Original file line number Diff line number Diff line change @@ -32,16 +32,14 @@ var app = new Vue({
32
32
}
33
33
} ,
34
34
computed : {
35
- isValid : {
36
- $get : function ( ) {
37
- var valid = true
38
- for ( var key in this . validation ) {
39
- if ( ! this . validation [ key ] ) {
40
- valid = false
41
- }
35
+ isValid : function ( ) {
36
+ var valid = true
37
+ for ( var key in this . validation ) {
38
+ if ( ! this . validation [ key ] ) {
39
+ valid = false
42
40
}
43
- return valid
44
41
}
42
+ return valid
45
43
}
46
44
} ,
47
45
methods : {
Original file line number Diff line number Diff line change @@ -35,15 +35,11 @@ <h3>Computed property that concats the two: <span v-text="d"></span></h3>
35
35
}
36
36
} ,
37
37
computed : {
38
- d : {
39
- $get : function ( ) {
40
- return this . msg + ( this . a . b . c || '' ) + ( this . a . c || '' )
41
- }
38
+ d : function ( ) {
39
+ return this . msg + ( this . a . b . c || '' ) + ( this . a . c || '' )
42
40
} ,
43
- sum : {
44
- $get : function ( ) {
45
- return this . hidden . a + this . hidden . b
46
- }
41
+ sum : function ( ) {
42
+ return this . hidden . a + this . hidden . b
47
43
}
48
44
} ,
49
45
methods : {
Original file line number Diff line number Diff line change 44
44
shared : shared
45
45
} ,
46
46
computed : {
47
- source : {
48
- $get : function ( ) {
49
- return JSON . stringify ( this . shared )
50
- }
47
+ source : function ( ) {
48
+ return JSON . stringify ( this . shared )
51
49
}
52
50
}
53
51
} )
Original file line number Diff line number Diff line change 45
45
}
46
46
} ,
47
47
computed : {
48
- isValid : {
49
- $get : function ( ) {
50
- var valid = true
51
- for ( var key in this . validation ) {
52
- if ( ! this . validation [ key ] ) {
53
- valid = false
54
- }
48
+ isValid : function ( ) {
49
+ var valid = true
50
+ for ( var key in this . validation ) {
51
+ if ( ! this . validation [ key ] ) {
52
+ valid = false
55
53
}
56
- return valid
57
54
}
55
+ return valid
58
56
}
59
57
} ,
60
58
methods : {
You can’t perform that action at this time.
0 commit comments