cordova-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From spirann <>
Subject [GitHub] cordova-android pull request: CB-9334 loop on CordovaPlugins befor...
Date Thu, 16 Jul 2015 09:49:43 GMT
Github user spirann commented on a diff in the pull request:
    --- Diff: framework/src/org/apache/cordova/ ---
    @@ -381,15 +374,16 @@ public void onReset() {
         Uri remapUri(Uri uri) {
    +        Uri remap = uri;
             for (CordovaPlugin plugin : this.pluginMap.values()) {
                 if (plugin != null) {
    -                Uri ret = plugin.remapUri(uri);
    +                Uri ret = plugin.remapUri(remap);
                     if (ret != null) {
    -                    return ret;
    +                    remap = ret;
    -        return null;
    +        return uri.equals(remap) ? null : remap;
    --- End diff --
    It was the default behavior to return null if no plugins ends up remapping the uri. The
only change is that it also return null if a plugin remap the uri to the same uri, because
there's no need to act like there's a change when there's not (some plugins like JsHybuggerPlugin
for example always remap every uri, to the same when no action is needed)

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message