Skip to content

Commit

Permalink
Improve addClass, removeClass and toggleClass methods docs
Browse files Browse the repository at this point in the history
Co-Authored-By: Anjana Sofia Vakil <anjana.vakil@mapbox.com>
  • Loading branch information
Poluektov Dmitriy and Anjana Sofia Vakil committed Oct 28, 2019
1 parent 8a832d8 commit b00e6eb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ui/popup.js
Expand Up @@ -346,9 +346,9 @@ export default class Popup extends Evented {
}

/**
* Removes class from container element.
* Removes a CSS class from the popup container element.
*
* @param {string} className non empty string
* @param {string} className Non-empty string with CSS class name to remove from popup container
*
* @example
* let popup = new mapboxgl.Popup()
Expand All @@ -359,9 +359,9 @@ export default class Popup extends Evented {
}

/**
* When only one argument is present toggle the class value.
* Add or remove the given CSS class on the popup container, depending on whether the container currently has that class.
*
* @param {string} className non empty string
* @param {string} className Non-empty string with CSS class name to add/remove
*
* @returns {boolean} if the class was removed return false, if class was added, then return true
*
Expand Down

0 comments on commit b00e6eb

Please sign in to comment.