[awesomplete] Add destroy function (#25426)

This commit is contained in:
Chris LoPresto
2018-05-01 09:08:48 -07:00
committed by Andy
parent a374c30282
commit 78b9e35d82
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -11,6 +11,7 @@ new Awesomplete(input, {
const awesomplete = new Awesomplete(input);
awesomplete.list = ["Ada", "Java", "JavaScript", "LOLCODE", "Node.js", "Ruby on Rails"];
awesomplete.destroy();
new Awesomplete(input, {
list: [
+5 -1
View File
@@ -1,6 +1,9 @@
// Type definitions for Awesomplete 1.1
// Project: https://leaverou.github.io/awesomplete/
// Definitions by: webbiesdk <https://github.com/webbiesdk>, Ben Dixon <https://github.com/bmdixon>, Trevor Bekolay <https://github.com/tbekolay>
// Definitions by: webbiesdk <https://github.com/webbiesdk>
// Ben Dixon <https://github.com/bmdixon>
// Trevor Bekolay <https://github.com/tbekolay>
// Chris LoPresto <https://github.com/chrislopresto>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare class Awesomplete {
@@ -35,6 +38,7 @@ declare class Awesomplete {
selected: boolean;
open: () => void;
status: HTMLElement;
destroy: () => void;
}
declare namespace Awesomplete {