Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 14D2DF594 for ; Mon, 15 Apr 2013 20:54:05 +0000 (UTC) Received: (qmail 60682 invoked by uid 500); 15 Apr 2013 20:54:04 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 60655 invoked by uid 500); 15 Apr 2013 20:54:04 -0000 Mailing-List: contact dev-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 dev@cordova.apache.org Received: (qmail 60647 invoked by uid 99); 15 Apr 2013 20:54:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 20:54:04 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of fil@adobe.com designates 64.18.1.241 as permitted sender) Received: from [64.18.1.241] (HELO exprod6og123.obsmtp.com) (64.18.1.241) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 15 Apr 2013 20:53:59 +0000 Received: from outbound-smtp-2.corp.adobe.com ([193.104.215.16]) by exprod6ob123.postini.com ([64.18.5.12]) with SMTP ID DSNKUWxo0i0WNAnCP690hdlCbGSc9l64Iv3L@postini.com; Mon, 15 Apr 2013 13:53:39 PDT Received: from inner-relay-4.eur.adobe.com (inner-relay-4b [10.128.4.237]) by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id r3FKrb99004086 for ; Mon, 15 Apr 2013 13:53:37 -0700 (PDT) Received: from nahub02.corp.adobe.com (nahub02.corp.adobe.com [10.8.189.98]) by inner-relay-4.eur.adobe.com (8.12.10/8.12.9) with ESMTP id r3FKrZtL016470 for ; Mon, 15 Apr 2013 13:53:36 -0700 (PDT) Received: from nambxv01a.corp.adobe.com ([10.8.189.95]) by nahub02.corp.adobe.com ([10.8.189.98]) with mapi; Mon, 15 Apr 2013 13:53:35 -0700 From: Filip Maj To: "dev@cordova.apache.org" Date: Mon, 15 Apr 2013 13:53:39 -0700 Subject: Re: Add Cordova-failed-to-initialize logic right into cordova.js Thread-Topic: Add Cordova-failed-to-initialize logic right into cordova.js Thread-Index: Ac46G0twfyABgYUzSuOVyXnqEEwdew== Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.3.2.130206 acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hah.. Yeah why this hasn't been done sooner.. Couldn't tell you On 4/15/13 12:49 PM, "Andrew Grieve" wrote: >We have this in many of our tests, but why not just put it right in >cordova.js? > >e.g. > >var timerId =3D null; >document.addEventListener('deviceready', function() { > window.clearTimeout(timerId); >}, false); >timerId =3D window.setTimeout(function() { > console.log('Cordova failed to initialized due to the following channels >not firing: ...'); >}, 1000);