Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jonataswalker committed Dec 19, 2016
1 parent a04c525 commit 8d97e75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ export default class Base extends ol.control.Control {
* @param {object} options Options.
*/
constructor(type = C.controlType.NOMINATIM, options = {}) {

if (!(this instanceof Base)) return new Base();

U.assert(typeof type === 'string', '@param `type` should be string!');
U.assert(typeof options === 'object',
'@param `options` should be object!');
Expand All @@ -23,7 +26,6 @@ export default class Base extends ol.control.Control {

let $nominatim;
const $html = new Html(this);
console.log($html.els); // eslint-disable-line no-console

if (type === C.controlType.NOMINATIM) {
this.container = $html.els.container;
Expand Down

0 comments on commit 8d97e75

Please sign in to comment.