Source: widgets/search/text.js

define('application/widgets/search/text', [
    'rofl/widgets/input/text'
], function (
    TextInput
) {
    'use strict';

    return TextInput.extend({

        /**
         * Displays the value.
         *
         * @param {Object} value - The value.
         */
        displayValue: function displayValue (value) {

            /*
             * LG has a nasty bug where the device does not redraw
             * when removing characters where multiple of the same characters
             * are displayed in succession.
             * We force a redraw by first removing all content and after setting it again.
             */
            this.outputElement.innerHTML = '';
            displayValue.base.call(this, value);
        }
    });
});