@@ -388,15 +388,11 @@ export function renderChildren(children, fragment, parent, id, hydrate, isSvg) {
388388 */
389389export function diffProps ( node , props , nextProps , handlers , isSvg ) {
390390 for ( const key in props ) {
391- if ( Object . prototype . hasOwnProperty . call ( props , key ) ) {
392- ! ( key in nextProps ) &&
393- setProperty ( node , key , props [ key ] , null , isSvg , handlers ) ;
394- }
391+ ! ( key in nextProps ) &&
392+ setProperty ( node , key , props [ key ] , null , isSvg , handlers ) ;
395393 }
396394 for ( const key in nextProps ) {
397- if ( Object . prototype . hasOwnProperty . call ( nextProps , key ) ) {
398- setProperty ( node , key , props [ key ] , nextProps [ key ] , isSvg , handlers ) ;
399- }
395+ setProperty ( node , key , props [ key ] , nextProps [ key ] , isSvg , handlers ) ;
400396 }
401397}
402398
@@ -460,11 +456,9 @@ export function setProperty(node, key, prevValue, nextValue, isSvg, handlers) {
460456
461457 if ( nextIsObject ) {
462458 for ( const key in nextValue ) {
463- if ( Object . prototype . hasOwnProperty . call ( nextValue , key ) ) {
464- const value = nextValue [ key ] ;
465- if ( prevIsObject && prevValue [ key ] === value ) continue ;
466- setPropertyStyle ( style , key , value ) ;
467- }
459+ const value = nextValue [ key ] ;
460+ if ( prevIsObject && prevValue [ key ] === value ) continue ;
461+ setPropertyStyle ( style , key , value ) ;
468462 }
469463 } else {
470464 style . cssText = nextValue ;
0 commit comments