Last change
on this file since 529 was
483,
checked in by hendrikvanantwerpen, 11 years ago
|
Added Dojo 1.9.3 release.
|
File size:
470 bytes
|
Rev | Line | |
---|
[483] | 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 | }); |
---|
Note: See
TracBrowser
for help on using the repository browser.