Inverse function of
goog.structs.StringSet.encode_ .
NOTE: forEach would be 30% faster in FF if the compiler inlined decode.
|
code » | ||
![]()
The '__proto__' and the '__count__' keys aren't enumerable in Firefox, and
'toString', 'valueOf', 'constructor', etc. aren't enumerable in IE so they
have to be escaped before they are added to the internal object.
NOTE: When a new set is created, 50-80% of the CPU time is spent in encode.
Arguments:
Returns: *
The escaped element or the element itself if it doesn't have to
be escaped.
|
code » |