From: Daniel Ruf Date: Sat, 16 Jun 2018 07:49:43 +0000 (+0200) Subject: Use pull request #11110 from DanielRuf/docs/javascript-update-destroy-method-name... X-Git-Tag: v6.5.0-rc.1^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06a5afdb5102040757e384f98fe27acf31431f7b;p=thirdparty%2Ffoundation%2Ffoundation-sites.git Use pull request #11110 from DanielRuf/docs/javascript-update-destroy-method-name for v6.5.0 41813bf7b docs: update the destroy method name on the JavaScript page Signed-off-by: Nicolas Coden --- diff --git a/docs/pages/drilldown-menu.md b/docs/pages/drilldown-menu.md index 39c2a87a6..79bc9f41c 100644 --- a/docs/pages/drilldown-menu.md +++ b/docs/pages/drilldown-menu.md @@ -90,7 +90,7 @@ Any `` without a submenu will function like a normal link.

If you like to set the height to auto you can also set the autoHeight and animateHeight params

- +

diff --git a/docs/pages/javascript.md b/docs/pages/javascript.md index c96f72edf..23b483c85 100644 --- a/docs/pages/javascript.md +++ b/docs/pages/javascript.md @@ -191,7 +191,7 @@ $('#reveal').foundation('open'); //will open a Reveal modal with id `reveal`. $('[data-tabs]').eq(0).foundation('selectTab', $('#example')); //will change the first Tabs on the page to whatever panel you choose. -$('.tooltip').foundation('destroy'); //will destroy all Tooltips on the page. +$('.tooltip').foundation('_destroy'); //will destroy all Tooltips on the page. ``` You can use any jQuery selector you like, and if the selector encompasses multiple plugins, they will all have the same the chosen method invoked. You pass arguments just like you would any in other JavaScript `function(comma, delimited, so, easy)`. We did make an effort to reduce the number of public methods that require arguments, but check the plugin's page to see if it requires additional information.