]>
git.wh0rd.org - tt-rss.git/blob - lib/dojo/uacss.js
2 Copyright (c) 2004-2010, The Dojo Foundation All Rights Reserved.
3 Available via Academic Free License >= 2.1 OR the modified BSD license.
4 see: http://dojotoolkit.org/license for details
8 if(!dojo
._hasResource
["dojo.uacss"]){
9 dojo
._hasResource
["dojo.uacss"]=true;
10 dojo
.provide("dojo.uacss");
12 var d
=dojo
,_1
=d
.doc
.documentElement
,ie
=d
.isIE
,_2
=d
.isOpera
,_3
=Math
.floor
,ff
=d
.isFF
,_4
=d
.boxModel
.replace(/-/,""),_5
={dj_ie
:ie
,dj_ie6
:_3(ie
)==6,dj_ie7
:_3(ie
)==7,dj_ie8
:_3(ie
)==8,dj_quirks
:d
.isQuirks
,dj_iequirks
:ie
&&d
.isQuirks
,dj_opera
:_2
,dj_khtml
:d
.isKhtml
,dj_webkit
:d
.isWebKit
,dj_safari
:d
.isSafari
,dj_chrome
:d
.isChrome
,dj_gecko
:d
.isMozilla
,dj_ff3
:_3(ff
)==3};
20 _1
.className
=d
.trim(_1
.className
+" "+_6
);
21 dojo
._loaders
.unshift(function(){
22 if(!dojo
._isBodyLtr()){
23 var _8
="dj_rtl dijitRtl "+_6
.replace(/ /g
,"-rtl ");
24 _1
.className
=d
.trim(_1
.className
+" "+_8
);