Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 23dab60

Browse filesBrowse files
committed
only compile props if el is an element. (fix vuejs#1139)
1 parent 923be29 commit 23dab60
Copy full SHA for 23dab60

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎src/instance/scope.js

Copy file name to clipboardExpand all lines: src/instance/scope.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ exports._initProps = function () {
3636
}
3737
// make sure to convert string selectors into element now
3838
el = options.el = _.query(el)
39-
this._propsUnlinkFn = el && props
39+
this._propsUnlinkFn = el && el.nodeType === 1 && props
4040
? compiler.compileAndLinkProps(
4141
this, el, props
4242
)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.