Ver código fonte

fix #247 native filters improperly being flagged as computed

Evan You 12 anos atrás
pai
commit
489ded41b3
1 arquivos alterados com 4 adições e 1 exclusões
  1. 4 1
      src/main.js

+ 4 - 1
src/main.js

@@ -106,7 +106,10 @@ function extend (options) {
     }
 
     // inherit options
-    options = inheritOptions(options, ParentVM.options, true)
+    // but only when the super class is not the native Vue.
+    if (ParentVM !== ViewModel) {
+        options = inheritOptions(options, ParentVM.options, true)
+    }
     utils.processOptions(options)
 
     var ExtendedVM = function (opts, asParent) {