(function () {

    // Add behaviour for option buttons
    app(function (api) {

        var resetbtn = document.querySelector("#resetbtn");

        resetbtn.addEventListener("click", function () {
            api.reset();
        }, false);

    });
})();

(function () {

    // Add behaviour for option buttons
    app(function (api) {

        var resetbtn = document.querySelector("#resetbtn");

        resetbtn.addEventListener("click", function () {
            api.reset();
        }, false);

        // Perform additional UI cleanup when reset is called
        api.on("reset", function () {
            api.args.searchinput.value = "";
        });
    });
})();

Add extra UI cleanup for reset
Add extra UI cleanup for reset

Signed-off-by: Kaustav Das Modak <ba1ce5b1e09413a89404909d8d270942c5dadd14@yahoo.co.in>
