Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id C7DD610F33 for ; Fri, 30 Aug 2013 13:46:53 +0000 (UTC) Received: (qmail 36769 invoked by uid 500); 30 Aug 2013 13:46:53 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 36387 invoked by uid 500); 30 Aug 2013 13:46:52 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 36127 invoked by uid 99); 30 Aug 2013 13:46:51 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Aug 2013 13:46:51 +0000 Date: Fri, 30 Aug 2013 13:46:51 +0000 (UTC) From: "Andrew Grieve (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CB-4708) injectPluginScript() can't find cordova_plugins.js when app is on an HTML file in a sub folder of www MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4708?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13754692#comment-13754692 ] Andrew Grieve commented on CB-4708: ----------------------------------- I think the intention of the loader was to work with your use-case. Our test suite does actually have pages that are sub-directories of www/, so I think there's something special going on here. Are you able to figure out why findCordovaPath() is returning null? It's supposed to look for src="SOME_PATH/cordova.js" > injectPluginScript() can't find cordova_plugins.js when app is on an HTML file in a sub folder of www > ----------------------------------------------------------------------------------------------------- > > Key: CB-4708 > URL: https://issues.apache.org/jira/browse/CB-4708 > Project: Apache Cordova > Issue Type: Bug > Affects Versions: 3.0.0 > Environment: iOS / Xcode 4.6.3 (4H1503) > OS X 10.8.4 > Reporter: Chris Emerson > Labels: cordova_plugins.js,, injectPluginScript, plugins, > > Summary: > injectPluginScript() can't find cordova_plugins.js when app is on an HTML file in a sub folder of www. > Details: > I've confirmed that the cordova_plugins.js file that sits in the www folder never gets loaded if the app has navigated to an html file in a sub folder of www. > In my app/tests I have 14 plugins loading. The [moduleList] object that is instantiated and set in cordova.js confirms this when I check moduleList.length on the initial load of the app. However, when I check after navigating to a html file in a sub folder of www the moduleList object is empty. > The final confirmation of my theory/issue is that if I copy the current cordova_plugins.js file to the sub folder where my app has navigated to the moduleList object *does* get populated correctly, the finishPluginLoading() in cordova.js finishes successfully and my plugins are available in the app once again. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira