/** * jQuery plugin for an instant searching. * * @author Oleg Voronkovich * @author Yonel Ceruto */ (function ($) { 'use strict'; String.prototype.render = function (parameters) { return this.replace(/({{ (\w+) }})/g, function (match, pattern, name) { return parameters[name]; }) }; // INSTANTS SEARCH PUBLIC CLASS DEFINITION // ======================================= var InstantSearch = function (element, options) { this.$input = $(element); this.$form = this.$input.closest('form'); this.$preview = $('