Permalink
Browse files

Export ol.DragBoxEvent coordinate as a property, not a function

  • Loading branch information...
1 parent 95674a5 commit b2aa9bb19fefb32d878443ab6f3194407df7c340 @twpayne twpayne committed Mar 2, 2014
Showing with 13 additions and 13 deletions.
  1. +10 −0 externs/oli.js
  2. +0 −2 src/ol/interaction/dragboxinteraction.exports
  3. +3 −11 src/ol/interaction/dragboxinteraction.js
View
@@ -18,6 +18,16 @@ oli.CollectionEvent = function() {};
oli.CollectionEvent.prototype.element;
+
+/** @interface */
+oli.DragBoxEvent;
+
+
+/** @type {ol.Coordinate} */
+oli.DragBoxEvent.prototype.coordinate;
+
+
+
/** @interface */
oli.DrawEvent;
@@ -1,4 +1,2 @@
@exportSymbol ol.interaction.DragBox
@exportProperty ol.interaction.DragBox.prototype.getGeometry
-
-@exportProperty ol.DragBoxEvent.prototype.getCoordinate
@@ -44,30 +44,22 @@ ol.DragBoxEventType = {
* @param {ol.Coordinate} coordinate The event coordinate.
* @extends {goog.events.Event}
* @constructor
+ * @implements {oli.DragBoxEvent}
*/
ol.DragBoxEvent = function(type, coordinate) {
goog.base(this, type);
/**
* The coordinate of the drag event.
+ * @const
* @type {ol.Coordinate}
- * @private
*/
- this.coordinate_ = coordinate;
+ this.coordinate = coordinate;
};
goog.inherits(ol.DragBoxEvent, goog.events.Event);
-/**
- * Get the name of the property associated with this event.
- * @return {ol.Coordinate} Event coordinate.
- */
-ol.DragBoxEvent.prototype.getCoordinate = function() {
- return this.coordinate_;
-};
-
-
/**
* @constructor

0 comments on commit b2aa9bb

Please sign in to comment.