25 lines
441 B
JavaScript
25 lines
441 B
JavaScript
/*!
|
|
* lunr.utils
|
|
* Copyright (C) @YEAR Oliver Nightingale
|
|
*/
|
|
|
|
/**
|
|
* A namespace containing utils for the rest of the lunr library
|
|
*/
|
|
lunr.utils = {}
|
|
|
|
/**
|
|
* Print a warning message to the console.
|
|
*
|
|
* @param {String} message The message to be printed.
|
|
* @memberOf Utils
|
|
*/
|
|
lunr.utils.warn = (function (global) {
|
|
return function (message) {
|
|
if (global.console && console.warn) {
|
|
console.warn(message)
|
|
}
|
|
}
|
|
})(this)
|
|
|