summaryrefslogtreecommitdiff
path: root/lib/dijit/hccss.js.uncompressed.js
diff options
context:
space:
mode:
authorRichard Beales <[email protected]>2013-03-18 07:32:01 +0000
committerRichard Beales <[email protected]>2013-03-18 07:32:01 +0000
commit7c97d17aaf373339a8bcd917ad59ca6018148f0d (patch)
tree5a3c04f0f9529be392c1263d3feb75806eb43797 /lib/dijit/hccss.js.uncompressed.js
parent70db7424e7068701e60cc5bcdfe8f858be508179 (diff)
parentc670a80ddd9b03bd4ea6d940a9ed682fd26248d7 (diff)
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/dijit/hccss.js.uncompressed.js')
-rw-r--r--lib/dijit/hccss.js.uncompressed.js23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/dijit/hccss.js.uncompressed.js b/lib/dijit/hccss.js.uncompressed.js
new file mode 100644
index 000000000..9e0ac88e8
--- /dev/null
+++ b/lib/dijit/hccss.js.uncompressed.js
@@ -0,0 +1,23 @@
+define("dijit/hccss", ["dojo/dom-class", "dojo/hccss", "dojo/ready", "dojo/_base/window"], function(domClass, has, ready, win){
+
+ // module:
+ // dijit/hccss
+
+ /*=====
+ return function(){
+ // summary:
+ // Test if computer is in high contrast mode, and sets `dijit_a11y` flag on `<body>` if it is.
+ // Deprecated, use ``dojo/hccss`` instead.
+ };
+ =====*/
+
+ // 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(), "dijit_a11y");
+ }
+ });
+
+ return has;
+});