From 41813bf7b6b3d2fe238dc7dd1196df9bdcc900dc Mon Sep 17 00:00:00 2001 From: Daniel Ruf Date: Thu, 29 Mar 2018 23:04:39 +0200 Subject: [PATCH] docs: update the destroy method name on the JavaScript page --- docs/pages/drilldown-menu.md | 2 +- docs/pages/javascript.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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. -- 2.47.2