Delete no longer relevant comments about <url-filter>

This commit is contained in:
Andrew Grieve 2015-03-02 20:43:10 -05:00
parent afdac9b413
commit 53dba8678c
2 changed files with 1 additions and 5 deletions

View File

@ -229,7 +229,7 @@ public class CordovaPlugin {
}
/**
* By specifying a <url-filter> in config.xml you can map a URL (using startsWith atm) to this method.
* Allows plugins to handle a link being clicked. Return true here to cancel the navigation.
*
* @param url The URL that is trying to be loaded in the Cordova webview.
* @return Return true to prevent the URL from loading. Default is false.

View File

@ -424,10 +424,6 @@ public class PluginManager {
* @return Return false to allow the URL to load, return true to prevent the URL from loading.
*/
public boolean onOverrideUrlLoading(String url) {
// Deprecated way to intercept URLs. (process <url-filter> tags).
// Instead, plugins should not include <url-filter> and instead ensure
// that they are loaded before this function is called (either by setting
// the onload <param> or by making an exec() call to them)
for (PluginEntry entry : this.entryMap.values()) {
CordovaPlugin plugin = pluginMap.get(entry.service);
if (plugin != null && plugin.onOverrideUrlLoading(url)) {