From 870334be3f58507c05bfc72f3edbe5db10af4caf Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 2 Apr 2013 20:06:16 +0400 Subject: remove dojo uncompressed files --- lib/dojo/hccss.js.uncompressed.js | 54 --------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 lib/dojo/hccss.js.uncompressed.js (limited to 'lib/dojo/hccss.js.uncompressed.js') diff --git a/lib/dojo/hccss.js.uncompressed.js b/lib/dojo/hccss.js.uncompressed.js deleted file mode 100644 index feb953968..000000000 --- a/lib/dojo/hccss.js.uncompressed.js +++ /dev/null @@ -1,54 +0,0 @@ -define("dojo/hccss", [ - "require", // require.toUrl - "./_base/config", // config.blankGif - "./dom-class", // domClass.add - "./dom-style", // domStyle.getComputedStyle - "./has", - "./ready", // ready - "./_base/window" // win.body -], function(require, config, domClass, domStyle, has, ready, win){ - - // module: - // dojo/hccss - - /*===== - return function(){ - // summary: - // Test if computer is in high contrast mode (i.e. if browser is not displaying background images). - // Defines `has("highcontrast")` and sets `dj_a11y` CSS class on `` if machine is in high contrast mode. - // Returns `has()` method; - }; - =====*/ - - // Has() test for when background images aren't displayed. Don't call has("highcontrast") before dojo/domReady!. - has.add("highcontrast", function(){ - // note: if multiple documents, doesn't matter which one we use - var div = win.doc.createElement("div"); - div.style.cssText = "border: 1px solid; border-color:red green; position: absolute; height: 5px; top: -999px;" + - "background-image: url(" + (config.blankGif || require.toUrl("./resources/blank.gif")) + ");"; - win.body().appendChild(div); - - var cs = domStyle.getComputedStyle(div), - bkImg = cs.backgroundImage, - hc = (cs.borderTopColor == cs.borderRightColor) || - (bkImg && (bkImg == "none" || bkImg == "url(invalid-url:)" )); - - if(has("ie") <= 8){ - div.outerHTML = ""; // prevent mixed-content warning, see http://support.microsoft.com/kb/925014 - }else{ - win.body().removeChild(div); - } - - return hc; - }); - - // Priority is 90 to run ahead of parser priority of 100. For 2.0, remove the ready() call and instead - // change this module to depend on dojo/domReady! - ready(90, function(){ - if(has("highcontrast")){ - domClass.add(win.body(), "dj_a11y"); - } - }); - - return has; -}); -- cgit v1.2.3