Minor formatting changes and more comments.
MODIFY
src/canvas/canvasRenderer.js
src/canvas/canvasRenderer.js
@@ -113,7 +113,9 @@ var canvasRenderer = function (arg) {
for (i = 0; i < features.length; i += 1) {
if (features[i]._delayRender()) {
+ // reschedule the render for the next animation frame
m_this._render();
+ // exit this render loop so it doesn't occur
return;
}
}

MODIFY
src/canvas/quadFeature.js
src/canvas/quadFeature.js
@@ -130,7 +130,8 @@ var canvas_quadFeature = function (arg) {
* @param {geo.map} map The current renderer's parent map.
*/
this._renderImageAndVideoQuads = function (context2d, map) {
- if ((!m_quads.imgQuads || !m_quads.imgQuads.length) && (!m_quads.vidQuads || !m_quads.vidQuads.length)) {
+ if ((!m_quads.imgQuads || !m_quads.imgQuads.length) &&
+ (!m_quads.vidQuads || !m_quads.vidQuads.length)) {
return;
}

Minor formatting changes and more comments.