Adapting rhoapi.js for working with MSIE version 6.0-8.0
@@ -497,7 +497,7 @@ var Rho = Rho || (function ($) {
};
(function propertySupportCheck() {
- propsSupport.ffHackKeywords = (function supported_firefoxHack_keywords() {
+/* propsSupport.ffHackKeywords = (function supported_firefoxHack_keywords() {
var testObj = {};
var okGet = false;
var okSet = false;
@@ -514,7 +514,7 @@ var Rho = Rho || (function ($) {
testObj.propSet = testObj.propGet;
} catch (ex) {};
return okGet && okSet;
- })();
+ })();*/
propsSupport.ffHackMethod = (function supported_firefoxHack_method() {
var testObj = {};
@@ -1047,7 +1047,8 @@ var Rho = Rho || (function ($) {
});
addBridge(rhoPlatform.id.WM, function() {
- var bridge = new WebkitBridge();
+ var bridgeClass = typeof(WebkitBridge) !== "undefined" ? WebkitBridge : IEBridge;
+ var bridge = new bridgeClass();
return {
apiCall: function (cmdText, async, resultHandler) {
var apiResult = bridge.framework(cmdText);
@@ -1056,6 +1057,7 @@ var Rho = Rho || (function ($) {
}
});
+
addBridge(rhoPlatform.id.RHOSIMULATOR, function() {
return {
apiCall: function (cmdText, async, resultHandler) {
@@ -1096,6 +1098,7 @@ var Rho = Rho || (function ($) {
[/iPhone|iPod|iPad/ , bridges[rhoPlatform.id.IPHONE] ],
[/Windows\s+Phone/ , bridges[rhoPlatform.id.WP8] ],
[/Windows\s+(?:Mobile|CE)|WM [0-9]/, bridges[rhoPlatform.id.WM] ],
+ [/MSIE/ , bridges[rhoPlatform.id.WM] ],
[/Windows/ , bridges[rhoPlatform.id.WIN32] ]
];
