Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/node_mod.../npm/node_mod.../prr
File: prr.js
/*!
[0] Fix | Delete
* prr
[1] Fix | Delete
* (c) 2013 Rod Vagg <rod@vagg.org>
[2] Fix | Delete
* https://github.com/rvagg/prr
[3] Fix | Delete
* License: MIT
[4] Fix | Delete
*/
[5] Fix | Delete
[6] Fix | Delete
(function (name, context, definition) {
[7] Fix | Delete
if (typeof module != 'undefined' && module.exports)
[8] Fix | Delete
module.exports = definition()
[9] Fix | Delete
else
[10] Fix | Delete
context[name] = definition()
[11] Fix | Delete
})('prr', this, function() {
[12] Fix | Delete
[13] Fix | Delete
var setProperty = typeof Object.defineProperty == 'function'
[14] Fix | Delete
? function (obj, key, options) {
[15] Fix | Delete
Object.defineProperty(obj, key, options)
[16] Fix | Delete
return obj
[17] Fix | Delete
}
[18] Fix | Delete
: function (obj, key, options) { // < es5
[19] Fix | Delete
obj[key] = options.value
[20] Fix | Delete
return obj
[21] Fix | Delete
}
[22] Fix | Delete
[23] Fix | Delete
, makeOptions = function (value, options) {
[24] Fix | Delete
var oo = typeof options == 'object'
[25] Fix | Delete
, os = !oo && typeof options == 'string'
[26] Fix | Delete
, op = function (p) {
[27] Fix | Delete
return oo
[28] Fix | Delete
? !!options[p]
[29] Fix | Delete
: os
[30] Fix | Delete
? options.indexOf(p[0]) > -1
[31] Fix | Delete
: false
[32] Fix | Delete
}
[33] Fix | Delete
[34] Fix | Delete
return {
[35] Fix | Delete
enumerable : op('enumerable')
[36] Fix | Delete
, configurable : op('configurable')
[37] Fix | Delete
, writable : op('writable')
[38] Fix | Delete
, value : value
[39] Fix | Delete
}
[40] Fix | Delete
}
[41] Fix | Delete
[42] Fix | Delete
, prr = function (obj, key, value, options) {
[43] Fix | Delete
var k
[44] Fix | Delete
[45] Fix | Delete
options = makeOptions(value, options)
[46] Fix | Delete
[47] Fix | Delete
if (typeof key == 'object') {
[48] Fix | Delete
for (k in key) {
[49] Fix | Delete
if (Object.hasOwnProperty.call(key, k)) {
[50] Fix | Delete
options.value = key[k]
[51] Fix | Delete
setProperty(obj, k, options)
[52] Fix | Delete
}
[53] Fix | Delete
}
[54] Fix | Delete
return obj
[55] Fix | Delete
}
[56] Fix | Delete
[57] Fix | Delete
return setProperty(obj, key, options)
[58] Fix | Delete
}
[59] Fix | Delete
[60] Fix | Delete
return prr
[61] Fix | Delete
})
[62] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function