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/reflect/reflect.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'assets/viz/2/goog/reflect') diff --git a/assets/viz/2/goog/reflect/reflect.js b/assets/viz/2/goog/reflect/reflect.js index 5a88b45..a737324 100644 --- a/assets/viz/2/goog/reflect/reflect.js +++ b/assets/viz/2/goog/reflect/reflect.js @@ -89,7 +89,7 @@ goog.reflect.sinkValue[' '] = goog.nullFunction; * if obj is null. */ goog.reflect.canAccessProperty = function(obj, prop) { - /** @preserveTry */ + try { goog.reflect.sinkValue(obj[prop]); return true; @@ -110,13 +110,13 @@ goog.reflect.canAccessProperty = function(obj, prop) { * the value was never used, it would still always be stored in the cache. * * Providing a side-effect free {@code valueFn} and {@code opt_keyFn} - * allows unused calls to {@code goog.cache} to be pruned. + * allows unused calls to {@code goog.reflect.cache} to be pruned. * * @param {!Object} cacheObj The object that contains the cached values. * @param {?} key The key to lookup in the cache. If it is not string or number * then a {@code opt_keyFn} should be provided. The key is also used as the * parameter to the {@code valueFn}. - * @param {!function(?):V} valueFn The value provider to use to calculate the + * @param {function(?):V} valueFn The value provider to use to calculate the * value to store in the cache. This function should be side-effect free * to take advantage of the optimization. * @param {function(?):K=} opt_keyFn The key provider to determine the cache -- cgit v1.2.3