| @@ -3,12 +3,16 @@ | ||
| 3 | 3 | var extend = function ( out ) { |
| 4 | 4 | out = out || {}; |
| 5 | 5 | |
| 6 | 6 | for ( var i = 1; i < arguments.length; i++ ) { |
| 7 | - if ( ! arguments[ i ] ) continue; | |
| 7 | + if ( ! arguments[ i ] ) { | |
| 8 | + continue; | |
| 9 | + } | |
| 8 | 10 | |
| 9 | 11 | for ( var key in arguments[ i ] ) { |
| 10 | - if ( arguments[ i ].hasOwnProperty( key ) ) out[ key ] = arguments[ i ][ key ]; | |
| 12 | + if ( Object.hasOwn( arguments[ i ], key ) ) { | |
| 13 | + out[ key ] = arguments[ i ][ key ]; | |
| 14 | + } | |
| 11 | 15 | } |
| 12 | 16 | } |
| 13 | 17 | |
| 14 | 18 | return out; |
| @@ -43,9 +47,9 @@ | ||
| 43 | 47 | var heading = card.querySelector( 'h4' ); |
| 44 | 48 | if ( heading ) { |
| 45 | 49 | var extra = document.createElement( 'p' ); |
| 46 | 50 | extra.className = 'grav-extra ' + key; |
| 47 | - extra.innerHTML = data[ key ]; | |
| 51 | + extra.textContent = data[ key ]; | |
| 48 | 52 | |
| 49 | 53 | heading.insertAdjacentElement( 'afterend', extra ); |
| 50 | 54 | } |
| 51 | 55 | } |