From dc1091d8d23dea3c441923c893a35104c56d6129 Mon Sep 17 00:00:00 2001 From: Chris Barber Date: Tue, 8 Nov 2011 11:56:27 -0800 Subject: [PATCH] [TIMOB-6010] Added runtime to the Ti.Platform. Also changed the Ti.Platform name and osname. --- mobileweb/src/Ti.Platform/platform.js | 156 ++------------------------ 1 file changed, 9 insertions(+), 147 deletions(-) diff --git a/mobileweb/src/Ti.Platform/platform.js b/mobileweb/src/Ti.Platform/platform.js index ede521d9bb3..9ddfab53ca5 100644 --- a/mobileweb/src/Ti.Platform/platform.js +++ b/mobileweb/src/Ti.Platform/platform.js @@ -1,149 +1,4 @@ (function(api){ - /** Browser detect is from http://www.quirksmode.org/js/detect.html **/ - - var BrowserDetect = { - init: function () { - this.browser = this.searchString(this.dataBrowser) || "An unknown browser"; - this.version = this.searchVersion(navigator.userAgent) - || this.searchVersion(navigator.appVersion) - || "an unknown version"; - this.OS = this.searchString(this.dataOS) || "an unknown OS"; - }, - searchString: function (data) { - for (var i=0;i