Explorar el Código

-cache of proxy on Savable

Ivan Asmer hace 5 años
padre
commit
ca3bb640cc
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      index.js

+ 2 - 2
index.js

@@ -321,7 +321,7 @@ const mm = db => {
 
 
 
 
         static get m(){ 
         static get m(){ 
-            return Savable._m = (Savable._m || (new Proxy({}, {
+            return Savable._m = (new Proxy({}, {
                 get(obj, _class){
                 get(obj, _class){
                     if (_class in obj){
                     if (_class in obj){
                         return obj[_class]
                         return obj[_class]
@@ -369,7 +369,7 @@ const mm = db => {
 
 
                 set(obj, propName, value){
                 set(obj, propName, value){
                 }
                 }
-            })))
+            }))
         }
         }
 
 
         static get relations(){ 
         static get relations(){