]>
Commit | Line | Data |
---|---|---|
f0cfe83e AD |
1 | define("dijit/hccss", ["dojo/dom-class", "dojo/hccss", "dojo/ready", "dojo/_base/window"], function(domClass, has, ready, win){ |
2 | ||
3 | // module: | |
4 | // dijit/hccss | |
5 | ||
6 | /*===== | |
7 | return function(){ | |
8 | // summary: | |
9 | // Test if computer is in high contrast mode, and sets `dijit_a11y` flag on `<body>` if it is. | |
10 | // Deprecated, use ``dojo/hccss`` instead. | |
11 | }; | |
12 | =====*/ | |
13 | ||
14 | // Priority is 90 to run ahead of parser priority of 100. For 2.0, remove the ready() call and instead | |
15 | // change this module to depend on dojo/domReady! | |
16 | ready(90, function(){ | |
17 | if(has("highcontrast")){ | |
18 | domClass.add(win.body(), "dijit_a11y"); | |
19 | } | |
20 | }); | |
21 | ||
22 | return has; | |
23 | }); |