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 9DE3E104AD for ; Sat, 9 Nov 2013 16:44:22 +0000 (UTC) Received: (qmail 47818 invoked by uid 500); 9 Nov 2013 16:44:20 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 47664 invoked by uid 500); 9 Nov 2013 16:44:19 -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 47650 invoked by uid 99); 9 Nov 2013 16:44:18 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 09 Nov 2013 16:44:18 +0000 Date: Sat, 9 Nov 2013 16:44:18 +0000 (UTC) From: "Bryan Higgins (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (CB-5196) BB10 invoke() plugin is shadowded by cordova.js 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-5196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bryan Higgins closed CB-5196. ----------------------------- Resolution: Fixed > BB10 invoke() plugin is shadowded by cordova.js > ----------------------------------------------- > > Key: CB-5196 > URL: https://issues.apache.org/jira/browse/CB-5196 > Project: Apache Cordova > Issue Type: Bug > Components: BlackBerry > Affects Versions: 3.1.0 > Environment: Blackberry 10 > Reporter: Mike Billau > Assignee: Carlos Santana > Attachments: bbInvoke.html > > > Our users need to invoke blackberry.invoke.invoke(). As per WebWorks doc, to call any BB API, webworks.js needs to be included in the html file. > The problem is that there does not seem to be a way to call invoke(): > 1. Create a simple BB10 app using the attached HTML file, > 2. Add feature to the config.xml: > 3. Run the app. Press the button; the browser window doesn't open. > 4. Edit the HTML file and place the cordova.js script before webworks.js script > 5. Run the app again, and there is a popup saying: "Error intializing cordova:undefined". After dismissing the alert, you can press the button and the browser opens just fine. > "Analysis: > Internally blackberry.invoke.invoke() ('invoke' plugin) calls *window.webworks.event.isOn()* in blackberry.invoke/client.js. This is where the problem is: *window.webworks* is defined in both cordova.js and webworks.js.The one in cordova.js doesn't have 'event' function whereas it is available in window.webworks of webworks.js. Hence when webworks.js is loaded after cordova.js, it works fine and not if it is reversed." > Even though it works when we put webworks.js first we need to squash the alert() and make sure cordova initializes correctly. -- This message was sent by Atlassian JIRA (v6.1#6144)