|
@@ -27,11 +27,10 @@ var terminalDirectives = [
|
|
|
* @param {Element|DocumentFragment} el
|
|
* @param {Element|DocumentFragment} el
|
|
|
* @param {Object} options
|
|
* @param {Object} options
|
|
|
* @param {Boolean} partial
|
|
* @param {Boolean} partial
|
|
|
- * @param {Vue} [host] - host vm of transcluded content
|
|
|
|
|
* @return {Function}
|
|
* @return {Function}
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
-exports.compile = function (el, options, partial, host) {
|
|
|
|
|
|
|
+exports.compile = function (el, options, partial) {
|
|
|
// link function for the node itself.
|
|
// link function for the node itself.
|
|
|
var nodeLinkFn = partial || !options._asComponent
|
|
var nodeLinkFn = partial || !options._asComponent
|
|
|
? compileNode(el, options)
|
|
? compileNode(el, options)
|
|
@@ -51,10 +50,11 @@ exports.compile = function (el, options, partial, host) {
|
|
|
*
|
|
*
|
|
|
* @param {Vue} vm
|
|
* @param {Vue} vm
|
|
|
* @param {Element|DocumentFragment} el
|
|
* @param {Element|DocumentFragment} el
|
|
|
|
|
+ * @param {Vue} [host] - host vm of transcluded content
|
|
|
* @return {Function|undefined}
|
|
* @return {Function|undefined}
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
- return function compositeLinkFn (vm, el) {
|
|
|
|
|
|
|
+ return function compositeLinkFn (vm, el, host) {
|
|
|
// cache childNodes before linking parent, fix #657
|
|
// cache childNodes before linking parent, fix #657
|
|
|
var childNodes = _.toArray(el.childNodes)
|
|
var childNodes = _.toArray(el.childNodes)
|
|
|
// link
|
|
// link
|