mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-20 18:18:56 +00:00
refactor(dom) init
This commit is contained in:
parent
26196c982b
commit
7c59ae119d
1 changed files with 4 additions and 1 deletions
|
|
@ -21,10 +21,13 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog;
|
|||
ERROR = 'error';
|
||||
|
||||
function init() {
|
||||
var is;
|
||||
|
||||
if (!LoadingImage) {
|
||||
LoadingImage = LOADING;
|
||||
is = DOM.isSVG();
|
||||
|
||||
if (DOM.isSVG())
|
||||
if (is)
|
||||
LoadingImage += '-svg';
|
||||
else
|
||||
LoadingImage += '-gif';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue