From callback-dev-return-4878-apmail-incubator-callback-dev-archive=incubator.apache.org@incubator.apache.org Thu Apr 12 20:59:44 2012 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 7EF12C889 for ; Thu, 12 Apr 2012 20:59:44 +0000 (UTC) Received: (qmail 4222 invoked by uid 500); 12 Apr 2012 20:59:44 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 4194 invoked by uid 500); 12 Apr 2012 20:59:44 -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 4186 invoked by uid 99); 12 Apr 2012 20:59:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 20:59:44 +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, 12 Apr 2012 20:59:41 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id DDA4436776C for ; Thu, 12 Apr 2012 20:59:20 +0000 (UTC) Date: Thu, 12 Apr 2012 20:59:20 +0000 (UTC) From: =?utf-8?Q?Mois=C3=A9s_Gramary_=28Created=29_=28JIRA=29?= To: callback-dev@incubator.apache.org Message-ID: <321373953.19167.1334264360909.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (CB-491) cordova-1.6.0 + jquery/zepto $(document).bind("deviceready".. no work MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 cordova-1.6.0 + jquery/zepto $(document).bind("deviceready".. no work --------------------------------------------------------------------- Key: CB-491 URL: https://issues.apache.org/jira/browse/CB-491 Project: Apache Callback Issue Type: Bug Components: CordovaJS, iOS Affects Versions: 1.6.0 Environment: Tested on iOS 5.1 Reporter: Mois=C3=A9s Gramary Assignee: Filip Maj Fix For: 1.5.0 With Phonegap1.4 or 1.5, I have been OK with the code below, but now I stuc= k. Anyone has an idea? Thanks.

(by KenOKABE on https://groups.google.com/forum/?hl=3Den?hl%3Den&fromgroups= #!topic/phonegap/TImcr9kzlq0) Possible solution--> Hello, I had the same problem with the upgrade from 1.5 to 1.6... After a long day I found that that deviceready event begins a little "freak= ", try changing: $(document).bind("deviceready", function() { //code }); by: document.addEventListener("deviceready", function() { //code }, false); It worked for me, even so, the most weird thing is that other events like t= ouchmove or orientationchange still works with $( document ).bind; even $( = document ).ready function works.... Appears to fail only with deviceready PG/CV event.... (by Mois=C3=A9s Gramary Barbosa on same thread) -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs: https://issues.apache.org/jira/secure/ContactAdministrators!default.jsp= a For more information on JIRA, see: http://www.atlassian.com/software/jira