[
https://issues.apache.org/jira/browse/CB-6007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13897961#comment-13897961
]
ASF subversion and git services commented on CB-6007:
-----------------------------------------------------
Commit e0967ed4cec10dbfdd56c3e742532ce9b7356610 in branch refs/heads/master
from [~agrieve]
[ https://git-wip-us.apache.org/repos/asf?p=cordova-mobile-spec.git;h=e0967ed ]
CB-6007 mobile spec test for <script src="cordova.js?foo">
> If cordova.js is referenced using cache bust the plugin path is derived
> incorrectly.
> ------------------------------------------------------------------------------------
>
> Key: CB-6007
> URL: https://issues.apache.org/jira/browse/CB-6007
> Project: Apache Cordova
> Issue Type: Bug
> Components: CordovaJS
> Affects Versions: 3.3.0
> Reporter: Rik Schennink
> Assignee: Andrew Grieve
> Fix For: 3.5.0
>
>
> The path below functions correctly.
> "vendor/apache/ios/cordova.js" -> "vendor/apache/ios"
> The following path returns 'null'.
> "vendor/apache/ios/cordova.js?bust=v1.1"
> Problem is located in 'findCordovaPath()' line '1369'. Adding the following
> line of js before the if statement fixes the problem for me (could probably
> be optimised).
> {code}
> // make sure querystring parameters are not taken into account in the
> comparison
> src = src.indexOf('?') !== -1 ? src.split('?')[0] : src;
> {code}
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)