refactor(dom) init

This commit is contained in:
coderaiser 2014-05-27 10:55:00 -04:00
parent 26196c982b
commit 7c59ae119d

View file

@ -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';