]> git.ipfire.org Git - thirdparty/foundation/foundation-sites.git/commit
fix: improve id detection/replacment for Toggler `aria-controls` attribute 11167/head
authorNicolas Coden <nicolas@ncoden.fr>
Thu, 12 Apr 2018 21:51:12 +0000 (23:51 +0200)
committerNicolas Coden <nicolas@ncoden.fr>
Thu, 12 Apr 2018 21:51:12 +0000 (23:51 +0200)
commit6437acf2b671439bdef3199511dd3761aa187090
tree8a9fbafbef49cb262cadedbe7f86e044a9a796ba
parent3e6e35cb6eb87db58d9341d6d4cbab40f651e18a
fix: improve id detection/replacment for Toggler `aria-controls` attribute

Changes:
* Only add the id if it does not exist in `aria-contolers` with better RegExp detection
* Use ES6 features to simplify code
* Add comments
js/foundation.toggler.js