From: Daniel Ruf Date: Thu, 29 Mar 2018 21:04:39 +0000 (+0200) Subject: docs: update the destroy method name on the JavaScript page X-Git-Tag: v6.6.0~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F11110%2Fhead;p=thirdparty%2Ffoundation%2Ffoundation-sites.git docs: update the destroy method name on the JavaScript page --- 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 7690e5ce3..fbf2da590 100644 --- a/docs/pages/javascript.md +++ b/docs/pages/javascript.md @@ -181,7 +181,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.