MCPcopy
hub / github.com/pandao/editor.md / cmp

Function cmp

lib/codemirror/addon/mode/simple.js:155–165  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

153 }
154
155 function cmp(a, b) {
156 if (a === b) return true;
157 if (!a || typeof a != "object" || !b || typeof b != "object") return false;
158 var props = 0;
159 for (var prop in a) if (a.hasOwnProperty(prop)) {
160 if (!b.hasOwnProperty(prop) || !cmp(a[prop], b[prop])) return false;
161 props++;
162 }
163 for (var prop in b) if (b.hasOwnProperty(prop)) props--;
164 return props == 0;
165 }
166
167 function enterLocalMode(config, state, spec, token) {
168 var pers;

Callers 15

enterLocalModeFunction · 0.70
maxPosFunction · 0.50
minPosFunction · 0.50
codemirror.min.jsFile · 0.50
normalizeSelectionFunction · 0.50
extendRangeFunction · 0.50
setSelectionNoUndoFunction · 0.50
skipAtomicFunction · 0.50
leftButtonDownFunction · 0.50
extendToFunction · 0.50
extendFunction · 0.50
adjustForChangeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected