Procházet zdrojové kódy

fix #247 native filters improperly being flagged as computed

Evan You před 12 roky
rodič
revize
489ded41b3
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  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) {