Skip to content

Instantly share code, notes, and snippets.

@kiros33
Created May 18, 2018 01:57
Show Gist options
  • Save kiros33/68d63d617a4426b0586c461995e7f018 to your computer and use it in GitHub Desktop.
Save kiros33/68d63d617a4426b0586c461995e7f018 to your computer and use it in GitHub Desktop.
lunr.Pipeline.prototype.remove = function (fn) {
var pos = this._stack.indexOf(fn)
if (pos == -1) {
return
}
this._stack.splice(pos, 1)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment