From 83204cea9fbf274b8feb68532fcac6181097b4da Mon Sep 17 00:00:00 2001 From: Anand Thakker Date: Thu, 7 Jul 2016 17:37:00 -0400 Subject: [PATCH] updateBuffers => updatePaintArrays (Anticipating #2837) --- js/data/bucket.js | 5 +++-- js/source/worker_tile.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/data/bucket.js b/js/data/bucket.js index c54ca9efce1..43e8d8e08df 100644 --- a/js/data/bucket.js +++ b/js/data/bucket.js @@ -127,10 +127,11 @@ Bucket.prototype.populateBuffers = function() { }; /** - * Update the buffers with feature properties, leaving geometries as-is. + * Update paint arrays with the given feature properties, leaving geometries + * as-is. * @private */ -Bucket.prototype.updateBuffers = function(propertiesList) { +Bucket.prototype.updatePaintArrays = function(propertiesList) { this.recalculateStyleLayers(); for (var i = 0; i < propertiesList.length; i++) { diff --git a/js/source/worker_tile.js b/js/source/worker_tile.js index dae81c1a6d3..ce884125d2a 100644 --- a/js/source/worker_tile.js +++ b/js/source/worker_tile.js @@ -258,7 +258,7 @@ WorkerTile.prototype.updateProperties = function(data, layerFamilies, actor, raw // immediately parse non-symbol buckets (they have no dependencies) for (var i = otherBuckets.length - 1; i >= 0; i--) { var properties = data[otherBuckets[i].layer.sourceLayer]; - otherBuckets[i].updateBuffers(properties || []); + otherBuckets[i].updatePaintArrays(properties || []); } // this will probably be async once we include the symbol stuff