Comparing version 1.6.1 to 1.6.2
@@ -74,12 +74,18 @@ (function(scope) { | ||
var msg = '', | ||
template = '', | ||
name = '', | ||
template = '{{ name }} coud not be empty!', | ||
indexOf = Array.prototype.indexOf, | ||
lenNames = names.length, | ||
lenArgs = args.length, | ||
lessArgs = lenArgs < lenNames; | ||
lessArgs = lenArgs < lenNames, | ||
emptyIndex = indexOf.call(args), | ||
isEmpty = ~emptyIndex; | ||
if (lessArgs) { | ||
template = '{{ name }} coud not be empty!'; | ||
name = names[lenNames - 1]; | ||
if (lessArgs || isEmpty) { | ||
if (lessArgs) | ||
name = names[lenNames - 1]; | ||
else | ||
name = names[emptyIndex]; | ||
@@ -86,0 +92,0 @@ msg = Util.render(template, { |
{ | ||
"name": "util-io", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)", | ||
@@ -5,0 +5,0 @@ "description": "Util-io - utilites for vanila js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29844
646