Bump to v3.0.1.

This commit is contained in:
jdalton
2015-01-26 20:13:55 -08:00
parent 9b7c4d6761
commit 3b2df88eab
14 changed files with 63 additions and 42 deletions

View File

@@ -1,4 +1,4 @@
define(['./baseToString', '../string/repeat', './root'], function(baseToString, repeat, root) {
define(['../string/repeat', './root'], function(repeat, root) {
/** Native method references. */
var ceil = Math.ceil;
@@ -25,7 +25,7 @@ define(['./baseToString', '../string/repeat', './root'], function(baseToString,
return '';
}
var padLength = length - strLength;
chars = chars == null ? ' ' : baseToString(chars);
chars = chars == null ? ' ' : (chars + '');
return repeat(chars, ceil(padLength / chars.length)).slice(0, padLength);
}