MCPcopy
hub / github.com/DHTMLX/gantt / buildViewArray

Function buildViewArray

samples/common/codehighlight/codemirror.js:2004–2012  ·  view source on GitHub ↗
(cm, from, to)

Source from the content-addressed store, hash-verified

2002
2003 // Create a range of LineView objects for the given lines.
2004 function buildViewArray(cm, from, to) {
2005 var array = [], nextPos;
2006 for (var pos = from; pos < to; pos = nextPos) {
2007 var view = new LineView(cm.doc, getLine(cm.doc, pos), pos);
2008 nextPos = pos + view.size;
2009 array.push(view);
2010 }
2011 return array
2012 }
2013
2014 var operationGroup = null;
2015

Callers 2

regChangeFunction · 0.85
adjustViewFunction · 0.85

Calls 1

getLineFunction · 0.85

Tested by

no test coverage detected