You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ti...@apache.org on 2012/12/14 22:57:14 UTC

webworks commit: [CB-1987] - updating javascript

Updated Branches:
  refs/heads/master 5598f528f -> 750cda981


[CB-1987] - updating javascript


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/750cda98
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/750cda98
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/750cda98

Branch: refs/heads/master
Commit: 750cda981420238c0d923f4c83814f0f4aaf4cec
Parents: 5598f52
Author: Tim Kim <ti...@adobe.com>
Authored: Fri Dec 14 13:56:58 2012 -0800
Committer: Tim Kim <ti...@adobe.com>
Committed: Fri Dec 14 13:56:58 2012 -0800

----------------------------------------------------------------------
 javascript/cordova.blackberry.js |   38 ++++++++++++++++++++-------------
 1 files changed, 23 insertions(+), 15 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/750cda98/javascript/cordova.blackberry.js
----------------------------------------------------------------------
diff --git a/javascript/cordova.blackberry.js b/javascript/cordova.blackberry.js
index e119d4a..4bf2767 100644
--- a/javascript/cordova.blackberry.js
+++ b/javascript/cordova.blackberry.js
@@ -1,6 +1,6 @@
-// commit 46c89d142aadce4cf8139fc41f746e1ba8ef9b26
+// commit d8204cc0f8f1f2e72d95b4c811caa0635bb05a84
 
-// File generated at :: Mon Dec 03 2012 13:19:55 GMT-0800 (PST)
+// File generated at :: Fri Dec 14 2012 13:20:43 GMT-0800 (PST)
 
 /*
  Licensed to the Apache Software Foundation (ASF) under one
@@ -3091,7 +3091,7 @@ module.exports = GlobalizationError;
 define("cordova/plugin/InAppBrowser", function(require, exports, module) {
 
 var exec = require('cordova/exec');
-       
+
 function InAppBrowser()
 {
    var _channel = require('cordova/channel');
@@ -3108,7 +3108,7 @@ InAppBrowser.prototype._eventHandler = function(event)
         this.channels[event.type].fire(event);
     }
 }
-       
+
 InAppBrowser.open = function(strUrl, strWindowName, strWindowFeatures)
 {
     var iab = new InAppBrowser();
@@ -3126,16 +3126,16 @@ InAppBrowser.prototype.close = function(eventname, f)
 
 InAppBrowser.prototype.addEventListener = function(eventname, f)
 {
-	if (eventname in this.channels) {
-	    this.channels[eventname].subscribe(f);
-	}
+    if (eventname in this.channels) {
+        this.channels[eventname].subscribe(f);
+    }
 }
 
 InAppBrowser.prototype.removeEventListener = function(eventname, f)
 {
-	if (eventname in this.channels) {
-	    this.channels[eventname].unsubscribe(f);
-	}
+    if (eventname in this.channels) {
+        this.channels[eventname].unsubscribe(f);
+    }
 }
 
 module.exports = InAppBrowser.open;
@@ -5344,7 +5344,7 @@ module.exports = {
                     model: "PlayBook",
                     name: "PlayBook", // deprecated: please use device.model
                     uuid: info.uuid,
-                    cordova: "2.3.0rc1"
+                    cordova: "2.3.0rc2"
                 });
             }),
             request = new blackberry.transport.RemoteFunctionCall("org/apache/cordova/getDeviceInfo");
@@ -8935,7 +8935,7 @@ module.exports = {
             model: "Dev Alpha",
             name: "Dev Alpha", // deprecated: please use device.model
             uuid: blackberry.identity.uuid,
-            cordova: "2.3.0rc1"
+            cordova: "2.3.0rc2"
         });
 
         return { "status" : cordova.callbackStatus.NO_RESULT, "message" : "Device info returned" };
@@ -9777,9 +9777,17 @@ window.cordova = require('cordova');
 document.addEventListener("DOMContentLoaded", function () {
     switch(require('cordova/platform').runtime()) {
     case 'qnx':
-        document.addEventListener("webworksready", function () {
-            require('cordova/channel').onNativeReady.fire();
-        });
+        var wwjs = document.createElement("script");
+        wwjs.src = "local:///chrome/webworks.js";
+        wwjs.onload = function () {
+            document.addEventListener("webworksready", function () {
+                require('cordova/channel').onNativeReady.fire();
+            });
+        };
+        wwjs.onerror = function () {
+            alert('there was a problem loading webworks.js');
+        };
+        document.head.appendChild(wwjs);
         break;
     case 'air':
         require('cordova/channel').onNativeReady.fire();