Remove undefined type from opt_target and opt_file

This commit is contained in:
Frederic Junod
2014-04-14 12:01:48 +02:00
parent 756f407ef4
commit ef27f14376
+12 -12
View File
@@ -125,8 +125,8 @@ ol.interaction.DragAndDrop.prototype.handleResult_ = function(file, result) {
} }
this.dispatchEvent( this.dispatchEvent(
new ol.interaction.DragAndDropEvent( new ol.interaction.DragAndDropEvent(
ol.interaction.DragAndDropEventType.ADD_FEATURES, this, features, ol.interaction.DragAndDropEventType.ADD_FEATURES, this, file,
projection, file)); features, projection));
}; };
@@ -194,15 +194,15 @@ ol.interaction.DragAndDropEventType = {
* @extends {goog.events.Event} * @extends {goog.events.Event}
* @implements {oli.interaction.DragAndDropEvent} * @implements {oli.interaction.DragAndDropEvent}
* @param {ol.interaction.DragAndDropEventType} type Type. * @param {ol.interaction.DragAndDropEventType} type Type.
* @param {Object=} opt_target Target. * @param {Object} target Target.
* @param {File} file File.
* @param {Array.<ol.Feature>=} opt_features Features. * @param {Array.<ol.Feature>=} opt_features Features.
* @param {ol.proj.Projection=} opt_projection Projection. * @param {ol.proj.Projection=} opt_projection Projection.
* @param {File=} opt_file File.
*/ */
ol.interaction.DragAndDropEvent = ol.interaction.DragAndDropEvent =
function(type, opt_target, opt_features, opt_projection, opt_file) { function(type, target, file, opt_features, opt_projection) {
goog.base(this, type, opt_target); goog.base(this, type, target);
/** /**
* @type {Array.<ol.Feature>|undefined} * @type {Array.<ol.Feature>|undefined}
@@ -210,17 +210,17 @@ ol.interaction.DragAndDropEvent =
*/ */
this.features = opt_features; this.features = opt_features;
/**
* @type {File}
* @todo stability experimental
*/
this.file = file;
/** /**
* @type {ol.proj.Projection|undefined} * @type {ol.proj.Projection|undefined}
* @todo stability experimental * @todo stability experimental
*/ */
this.projection = opt_projection; this.projection = opt_projection;
/**
* @type {File|undefined}
* @todo stability experimental
*/
this.file = opt_file;
}; };
goog.inherits(ol.interaction.DragAndDropEvent, goog.events.Event); goog.inherits(ol.interaction.DragAndDropEvent, goog.events.Event);