mirror of
https://github.com/Polymer/polymer.git
synced 2026-08-19 01:14:44 -05:00
remove null/undefined to empty string
This commit is contained in:
@@ -17,9 +17,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
* @return {string} HTML stringified form of `obj`
|
||||
*/
|
||||
function htmlValue(value) {
|
||||
if (value === null || value === undefined) {
|
||||
return '';
|
||||
} else if (value instanceof HTMLTemplateElement) {
|
||||
if (value instanceof HTMLTemplateElement) {
|
||||
return /** @type {!HTMLTemplateElement} */(value).innerHTML;
|
||||
} else {
|
||||
return String(value);
|
||||
|
||||
Reference in New Issue
Block a user