8000 fix #247 native filters improperly being flagged as computed · hwclass/vue@489ded4 · GitHub
[go: up one dir, main page]

Skip to content

Commit 489ded4

Browse files
author
Evan You
committed
fix vuejs#247 native filters improperly being flagged as computed
1 parent 81ae36c commit 489ded4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,10 @@ function extend (options) {
106106
}
107107

108108
// inherit options
109-
options = inheritOptions(options, ParentVM.options, true)
109+
// but only when the super class is not the native Vue.
110+
if (ParentVM !== ViewModel) {
111+
options = inheritOptions(options, ParentVM.options, true)
112+
}
110113
utils.processOptions(options)
111114

112115
var ExtendedVM = function (opts, asParent) {

0 commit comments

Comments
 (0)
0