|
Rank: Advanced Member Groups: Member
Joined: 3/11/2014 Posts: 57
|
I have created a custom ResourceHandler and registered it on a WebView, using the RegisterResourceHandler method.
When i am done with the WebView object, how can i remove the resource handler? I may use that same web view object later on, in a different context, in which the resource handler is not appropriate.
Like, i add FileDialog event handlers when setting up the web view, and i remove them when finished with the web view.
Shouldn't i be doing the same for resource handlers?
Similar question for js extension functions added with RegisterJSExtensionFunction. Shouldn't i be able to unregister those somehow?
Thanks roger
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
There is no way to unregister a resource handler in the current build. However your scenario present a very valid case to have one. So we will add an UnregisterResourceHandler method in our next build.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/11/2014 Posts: 57
|
Great. Any idea when that will be? Thanks
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
This is just to let you know that we have posted a new build that added this method. You can download the new build from our download page.
Thanks!
|
|
Rank: Advanced Member Groups: Member
Joined: 3/11/2014 Posts: 57
|
That's great thanks. But you didn't provide a corresponding cleanup method for RegisterJSExtensionFunction, which was also mentioned in my previous post.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,229
|
Hi,
You should be able to call RegisterJSExtensionFunction(functionName, null) to unregister a JS extension function.
Thanks!
|
|