cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marc...@apache.org
Subject git commit: CB-7720 check if event is null since OK string from success callback was removed
Date Tue, 07 Oct 2014 15:38:02 GMT
Repository: cordova-plugin-inappbrowser
Updated Branches:
  refs/heads/master 80010ae30 -> 8012ae709


CB-7720 check if event is null since OK string from success callback was removed

github: close #68


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/commit/8012ae70
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/8012ae70
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/8012ae70

Branch: refs/heads/master
Commit: 8012ae709bb749eaad434c05cd7e2aeda8f3a425
Parents: 80010ae
Author: Edna Morales <eymorale@us.ibm.com>
Authored: Mon Oct 6 16:17:15 2014 -0400
Committer: Marcel Kinard <cmarcelk@gmail.com>
Committed: Tue Oct 7 11:37:42 2014 -0400

----------------------------------------------------------------------
 www/inappbrowser.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/8012ae70/www/inappbrowser.js
----------------------------------------------------------------------
diff --git a/www/inappbrowser.js b/www/inappbrowser.js
index 3535b6f..4211563 100644
--- a/www/inappbrowser.js
+++ b/www/inappbrowser.js
@@ -35,7 +35,7 @@ function InAppBrowser() {
 
 InAppBrowser.prototype = {
     _eventHandler: function (event) {
-        if (event.type in this.channels) {
+        if (event && (event.type in this.channels)) {
             this.channels[event.type].fire(event);
         }
     },


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message