Lines Matching refs:findValue
789 goog.object.getValueByKeys=function(a,b){for(var c=goog.isArrayLike(b),d=c?b:arguments,c=c?0:1;c<d.length&&(a=a[d[c]],goog.isDef(a));c++);return a};goog.object.containsKey=function(a,b){return b in a};goog.object.containsValue=function(a,b){for(var c in a)if(a[c]==b)return!0;return!1};goog.object.findKey=function(a,b,c){for(var d in a)if(b.call(c,a[d],d,a))return d};goog.object.findValue=function(a,b,c){return(b=goog.object.findKey(a,b,c))&&a[b]};
800 cvox.Spannable.prototype.toJson=function(){var a={};a.string=this.string_;a.spans=[];for(var b=0;b<this.spans_.length;++b){var c=this.spans_[b],d=goog.object.findValue(cvox.Spannable.serializableSpansByName_,function(a){return a.ctor===c.value.constructor});if(d){var e={type:d.name,start:c.start,end:c.end};d.toJson&&(e.value=d.toJson.apply(c.value));a.spans.push(e)}}return a};