From 2b4757367470d8e36bc00901dac567e375796ed4 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Tue, 13 Nov 2018 00:24:09 -0500 Subject: update viz 2 to use the newest version, which has some performance improvements and is easier to read the code for. also update the description --- assets/viz/2/goog/array/array.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'assets/viz/2/goog/array') diff --git a/assets/viz/2/goog/array/array.js b/assets/viz/2/goog/array/array.js index 4fdfcaf..47e0dbb 100644 --- a/assets/viz/2/goog/array/array.js +++ b/assets/viz/2/goog/array/array.js @@ -791,7 +791,7 @@ goog.array.removeAllIf = function(arr, f, opt_obj) { * @return {!Array} The new resultant array. */ goog.array.concat = function(var_args) { - return Array.prototype.concat.apply(Array.prototype, arguments); + return Array.prototype.concat.apply([], arguments); }; @@ -802,7 +802,7 @@ goog.array.concat = function(var_args) { * @template T */ goog.array.join = function(var_args) { - return Array.prototype.concat.apply(Array.prototype, arguments); + return Array.prototype.concat.apply([], arguments); }; @@ -1366,14 +1366,14 @@ goog.array.binaryRemove = function(array, value, opt_compareFn) { /** * Splits an array into disjoint buckets according to a splitting function. * @param {Array} array The array. - * @param {function(this:S, T,number,Array):?} sorter Function to call for + * @param {function(this:S, T, number, !Array):?} sorter Function to call for * every element. This takes 3 arguments (the element, the index and the * array) and must return a valid object key (a string, number, etc), or * undefined, if that object should not be placed in a bucket. * @param {S=} opt_obj The object to be used as the value of 'this' within * sorter. - * @return {!Object} An object, with keys being all of the unique return values - * of sorter, and values being arrays containing the items for + * @return {!Object>} An object, with keys being all of the unique + * return values of sorter, and values being arrays containing the items for * which the splitter returned that key. * @template T,S */ -- cgit v1.2.3