summaryrefslogtreecommitdiff
path: root/lib/dojo/gears.js.uncompressed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-08-14 19:04:32 +0400
committerAndrew Dolgov <[email protected]>2012-08-14 19:04:32 +0400
commit0181c0110985cfd2659e81c8cc1ef5a2f73bc697 (patch)
treee2250a345481fa63cfcf98d76830338ad7eb9818 /lib/dojo/gears.js.uncompressed.js
parent973c4a649fd8f83ed85004f3365f10f9c24d8349 (diff)
dojo: remove uncompressed files
Diffstat (limited to 'lib/dojo/gears.js.uncompressed.js')
-rw-r--r--lib/dojo/gears.js.uncompressed.js61
1 files changed, 0 insertions, 61 deletions
diff --git a/lib/dojo/gears.js.uncompressed.js b/lib/dojo/gears.js.uncompressed.js
deleted file mode 100644
index 8ab6c9568..000000000
--- a/lib/dojo/gears.js.uncompressed.js
+++ /dev/null
@@ -1,61 +0,0 @@
-define("dojo/gears", ["./_base/kernel", "./_base/lang", "./_base/sniff"],
- function(dojo, lang, has) {
- // module:
- // dojo/gears
- // summary:
- // TODOC
-
-lang.getObject("gears", true, dojo);
-
-dojo.gears._gearsObject = function(){
- // summary:
- // factory method to get a Google Gears plugin instance to
- // expose in the browser runtime environment, if present
- var factory;
-
- var gearsObj = lang.getObject("google.gears");
- if(gearsObj){ return gearsObj; } // already defined elsewhere
-
- if(typeof GearsFactory != "undefined"){ // Firefox
- factory = new GearsFactory();
- }else{
- if(has("ie")){
- // IE
- try{
- factory = new ActiveXObject("Gears.Factory");
- }catch(e){
- // ok to squelch; there's no gears factory. move on.
- }
- }else if(navigator.mimeTypes["application/x-googlegears"]){
- // Safari?
- factory = document.createElement("object");
- factory.setAttribute("type", "application/x-googlegears");
- factory.setAttribute("width", 0);
- factory.setAttribute("height", 0);
- factory.style.display = "none";
- document.documentElement.appendChild(factory);
- }
- }
-
- // still nothing?
- if(!factory){ return null; }
-
- // define the global objects now; don't overwrite them though if they
- // were somehow set internally by the Gears plugin, which is on their
- // dev roadmap for the future
- lang.setObject("google.gears.factory", factory);
- return lang.getObject("google.gears");
-};
-
-/*=====
-dojo.gears.available = {
- // summary: True if client is using Google Gears
-};
-=====*/
-// see if we have Google Gears installed, and if
-// so, make it available in the runtime environment
-// and in the Google standard 'google.gears' global object
-dojo.gears.available = (!!dojo.gears._gearsObject())||0;
-
-return dojo.gears;
-});