Project

General

Profile

Statistics
| Revision:

root / trunk / web / dojo / dojox / image / _base.js @ 12

History | View | Annotate | Download (681 Bytes)

1 9 andrej.cim
/*
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["dojox.image._base"]){
9
dojo._hasResource["dojox.image._base"]=true;
10
dojo.provide("dojox.image._base");
11
(function(d){
12
var _1;
13
dojox.image.preload=function(_2){
14
if(!_1){
15
_1=d.create("div",{style:{position:"absolute",top:"-9999px",height:"1px",overflow:"hidden"}},d.body());
16
}
17
return d.map(_2,function(_3){
18
return d.create("img",{src:_3},_1);
19
});
20
};
21
if(d.config.preloadImages){
22
d.addOnLoad(function(){
23
dojox.image.preload(d.config.preloadImages);
24
});
25
}
26
})(dojo);
27
}