cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From purplecabb...@apache.org
Subject [2/2] cordova-plugin-inappbrowser git commit: Using modulemapper
Date Tue, 05 Jan 2016 01:22:18 GMT
Using modulemapper

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/9540f11f
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/tree/9540f11f
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/diff/9540f11f

Branch: refs/heads/master
Commit: 9540f11fcc6983db3563b95ebb3e9c2a2be8ea35
Parents: 3a1fea5
Author: robario <webmaster@robario.com>
Authored: Fri Dec 18 18:13:01 2015 +0900
Committer: robario <webmaster@robario.com>
Committed: Fri Dec 18 18:13:01 2015 +0900

----------------------------------------------------------------------
 src/browser/InAppBrowserProxy.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-inappbrowser/blob/9540f11f/src/browser/InAppBrowserProxy.js
----------------------------------------------------------------------
diff --git a/src/browser/InAppBrowserProxy.js b/src/browser/InAppBrowserProxy.js
index 29912c7..a9926f6 100644
--- a/src/browser/InAppBrowserProxy.js
+++ b/src/browser/InAppBrowserProxy.js
@@ -21,6 +21,7 @@
 
 var cordova = require('cordova'),
     channel = require('cordova/channel'),
+    modulemapper = require('cordova/modulemapper'),
     urlutil = require('cordova/urlutil');
 
 var browserWrap,
@@ -74,7 +75,7 @@ var IAB = {
         if (target === "_self" || !target) {
             window.location = strUrl;
         } else if (target === "_system") {
-            window.CDV_origSymbols['window.open'].call(window, strUrl, "_blank");
+            modulemapper.getOriginalSymbol(window, 'window.open').call(window, strUrl, "_blank");
         } else {
             // "_blank" or anything else
             if (!browserWrap) {


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


Mime
View raw message