]> git.wh0rd.org - tt-rss.git/blob - lib/dojo/_base/window.js
add dijit/dojo stuff; initial ui mockup
[tt-rss.git] / lib / dojo / _base / window.js
1 /*
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
5 */
6
7
8 if(!dojo._hasResource["dojo._base.window"]){
9 dojo._hasResource["dojo._base.window"]=true;
10 dojo.provide("dojo._base.window");
11 dojo.doc=window["document"]||null;
12 dojo.body=function(){
13 return dojo.doc.body||dojo.doc.getElementsByTagName("body")[0];
14 };
15 dojo.setContext=function(_1,_2){
16 dojo.global=_1;
17 dojo.doc=_2;
18 };
19 dojo.withGlobal=function(_3,_4,_5,_6){
20 var _7=dojo.global;
21 try{
22 dojo.global=_3;
23 return dojo.withDoc.call(null,_3.document,_4,_5,_6);
24 }
25 finally{
26 dojo.global=_7;
27 }
28 };
29 dojo.withDoc=function(_8,_9,_a,_b){
30 var _c=dojo.doc,_d=dojo._bodyLtr,_e=dojo.isQuirks;
31 try{
32 dojo.doc=_8;
33 delete dojo._bodyLtr;
34 dojo.isQuirks=dojo.doc.compatMode=="BackCompat";
35 if(_a&&typeof _9=="string"){
36 _9=_a[_9];
37 }
38 return _9.apply(_a,_b||[]);
39 }
40 finally{
41 dojo.doc=_c;
42 delete dojo._bodyLtr;
43 if(_d!==undefined){
44 dojo._bodyLtr=_d;
45 }
46 dojo.isQuirks=_e;
47 }
48 };
49 }