Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 96D9210C6B for ; Thu, 17 Oct 2013 19:28:42 +0000 (UTC) Received: (qmail 4780 invoked by uid 500); 17 Oct 2013 19:28:42 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 4754 invoked by uid 500); 17 Oct 2013 19:28:42 -0000 Mailing-List: contact issues-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 issues@cordova.apache.org Received: (qmail 4745 invoked by uid 99); 17 Oct 2013 19:28:42 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Oct 2013 19:28:42 +0000 Date: Thu, 17 Oct 2013 19:28:42 +0000 (UTC) From: "Carlos Santana (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Resolved] (CB-4942) BlackBerry10 never fires deviceready using cordova-js 3.1.0-rc1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-4942?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Carlos Santana resolved CB-4942. -------------------------------- Resolution: Fixed > BlackBerry10 never fires deviceready using cordova-js 3.1.0-rc1 > --------------------------------------------------------------- > > Key: CB-4942 > URL: https://issues.apache.org/jira/browse/CB-4942 > Project: Apache Cordova > Issue Type: Bug > Components: BlackBerry, CordovaJS > Affects Versions: Master, 3.1.0 > Reporter: Carlos Santana > Assignee: Carlos Santana > Fix For: 3.1.0 > > > repo cordova-blackberry master#3.1.x has an old cordova.js #3.0.0-0-ge670de9 > The problem is that webworksready never gets register and nativeready fires > Also a typo on the compare for "webworksready" > The fix is to update platform.js: > From > if (event.toLowerCase() === 'webworksready') { > needs to be: > if (type.toLowerCase() === 'webworksready') { > Then add the listener > channel.onDOMContentLoaded.subscribe(function () { > document.addEventListener("webworksready", function () { > fireWebworksReadyEvent(); > }); > }); > will submit pull request -- This message was sent by Atlassian JIRA (v6.1#6144)