You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by st...@apache.org on 2014/05/06 01:43:16 UTC

[10/11] git commit: another qt 5.2 workaround

another qt 5.2 workaround


Project: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/commit/3b6762c6
Tree: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/tree/3b6762c6
Diff: http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/diff/3b6762c6

Branch: refs/heads/master
Commit: 3b6762c655c21cf635964cc45e66a5c365c915ff
Parents: 6786958
Author: Maxim Ermilov <ma...@canonical.com>
Authored: Fri May 2 01:43:12 2014 +0400
Committer: Maxim Ermilov <ma...@canonical.com>
Committed: Fri May 2 01:43:12 2014 +0400

----------------------------------------------------------------------
 Cordovaqt/cordova_wrapper.js | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-ubuntu/blob/3b6762c6/Cordovaqt/cordova_wrapper.js
----------------------------------------------------------------------
diff --git a/Cordovaqt/cordova_wrapper.js b/Cordovaqt/cordova_wrapper.js
index a4be290..3a4cddc 100644
--- a/Cordovaqt/cordova_wrapper.js
+++ b/Cordovaqt/cordova_wrapper.js
@@ -21,6 +21,9 @@
 
 var pluginObjects = {}
 
+// qt 5.2 forbids assigning new properties to JS module
+// global variable used by plugins to store temporary data
+var global = {};
 
 function addPlugin(pluginName, pluginObject) {
     pluginObjects[pluginName] = pluginObject