MCPcopy Create free account
hub / github.com/TruthHun/BookStack / clipPosArray

Function clipPosArray

static/editor.md/lib/codemirror/lib/codemirror.js:2005–2008  ·  view source on GitHub ↗
(doc, array)

Source from the content-addressed store, hash-verified

2003 }
2004 function isLine(doc, l) {return l >= doc.first && l < doc.first + doc.size;}
2005 function clipPosArray(doc, array) {
2006 for (var out = [], i = 0; i < array.length; i++) out[i] = clipPos(doc, array[i]);
2007 return out;
2008 }
2009
2010 // SELECTION UPDATES
2011

Callers 1

codemirror.jsFile · 0.70

Calls 1

clipPosFunction · 0.70

Tested by

no test coverage detected