>On Mon, Apr 9, 2012 at 14:10, Becky Gibson <[email protected]> wrote: > >> We might want to consider something similar for Cordova.hasResource() > > >If, long-term (2.0?), plugins are authored as "modules", then I think most >of the uses of hasResource()/addResource() go away. Most of the uses that >I've seen use a pattern of calls to these functions to ensure the plugin >code is only "run" once. For "modules", there's a guarantee that the code >is only run once - when the module is first require()'d.
+1 See my reply in this JIRA thread: https://issues.apache.org/jira/browse/CB-298?focusedCommentId=13238727&page =com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-1 3238727
