mirror of
https://github.com/wassname/simpeg.git
synced 2026-08-12 12:30:37 +08:00
@@ -136,6 +136,7 @@ def callHooks(match, mainFirst=False):
|
||||
def dependentProperty(name, value, children, doc):
|
||||
def fget(self): return getattr(self,name,value)
|
||||
def fset(self, val):
|
||||
if getattr(self,name,value) == val: return # it is the same!
|
||||
for child in children:
|
||||
if hasattr(self, child):
|
||||
delattr(self, child)
|
||||
|
||||
Reference in New Issue
Block a user