lib/preact.rb in isomorfeus-preact-10.6.37 vs lib/preact.rb in isomorfeus-preact-10.6.38

- old
+ new

@@ -214,15 +214,13 @@ operabu[operabu.length - 1].push(oper.createElement(component, native_props)); } }; self.deep_force_update = function(vnode) { - if(vnode) { - if (vnode.__c && vnode.__c.forceUpdate) { vnode.__c.forceUpdate(); } - if (vnode.__k) { - for (let i=0; i<vnode.__k.length; i++) { - self.deep_force_update(vnode.__k[i]); - } + vnode?.__c?.forceUpdate?.(); + if (vnode?.__k) { + for (let i=0; i<vnode.__k.length; i++) { + self.deep_force_update(vnode.__k[i]); } } }; }