diff --git a/lib/client/dom.js b/lib/client/dom.js index 14f9c01f..f4fbc556 100644 --- a/lib/client/dom.js +++ b/lib/client/dom.js @@ -179,10 +179,10 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; var ret, classList; if (!element) - throw(Error('element could not be empty!')); + throw Error('element could not be empty!'); if (!className) - throw(Error('className could not be empty!')); + throw Error('className could not be empty!'); classList = element.classList; ret = classList.contains(className); @@ -1272,7 +1272,7 @@ var CloudCmd, Util, DOM, CloudFunc, Dialog; if (!panel) - throw(Error('can not find Active Panel!')); + throw Error('can not find Active Panel!'); return panel; };