Return-Path: X-Original-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-callback-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E7F6D91E2 for ; Fri, 30 Mar 2012 01:19:48 +0000 (UTC) Received: (qmail 96718 invoked by uid 500); 30 Mar 2012 01:19:48 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 96694 invoked by uid 500); 30 Mar 2012 01:19:48 -0000 Mailing-List: contact callback-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: callback-dev@incubator.apache.org Delivered-To: mailing list callback-dev@incubator.apache.org Received: (qmail 96685 invoked by uid 99); 30 Mar 2012 01:19:48 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 01:19:48 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Mar 2012 01:19:46 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id C683634E7F5 for ; Fri, 30 Mar 2012 01:19:24 +0000 (UTC) Date: Fri, 30 Mar 2012 01:19:24 +0000 (UTC) From: "Shazron Abdullah (Resolved) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1217734949.36126.1333070364814.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <571242484.19852.1332798867092.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Resolved] (CB-387) try/catch wrapper in native iOS code for cordova-js initialization firing alerts when page without cordova.js is loaded in 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-387?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah resolved CB-387. --------------------------------- Resolution: Fixed > try/catch wrapper in native iOS code for cordova-js initialization firing alerts when page without cordova.js is loaded in > -------------------------------------------------------------------------------------------------------------------------- > > Key: CB-387 > URL: https://issues.apache.org/jira/browse/CB-387 > Project: Apache Callback > Issue Type: Bug > Components: iOS > Affects Versions: 1.6.0 > Environment: 1.6.0rc1 <--- FYI!! > Reporter: Filip Maj > Assignee: Shazron Abdullah > Priority: Blocker > Fix For: 1.6.0 > > > Originally authored by code I wrote! My bad! > See line 370 of CDVViewController.m: > {code} > NSMutableString *result = [[NSMutableString alloc] initWithFormat:@"try{require('cordova/plugin/ios/device').setInfo(%@);}catch(e){alert('errorz1!!!');alert(JSON.stringify(e))}", [deviceProperties JSONString]]; > {code} > We should have a graceful way of degrading this, perhaps run a console.log instead? Suggestions? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira