Remove 2nd arg to ol.control.defaults

This commit is contained in:
Éric Lemoine
2013-08-19 14:20:21 +02:00
parent 3f6b9c9434
commit 3d2d45e01f

View File

@@ -8,10 +8,9 @@ goog.require('ol.control.Zoom');
/**
* @param {ol.control.DefaultsOptions=} opt_options Defaults options.
* @param {Array.<ol.control.Control>=} opt_controls Additional controls.
* @return {ol.Collection} Controls.
*/
ol.control.defaults = function(opt_options, opt_controls) {
ol.control.defaults = function(opt_options) {
var options = goog.isDef(opt_options) ? opt_options : {};
@@ -41,10 +40,6 @@ ol.control.defaults = function(opt_options, opt_controls) {
controls.push(new ol.control.Zoom(zoomControlOptions));
}
if (goog.isDef(opt_controls)) {
controls.extend(opt_controls);
}
return controls;
};