updated by GasGit automation
This commit is contained in:
parent
5b0156f827
commit
ae970d3b13
1 changed files with 38 additions and 30 deletions
|
@ -1,6 +1,15 @@
|
|||
var Utils = (function (ns) {
|
||||
|
||||
/**
|
||||
* create a column label for sheet address, starting at 1 = A, 27 = AA etc..
|
||||
* @param {number} columnNumber the column number
|
||||
* @return {string} the address label
|
||||
*/
|
||||
ns.columnLabelMaker = function (columnNumber, s) {
|
||||
s = String.fromCharCode(((columnNumber - 1) % 26) + 'A'.charCodeAt(0)) + (s || '');
|
||||
return columnNumber > 26 ? columnLabelMaker(Math.floor((columnNumber - 1) / 26), s) : s;
|
||||
};
|
||||
/**
|
||||
* get the stack
|
||||
* @return {string} the stack trace
|
||||
*/
|
||||
|
@ -42,7 +51,7 @@ var Utils = (function(ns) {
|
|||
// conver args to an array and digest them
|
||||
return Utilities.base64Encode(
|
||||
Utilities.computeDigest(Utilities.DigestAlgorithm.SHA_1, Array.prototype.slice.call(arguments).map(function (d) {
|
||||
return (Object(d) === d) ? JSON.stringify(d) : d.toString();
|
||||
return (Object(d) === d) ? JSON.stringify(d) : (ns.isUndefined(d) ? 'undefined' : d.toString());
|
||||
}).join("-")));
|
||||
};
|
||||
/**
|
||||
|
@ -110,4 +119,3 @@ var Utils = (function(ns) {
|
|||
|
||||
return ns;
|
||||
})(Utils || {});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue