incubator-callback-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Filip Maj (Commented) (JIRA)" <>
Subject [jira] [Commented] (CB-364) remove calls to alert()
Date Thu, 22 Mar 2012 04:16:22 GMT


Filip Maj commented on CB-364:

I recommend putting this into the utils module.
> remove calls to alert()
> -----------------------
>                 Key: CB-364
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


View raw message