Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Mani.Index.prototype._configure = function (options) {
this.version = Mani.version;
this.options = (options)? options : {};
this.options.name = (this.name)? this.name : 'Mani';
this.eventEmitter = new Lunr.EventEmitter
this.documents = new Documents(this.options, this.eventEmitter);
this._freetext = new FreeText(this.options, this.eventEmitter);
this._match = new Match(this.options, this.eventEmitter);
this._geo = new Geo(this.options, this.eventEmitter);
this.eventEmitter.emit('configured', options, this);
}