You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Jan Mikula (JIRA)" <ji...@apache.org> on 2013/05/06 15:42:16 UTC
[jira] [Updated] (CB-3352) Phonegap + AngularJS + Windows Phone
[ https://issues.apache.org/jira/browse/CB-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Mikula updated CB-3352:
---------------------------
Description:
We build application based on Phonegap (2.6.0) and AngularJS (1.1.3). On iOS and Android works great. On Windows Phone 7 and 8 we gets error: "Unable to get property '1' of undefined or null reference file:x-wmapp0:www/js/libs/angular.js Line:5034"
Problem is in function matchUrl:
var match = URL_MATCH.exec(url);
match = {
protocol: match[1],
host: match[3],
port: int(match[5]) || DEFAULT_PORTS[match[1]] || null,
path: match[6] || '/',
search: match[8],
hash: match[10]
};
Problem is that variable url contains this: "x-wmapp0:/www/index.html" and URL_MATCH.exec can't parse that url correctly.
> Phonegap + AngularJS + Windows Phone
> ------------------------------------
>
> Key: CB-3352
> URL: https://issues.apache.org/jira/browse/CB-3352
> Project: Apache Cordova
> Issue Type: Bug
> Components: WP7, WP8
> Affects Versions: 2.6.0
> Reporter: Jan Mikula
> Assignee: Jesse MacFadyen
>
> We build application based on Phonegap (2.6.0) and AngularJS (1.1.3). On iOS and Android works great. On Windows Phone 7 and 8 we gets error: "Unable to get property '1' of undefined or null reference file:x-wmapp0:www/js/libs/angular.js Line:5034"
> Problem is in function matchUrl:
> var match = URL_MATCH.exec(url);
> match = {
> protocol: match[1],
> host: match[3],
> port: int(match[5]) || DEFAULT_PORTS[match[1]] || null,
> path: match[6] || '/',
> search: match[8],
> hash: match[10]
> };
> Problem is that variable url contains this: "x-wmapp0:/www/index.html" and URL_MATCH.exec can't parse that url correctly.
--
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