diff --git a/framework/src/org/apache/cordova/CordovaPlugin.java b/framework/src/org/apache/cordova/CordovaPlugin.java index c223f5cc..e4b3ace2 100644 --- a/framework/src/org/apache/cordova/CordovaPlugin.java +++ b/framework/src/org/apache/cordova/CordovaPlugin.java @@ -229,7 +229,7 @@ public class CordovaPlugin { } /** - * By specifying a 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. diff --git a/framework/src/org/apache/cordova/PluginManager.java b/framework/src/org/apache/cordova/PluginManager.java index f8503424..47875423 100755 --- a/framework/src/org/apache/cordova/PluginManager.java +++ b/framework/src/org/apache/cordova/PluginManager.java @@ -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 tags). - // Instead, plugins should not include and instead ensure - // that they are loaded before this function is called (either by setting - // the onload 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)) {