godot/mapping.py
def unmap_model(self, old):
        """ Removes listeners from a domain model """

        for node_mapping in self.nodes:
            ct = node_mapping.containment_trait
            if hasattr(old, ct):
                old_elements = getattr(old, ct)
                for old_element in old_elements:
                    old.on_trait_change(
                        self.map_element, ct+"_items", remove=True
                    )
def unmap_model(self, old):
        for node_mapping in self.nodes:
            ct = node_mapping.containment_trait
            if hasattr(old, ct):
                old_elements = getattr(old, ct)
                for old_element in old_elements:
                    old.on_trait_change(
                        self.map_element, ct+"_items", remove=True
                    )
def unmap_model ( self , old ) : for node_mapping in self . nodes : ct = node_mapping . containment_trait if hasattr ( old , ct ) : old_elements = getattr ( old , ct ) for old_element in old_elements : old . on_trait_change ( self . map_element , ct + "_items" , remove = True )
Removes listeners from a domain model
Removes listeners from a domain model