File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,11 @@ module.exports = {
21
21
this . template . appendChild ( templateParser . clone ( el ) )
22
22
}
23
23
// compile the nested partial
24
- var cacheId = ( this . vm . constructor . cid || '' ) + el . outerHTML
24
+ var cacheId =
25
+ ( this . vm . constructor . cid + '.' || '' ) +
26
+ // fix #1185: linker is host-sensitive
27
+ ( this . _host ? this . _host . _uid + '.' : '' ) +
28
+ el . outerHTML
25
29
this . linker = cache . get ( cacheId )
26
30
if ( ! this . linker ) {
27
31
this . linker = compiler . compile (
Original file line number Diff line number Diff line change 1
1
var mergeOptions = require ( '../util' ) . mergeOptions
2
+ var uid = 0
2
3
3
4
/**
4
5
* The main init sequence. This is called for every
@@ -25,6 +26,8 @@ exports._init = function (options) {
25
26
this . _directives = [ ] // all directives
26
27
this . _childCtors = { } // inherit:true constructors
27
28
29
+ this . _uid = uid ++
30
+
28
31
// a flag to avoid this being observed
29
32
this . _isVue = true
30
33
You can’t perform that action at this time.
0 commit comments