Skip to content

Commit

Permalink
Make attribution control options argument optional
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Mar 5, 2013
1 parent 5b258ca commit c521f92
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/ol/control/attributioncontrol.js
Expand Up @@ -21,10 +21,11 @@ goog.require('ol.source.Source');
/**
* @constructor
* @extends {ol.control.Control}
* @param {ol.control.AttributionOptions} attributionOptions Attribution
* options.
* @param {ol.control.AttributionOptions=} opt_options Options.
*/
ol.control.Attribution = function(attributionOptions) {
ol.control.Attribution = function(opt_options) {

var options = goog.isDef(opt_options) ? opt_options : {};

this.ulElement_ = goog.dom.createElement(goog.dom.TagName.UL);

Expand All @@ -34,8 +35,8 @@ ol.control.Attribution = function(attributionOptions) {

goog.base(this, {
element: element,
map: attributionOptions.map,
target: attributionOptions.target
map: options.map,
target: options.target
});

/**
Expand Down

0 comments on commit c521f92

Please sign in to comment.