Merge pull request #4789 from fredj/use_ol.array

Use ol.array instead of goog.array
This commit is contained in:
Frédéric Junod
2016-02-04 14:38:34 +01:00
7 changed files with 5 additions and 11 deletions

View File

@@ -24,7 +24,6 @@
"externs/topojson.js"
],
"define": [
"goog.array.ASSUME_NATIVE_FUNCTIONS=true",
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.json.USE_NATIVE_JSON=true",
"goog.DEBUG=false"

View File

@@ -25,7 +25,6 @@
"externs/topojson.js"
],
"define": [
"goog.array.ASSUME_NATIVE_FUNCTIONS=true",
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.json.USE_NATIVE_JSON=true",
"goog.DEBUG=false"

View File

@@ -14,7 +14,6 @@
"externs/topojson.js"
],
"define": [
"goog.array.ASSUME_NATIVE_FUNCTIONS=true",
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.json.USE_NATIVE_JSON=true",
"goog.DEBUG=false"

View File

@@ -167,7 +167,6 @@ The minimum config file looks like this:
"node_modules/openlayers/externs/topojson.js"
],
"define": [
"goog.array.ASSUME_NATIVE_FUNCTIONS=true",
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.json.USE_NATIVE_JSON=true",
"goog.DEBUG=false",
@@ -223,7 +222,6 @@ Here is a version of `config.json` with more compilation checks enabled:
"node_modules/openlayers/externs/topojson.js"
],
"define": [
"goog.array.ASSUME_NATIVE_FUNCTIONS=true",
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.json.USE_NATIVE_JSON=true",
"goog.DEBUG=false",

View File

@@ -60,7 +60,6 @@ Creating a custom build requires writing a build configuration file. The format
"externs/topojson.js"
],
"define": [
"goog.array.ASSUME_NATIVE_FUNCTIONS=true",
"goog.dom.ASSUME_STANDARDS_MODE=true",
"goog.json.USE_NATIVE_JSON=true",
"goog.DEBUG=false"

View File

@@ -2658,7 +2658,7 @@ describe('ol.format.KML', function() {
});
it('creates a Point and a MultiPolygon for Alaska', function() {
var alaska = goog.array.find(features, function(feature) {
var alaska = ol.array.find(features, function(feature) {
return feature.get('name') === 'Alaska';
});
expect(alaska).to.be.an(ol.Feature);
@@ -2798,7 +2798,7 @@ describe('ol.format.KML', function() {
});
goog.require('goog.array');
goog.require('ol.array');
goog.require('goog.dom.xml');
goog.require('ol.Feature');
goog.require('ol.format.GeoJSON');

View File

@@ -443,7 +443,7 @@ describe('ol.layer.Group', function() {
var layerStatesArray = layerGroup.getLayerStatesArray();
var initialArray = layerStatesArray.slice();
goog.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex);
ol.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex);
expect(layerStatesArray[0]).to.eql(initialArray[0]);
expect(layerStatesArray[1]).to.eql(initialArray[1]);
@@ -471,7 +471,7 @@ describe('ol.layer.Group', function() {
var layerStatesArray = layerGroup.getLayerStatesArray();
var initialArray = layerStatesArray.slice();
goog.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex);
ol.array.stableSort(layerStatesArray, ol.renderer.Map.sortByZIndex);
expect(layerStatesArray[0]).to.eql(initialArray[3]);
expect(layerStatesArray[1]).to.eql(initialArray[0]);
expect(layerStatesArray[2]).to.eql(initialArray[2]);
@@ -489,7 +489,7 @@ describe('ol.layer.Group', function() {
});
goog.require('goog.array');
goog.require('ol.array');
goog.require('goog.dispose');
goog.require('ol.events');
goog.require('ol.events.EventType');