ripple-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t...@apache.org
Subject incubator-ripple git commit: RIPPLE-87 Ripple can't emulate a multiple page application.
Date Mon, 17 Aug 2015 04:02:44 GMT
Repository: incubator-ripple
Updated Branches:
  refs/heads/master 86385ad34 -> e0a0fb8b5


RIPPLE-87 Ripple can't emulate a multiple page application.

Re-using the existing `module.exports.init` when navigating between pages means we are re-using
the old `cordova` object which is invalid.

This closes #71


Project: http://git-wip-us.apache.org/repos/asf/incubator-ripple/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ripple/commit/e0a0fb8b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ripple/tree/e0a0fb8b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ripple/diff/e0a0fb8b

Branch: refs/heads/master
Commit: e0a0fb8b520d5cbb0371efa0d995dd1ba261f2bc
Parents: 86385ad
Author: Sylvain Garden <sgarden@club.fr>
Authored: Mon Aug 3 17:01:49 2015 +0200
Committer: Tim Barham <tim.barham@microsoft.com>
Committed: Mon Aug 17 13:56:42 2015 +1000

----------------------------------------------------------------------
 lib/client/platform/cordova/3.0.0/spec.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ripple/blob/e0a0fb8b/lib/client/platform/cordova/3.0.0/spec.js
----------------------------------------------------------------------
diff --git a/lib/client/platform/cordova/3.0.0/spec.js b/lib/client/platform/cordova/3.0.0/spec.js
index d0b1649..e9bc302 100644
--- a/lib/client/platform/cordova/3.0.0/spec.js
+++ b/lib/client/platform/cordova/3.0.0/spec.js
@@ -45,7 +45,7 @@ module.exports = {
                 cordova.define.remove("cordova/exec");
                 cordova.define("cordova/exec", function (require, exports, module) {
                     module.exports = bridge.exec;
-                    module.exports.init = module.exports.init || function(){cordova.require('cordova/channel').onNativeReady.fire();};
// RIPPLE-69 adding cordova-3.6.x support
+                    module.exports.init = function(){cordova.require('cordova/channel').onNativeReady.fire();};
// RIPPLE-69 adding cordova-3.6.x support; RIPPLE-87 init method overwritting so that its
closure points to the current cordova object
                 });
             };
 


Mime
View raw message