You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 10, 2020. It is now read-only.
Had a problem where I need to reinitialize the element with different options.
Would be nice if a proper "destroy" method is available on the plugin. Thanks!
My temporary workaround
I used this to destroy the instance before recreating it.
if ($('.phone2').data("jquery.fbmessenger") !== undefined) {
$('.phone2').removeData("jquery.fbmessenger");
$('.phone2').empty();
}
$('.phone2').fbMessenger({ botName: 'My New Bot Name' });
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Had a problem where I need to reinitialize the element with different options.
Would be nice if a proper "destroy" method is available on the plugin. Thanks!
My temporary workaround
I used this to destroy the instance before recreating it.
The text was updated successfully, but these errors were encountered: