File tree Expand file tree Collapse file tree 2 files changed +1
-27
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +1
-27
lines changed
Original file line number Diff line number Diff line change @@ -836,7 +836,7 @@ CompilerProto.getOption = function (type, id, silent) {
836
836
? parent . getOption ( type , id , silent )
837
837
: globalAssets [ type ] && globalAssets [ type ] [ id ]
838
838
)
839
- if ( ! res && ! silent ) {
839
+ if ( ! res && ! silent && typeof id === 'string' ) {
840
840
utils . warn ( 'Unknown ' + type . slice ( 0 , - 1 ) + ': ' + id )
841
841
}
842
842
return res
Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ module.exports = {
25
25
ctn . insertBefore ( this . ref , el )
26
26
ctn . removeChild ( el )
27
27
28
- this . initiated = false
29
28
this . collection = null
30
29
this . vms = null
31
30
@@ -41,13 +40,6 @@ module.exports = {
41
40
}
42
41
}
43
42
44
- // if initiating with an empty collection, we need to
45
- // force a compile so that we get all the bindings for
46
- // dependency extraction.
47
- if ( ! this . initiated && ( ! collection || ! collection . length ) ) {
48
- this . dryBuild ( )
49
- }
50
-
51
43
// keep reference of old data and VMs
52
44
// so we can reuse them if possible
53
45
this . oldVMs = this . vms
@@ -65,24 +57,6 @@ module.exports = {
65
57
66
58
} ,
67
59
68
- /**
69
- * Run a dry build just to collect bindings
70
- */
71
- dryBuild : function ( ) {
72
- var el = this . el . cloneNode ( true ) ,
73
- Ctor = this . compiler . resolveComponent ( el )
74
- new Ctor ( {
75
- el : el ,
76
- parent : this . vm ,
77
- data : { $index : 0 } ,
78
- compilerOptions : {
79
- repeat : true ,
80
- expCache : this . expCache
81
- }
82
- } ) . $destroy ( )
83
- this . initiated = true
84
- } ,
85
-
86
60
init : function ( collection , isObject ) {
87
61
var vm , vms = [ ]
88
62
for ( var i = 0 , l = collection . length ; i < l ; i ++ ) {
You can’t perform that action at this time.
0 commit comments