Merge pull request #6203 from tschaub/missing-requires

Address a few missing requires
This commit is contained in:
Tim Schaub
2016-12-04 10:11:28 -07:00
committed by GitHub
11 changed files with 17 additions and 18 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
goog.provide('ol.events.condition'); goog.provide('ol.events.condition');
goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEvent');
goog.require('ol.asserts'); goog.require('ol.asserts');
goog.require('ol.functions'); goog.require('ol.functions');
goog.require('ol.has'); goog.require('ol.has');
+5 -5
View File
@@ -80,7 +80,7 @@ ol.geom.flat.interpolate.lineString = function(flatCoordinates, offset, end, str
* @param {boolean} extrapolate Extrapolate. * @param {boolean} extrapolate Extrapolate.
* @return {ol.Coordinate} Coordinate. * @return {ol.Coordinate} Coordinate.
*/ */
ol.geom.flat.lineStringCoordinateAtM = function(flatCoordinates, offset, end, stride, m, extrapolate) { ol.geom.flat.interpolate.lineStringCoordinateAtM = function(flatCoordinates, offset, end, stride, m, extrapolate) {
if (end == offset) { if (end == offset) {
return null; return null;
} }
@@ -147,10 +147,10 @@ ol.geom.flat.lineStringCoordinateAtM = function(flatCoordinates, offset, end, st
* @param {boolean} interpolate Interpolate. * @param {boolean} interpolate Interpolate.
* @return {ol.Coordinate} Coordinate. * @return {ol.Coordinate} Coordinate.
*/ */
ol.geom.flat.lineStringsCoordinateAtM = function( ol.geom.flat.interpolate.lineStringsCoordinateAtM = function(
flatCoordinates, offset, ends, stride, m, extrapolate, interpolate) { flatCoordinates, offset, ends, stride, m, extrapolate, interpolate) {
if (interpolate) { if (interpolate) {
return ol.geom.flat.lineStringCoordinateAtM( return ol.geom.flat.interpolate.lineStringCoordinateAtM(
flatCoordinates, offset, ends[ends.length - 1], stride, m, extrapolate); flatCoordinates, offset, ends[ends.length - 1], stride, m, extrapolate);
} }
var coordinate; var coordinate;
@@ -181,12 +181,12 @@ ol.geom.flat.lineStringsCoordinateAtM = function(
if (m < flatCoordinates[offset + stride - 1]) { if (m < flatCoordinates[offset + stride - 1]) {
return null; return null;
} else if (m <= flatCoordinates[end - 1]) { } else if (m <= flatCoordinates[end - 1]) {
return ol.geom.flat.lineStringCoordinateAtM( return ol.geom.flat.interpolate.lineStringCoordinateAtM(
flatCoordinates, offset, end, stride, m, false); flatCoordinates, offset, end, stride, m, false);
} }
offset = end; offset = end;
} }
ol.DEBUG && console.assert(false, ol.DEBUG && console.assert(false,
'ol.geom.flat.lineStringsCoordinateAtM should have returned'); 'ol.geom.flat.interpolate.lineStringsCoordinateAtM should have returned');
return null; return null;
}; };
+1 -1
View File
@@ -147,7 +147,7 @@ ol.geom.LineString.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
return null; return null;
} }
var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false; var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false;
return ol.geom.flat.lineStringCoordinateAtM(this.flatCoordinates, 0, return ol.geom.flat.interpolate.lineStringCoordinateAtM(this.flatCoordinates, 0,
this.flatCoordinates.length, this.stride, m, extrapolate); this.flatCoordinates.length, this.stride, m, extrapolate);
}; };
+1 -1
View File
@@ -134,7 +134,7 @@ ol.geom.MultiLineString.prototype.getCoordinateAtM = function(m, opt_extrapolate
} }
var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false; var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false;
var interpolate = opt_interpolate !== undefined ? opt_interpolate : false; var interpolate = opt_interpolate !== undefined ? opt_interpolate : false;
return ol.geom.flat.lineStringsCoordinateAtM(this.flatCoordinates, 0, return ol.geom.flat.interpolate.lineStringsCoordinateAtM(this.flatCoordinates, 0,
this.ends_, this.stride, m, extrapolate, interpolate); this.ends_, this.stride, m, extrapolate, interpolate);
}; };
+1 -1
View File
@@ -1,7 +1,7 @@
goog.provide('ol.interaction.DoubleClickZoom'); goog.provide('ol.interaction.DoubleClickZoom');
goog.require('ol'); goog.require('ol');
goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEvent');
goog.require('ol.interaction.Interaction'); goog.require('ol.interaction.Interaction');
+1 -1
View File
@@ -5,7 +5,7 @@ goog.require('ol.events');
goog.require('ol.extent'); goog.require('ol.extent');
goog.require('ol.events.Event'); goog.require('ol.events.Event');
goog.require('ol.Feature'); goog.require('ol.Feature');
goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEvent');
goog.require('ol.Object'); goog.require('ol.Object');
goog.require('ol.coordinate'); goog.require('ol.coordinate');
goog.require('ol.functions'); goog.require('ol.functions');
+1 -1
View File
@@ -2,7 +2,7 @@ goog.provide('ol.interaction.Extent');
goog.require('ol'); goog.require('ol');
goog.require('ol.Feature'); goog.require('ol.Feature');
goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEvent');
goog.require('ol.MapBrowserPointerEvent'); goog.require('ol.MapBrowserPointerEvent');
goog.require('ol.coordinate'); goog.require('ol.coordinate');
goog.require('ol.events.Event'); goog.require('ol.events.Event');
+1 -1
View File
@@ -3,7 +3,7 @@ goog.provide('ol.interaction.Modify');
goog.require('ol'); goog.require('ol');
goog.require('ol.Collection'); goog.require('ol.Collection');
goog.require('ol.Feature'); goog.require('ol.Feature');
goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEvent');
goog.require('ol.MapBrowserPointerEvent'); goog.require('ol.MapBrowserPointerEvent');
goog.require('ol.View'); goog.require('ol.View');
goog.require('ol.array'); goog.require('ol.array');
+1 -1
View File
@@ -2,7 +2,7 @@ goog.provide('ol.interaction.Pointer');
goog.require('ol'); goog.require('ol');
goog.require('ol.functions'); goog.require('ol.functions');
goog.require('ol.MapBrowserEvent.EventType'); goog.require('ol.MapBrowserEvent');
goog.require('ol.MapBrowserPointerEvent'); goog.require('ol.MapBrowserPointerEvent');
goog.require('ol.interaction.Interaction'); goog.require('ol.interaction.Interaction');
goog.require('ol.obj'); goog.require('ol.obj');
-1
View File
@@ -7,7 +7,6 @@ goog.provide('ol.Map');
goog.require('ol'); goog.require('ol');
goog.require('ol.Collection'); goog.require('ol.Collection');
goog.require('ol.MapBrowserEvent'); goog.require('ol.MapBrowserEvent');
goog.require('ol.MapBrowserEvent.EventType');
goog.require('ol.MapBrowserEventHandler'); goog.require('ol.MapBrowserEventHandler');
goog.require('ol.MapEvent'); goog.require('ol.MapEvent');
goog.require('ol.Object'); goog.require('ol.Object');
+4 -4
View File
@@ -205,9 +205,9 @@ ol.pointer.PointerEventHandler.prototype.removeEvents_ = function(events) {
*/ */
ol.pointer.PointerEventHandler.prototype.cloneEvent = function(event, inEvent) { ol.pointer.PointerEventHandler.prototype.cloneEvent = function(event, inEvent) {
var eventCopy = {}, p; var eventCopy = {}, p;
for (var i = 0, ii = ol.pointer.CLONE_PROPS.length; i < ii; i++) { for (var i = 0, ii = ol.pointer.PointerEventHandler.CLONE_PROPS.length; i < ii; i++) {
p = ol.pointer.CLONE_PROPS[i][0]; p = ol.pointer.PointerEventHandler.CLONE_PROPS[i][0];
eventCopy[p] = event[p] || inEvent[p] || ol.pointer.CLONE_PROPS[i][1]; eventCopy[p] = event[p] || inEvent[p] || ol.pointer.PointerEventHandler.CLONE_PROPS[i][1];
} }
return eventCopy; return eventCopy;
@@ -407,7 +407,7 @@ ol.pointer.PointerEventHandler.prototype.disposeInternal = function() {
* Properties to copy when cloning an event, with default values. * Properties to copy when cloning an event, with default values.
* @type {Array.<Array>} * @type {Array.<Array>}
*/ */
ol.pointer.CLONE_PROPS = [ ol.pointer.PointerEventHandler.CLONE_PROPS = [
// MouseEvent // MouseEvent
['bubbles', false], ['bubbles', false],
['cancelable', false], ['cancelable', false],