Remove useless target argument from ol.Event and subclass constructors

This commit is contained in:
Andreas Hocevar
2016-07-01 17:15:30 +02:00
parent 2845f50ff7
commit ccf15b8be3
12 changed files with 20 additions and 30 deletions
+2 -3
View File
@@ -14,9 +14,8 @@ goog.provide('ol.events.Event');
* @constructor
* @implements {oli.events.Event}
* @param {string} type Type.
* @param {Object=} opt_target Target.
*/
ol.events.Event = function(type, opt_target) {
ol.events.Event = function(type) {
/**
* @type {boolean}
@@ -35,7 +34,7 @@ ol.events.Event = function(type, opt_target) {
* @type {Object}
* @api stable
*/
this.target = opt_target || null;
this.target = null;
};