Closed OxyFuse closed 11 years ago
Hey!
This is entirely down to the implementation of whatever you're doing.
If a plugin is called on match, then it's worthwhile making sure that the plugin has a destroy function or something similar to undo whatever it did.
If the code for match is something you wrote, then you just have to write code to reverse whatever it did. There are a few strategies for this, like cloning the elements you wish to change during setup, so that you always have pristine version of those elements to swap back in.
Beyond that I cannot help I'm afraid, as it's purely an implementation detail and not an issue with enquire.
Hope that helps
Thanks for the response.
Right now I was able to reverse on unmatch
for the code I've written but for the plugins I think I have to request the authors for some destroy method.
Is there some sort of a
functionName.unmatch()
orplugin.unmatch()
that can be used inunmatch function
?I have this test case which I'm stuck on the unmatch.: