options.js 304 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 module.exports = exports = function (proto) { proto._options = {}; proto.options = function setOptions (options) { var keys = Object.keys(options) , i = keys.length , key while (i--) { key = keys[i]; this._options[key] = options[key]; } return this; } }