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 385FD9B78 for ; Fri, 13 Apr 2012 19:54:38 +0000 (UTC) Received: (qmail 81492 invoked by uid 500); 13 Apr 2012 19:54:38 -0000 Delivered-To: apmail-incubator-callback-dev-archive@incubator.apache.org Received: (qmail 81469 invoked by uid 500); 13 Apr 2012 19:54:38 -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 81460 invoked by uid 99); 13 Apr 2012 19:54:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Apr 2012 19:54:38 +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, 13 Apr 2012 19:54:36 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 6335436934A for ; Fri, 13 Apr 2012 19:54:16 +0000 (UTC) Date: Fri, 13 Apr 2012 19:54:16 +0000 (UTC) From: "Shazron Abdullah (Updated) (JIRA)" To: callback-dev@incubator.apache.org Message-ID: <1099056613.23391.1334346856408.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1754697693.31711.1331102405805.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CB-302) orientationchange event fires off twice under iOS 5.x 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-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Shazron Abdullah updated CB-302: -------------------------------- Summary: orientationchange event fires off twice under iOS 5.x (was: Orientation change issue (PhoneGap 1.5.0 iOS)) > orientationchange event fires off twice under iOS 5.x > ----------------------------------------------------- > > Key: CB-302 > URL: https://issues.apache.org/jira/browse/CB-302 > Project: Apache Callback > Issue Type: Bug > Components: iOS > Affects Versions: 1.5.0 > Environment: Tested on iOS 5 iPod Touch, iOS 5 iPad and the iOS Simulator. > Universal App with deployment target 5.0 using PhoneGap(Cordova) 1.5.0. > Reporter: Radoslav Todorov > Assignee: Shazron Abdullah > Fix For: 1.6.1 > > > The "orientationchange" event is called twice. > Nothing from the original PhoneGap library is modified. > I tested this ot two different applications, the one is nothing more than the code below. > > This is the code i use: > > function change(e){ > console.log("change"); > console.log(window.orientation); > } > document.addEventListener("orientationchange",change); > Here are some of the logs i get from the above code: > 2012-03-06 19:39:12.353 Test[84253:207] [INFO] 0 > 2012-03-06 19:39:12.359 Test[84253:207] [INFO] change > 2012-03-06 19:39:12.360 Test[84253:207] [INFO] 0 > 2012-03-06 19:39:13.301 Test[84253:207] [INFO] change > 2012-03-06 19:39:13.303 Test[84253:207] [INFO] 90 > 2012-03-06 19:39:13.305 Test[84253:207] [INFO] change > 2012-03-06 19:39:13.306 Test[84253:207] [INFO] 90 > 2012-03-06 19:39:14.710 Test[84253:207] [INFO] change > 2012-03-06 19:39:14.712 Test[84253:207] [INFO] 180 > 2012-03-06 19:39:14.715 Test[84253:207] [INFO] change > 2012-03-06 19:39:14.716 Test[84253:207] [INFO] 180 > 2012-03-06 19:39:15.477 Test[84253:207] [INFO] change > 2012-03-06 19:39:15.480 Test[84253:207] [INFO] -90 > 2012-03-06 19:39:15.485 Test[84253:207] [INFO] change > 2012-03-06 19:39:15.485 Test[84253:207] [INFO] -90 -- 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