chore(util) quotes, unused vars

This commit is contained in:
coderaiser 2014-04-23 07:47:12 -04:00
parent 86581245a9
commit 3ecc3a4362

View file

@ -338,7 +338,7 @@
*/
this.isContainStr = function(pStr1, pStr2) {
var i, n, regExp, str,
var i, n, str,
ret = Util.isString(pStr1);
if (ret)
@ -545,7 +545,7 @@
isStr = Util.isString(pStr);
if (isStr)
lRet = pStr.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
lRet = pStr.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, '\\$&');
return lRet;
};
@ -977,7 +977,7 @@
minutes = minutes < 10 ? '0' + minutes : minutes;
seconds = seconds < 10 ? '0' + seconds : seconds;
lRet = hours + ":" + minutes + ":" + seconds;
lRet = hours + ':' + minutes + ':' + seconds;
return lRet;
};
@ -1017,7 +1017,7 @@
day = date.getDate(),
month = date.getMonth() + 1,
year = date.getFullYear(),
lRet = year + "-" + month + "-" + day + " " + Util.getTime();
lRet = year + '-' + month + '-' + day + ' ' + Util.getTime();
return lRet;
};