diff --git a/lib/util.js b/lib/util.js index c060fe90..cd1f0829 100644 --- a/lib/util.js +++ b/lib/util.js @@ -278,13 +278,13 @@ * * @obj */ - this.extendProto = function(obj) { + this.extendProto = function(obj) { var ret, F = function() {}; F.prototype = Util.extend({}, obj); ret = new F(); return ret; - }; + }; /** * @param pJSON @@ -366,15 +366,15 @@ if (isStr) switch (type) { case 'array': - n = str2.length; + n = str2.length; - for (i = 0; i < n; i++) { - str = str2[i]; - is = Util.isContainStr(str1, str); + for (i = 0; i < n; i++) { + str = str2[i]; + is = Util.isContainStr(str1, str); if (is) break; - } + } break; case 'string': @@ -532,7 +532,7 @@ str = str.replace(regExp, to); } - return str; + return str; }; /** @@ -681,7 +681,7 @@ * functions check is variable is string * @param variable */ - this.isString = function(variable) { + this.isString = function(variable) { return Util.isType(variable, 'string'); }; @@ -689,7 +689,7 @@ * functions check is variable is string * @param variable */ - this.isUndefined = function(variable) { + this.isUndefined = function(variable) { return Util.isType(variable, 'undefined'); };