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 D4B6B98FF for ; Thu, 22 Mar 2012 04:16:49 +0000 (UTC) Received: (qmail 98092 invoked by uid 500); 22 Mar 2012 04:16:49 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 97905 invoked by uid 500); 22 Mar 2012 04:16:47 -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 97865 invoked by uid 99); 22 Mar 2012 04:16:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 22 Mar 2012 04:16:46 +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; Thu, 22 Mar 2012 04:16:44 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id D15891B6965 for ; Thu, 22 Mar 2012 04:16:22 +0000 (UTC) Date: Thu, 22 Mar 2012 04:16:22 +0000 (UTC) From: "Filip Maj (Commented) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <66073427.957.1332389782974.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <100085344.41435.1332333699747.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (CB-364) remove calls to alert() MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CB-364?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13235329#comment-13235329 ] Filip Maj commented on CB-364: ------------------------------ I recommend putting this into the utils module. > remove calls to alert() > ----------------------- > > Key: CB-364 > URL: https://issues.apache.org/jira/browse/CB-364 > Project: Apache Callback > Issue Type: Bug > Components: CordovaJS > Reporter: Patrick Mueller > Assignee: Filip Maj > > I've run into some cases of alert() usage in the cordova-js code. I think this is inappropriate, since we are using the cordova-js code in other environments than the browser, like the test harness. I end up seeing errors thrown on "alert() not defined" and such, which is masking the actual error from me. > Instead, we should define an alert()-y function somewhere - like cordova.alert(). This function can sniff if alert() is available, and if not, console.log() or the equivalent. -- 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