From 53dba8678c90f06ee3bdaf903ec1ffa1106be338 Mon Sep 17 00:00:00 2001 From: Andrew Grieve Date: Mon, 2 Mar 2015 20:43:10 -0500 Subject: [PATCH] Delete no longer relevant comments about `` --- framework/src/org/apache/cordova/CordovaPlugin.java | 2 +- framework/src/org/apache/cordova/PluginManager.java | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) 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)) {