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

Function same

plugins/UiPluginManager/media/js/all.js:228–239  ·  view source on GitHub ↗
(vnode1, vnode2)

Source from the content-addressed store, hash-verified

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

Callers 3

findIndexOfChildFunction · 0.70
checkDistinguishableFunction · 0.70
updateChildrenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected