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 65D6311724 for ; Fri, 10 May 2013 11:23:22 +0000 (UTC) Received: (qmail 33133 invoked by uid 500); 10 May 2013 11:23:22 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 33004 invoked by uid 500); 10 May 2013 11:23:18 -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 32815 invoked by uid 99); 10 May 2013 11:23:16 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 10 May 2013 11:23:16 +0000 Date: Fri, 10 May 2013 11:23:16 +0000 (UTC) From: "Jan Mikula (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-3352) Phonegap + AngularJS + Windows Phone 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-3352?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jan Mikula updated CB-3352: --------------------------- Attachment: example.zip > 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 > Labels: AngularJS > Attachments: example.zip > > > 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