MCPcopy Index your code
hub / github.com/HelloZeroNet/ZeroNet / same

Function same

plugins/UiConfig/media/js/all.js:225–236  ·  view source on GitHub ↗
(vnode1, vnode2)

Source from the content-addressed store, hash-verified

223 };
224 // Hyperscript helper functions
225 var same = function (vnode1, vnode2) {
226 if (vnode1.vnodeSelector !== vnode2.vnodeSelector) {
227 return false;
228 }
229 if (vnode1.properties && vnode2.properties) {
230 if (vnode1.properties.key !== vnode2.properties.key) {
231 return false;
232 }
233 return vnode1.properties.bind === vnode2.properties.bind;
234 }
235 return !vnode1.properties && !vnode2.properties;
236 };
237 var toTextVNode = function (data) {
238 return {
239 vnodeSelector: '',

Callers 3

findIndexOfChildFunction · 0.70
checkDistinguishableFunction · 0.70
updateChildrenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected