Open GoogleCodeExporter opened 9 years ago
I simplified the '__pad' function and removed the 't' parameter which I could't
find any usage of in the rest of the code any way.
Code:
__pad: function(str, l, s){
var p = s || ' ';
var o = str;
if (l - str.length > 0) {
o = new Array(Math.ceil(l / p.length)).join(p).substr(0, l-str.length) + str;
}
return o;
}
Original comment by c.fre...@gmail.com
on 23 Nov 2010 at 2:17
Original issue reported on code.google.com by
c.fre...@gmail.com
on 23 Nov 2010 at 1:35