Debian Codegraph @

dijit/hccss.js

raw symbols SCIP
1 define(["dojo/dom-class", "dojo/hccss", "dojo/domReady", "dojo/_base/window"], function(domClass, has, domReady, 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 domReady(function(){
15 if(has("highcontrast")){
16 domClass.add(win.body(), "dijit_a11y");
17 }
18 });
19
20 return has;
21 });