Lines Matching defs:clone
116 * @param {Object} obj The object to clone.
117 * @return {Object} a clone of the passed object.
121 lunr.utils.clone = function (obj) {
126 var clone = Object.create(null),
134 clone[key] = val.slice()
141 clone[key] = val
145 throw new TypeError("clone is not deep and does not support nested objects")
148 return clone
380 * Creates a clone of this token. Optionally a function can be
386 lunr.Token.prototype.clone = function (fn) {
422 lunr.utils.clone(metadata)
438 var tokenMetadata = lunr.utils.clone(metadata) || {}
2964 term.forEach(function (t) { this.term(t, lunr.utils.clone(options)) }, this)