Commit 45d2bb30 authored by Tristan Cavelier's avatar Tristan Cavelier

queries: naming conventions

parent 5f88fd5b
...@@ -44,10 +44,10 @@ function newClass() { ...@@ -44,10 +44,10 @@ function newClass() {
if (that.hasOwnProperty(key)) { if (that.hasOwnProperty(key)) {
if (typeof that[key] === "function") { if (typeof that[key] === "function") {
Object.defineProperty(that, key, { Object.defineProperty(that, key, {
configurable: option.secure_methods ? false : true, "configurable": option.secure_methods ? false : true,
enumerable: option.hide_methods ? false : true, "enumerable": option.hide_methods ? false : true,
writable: option.secure_methods ? false : true, "writable": option.secure_methods ? false : true,
value: that[key] "value": that[key]
}); });
} }
} }
...@@ -63,11 +63,11 @@ function newClass() { ...@@ -63,11 +63,11 @@ function newClass() {
if (that.hasOwnProperty(key)) { if (that.hasOwnProperty(key)) {
if (typeof that[key] === "function") { if (typeof that[key] === "function") {
Object.defineProperty(that, key, { Object.defineProperty(that, key, {
configurable: option.secure_static_methods === false ? "configurable": option.secure_static_methods ===
true : false, false ? true : false,
enumerable: option.hide_static_methods ? false : true, "enumerable": option.hide_static_methods ? false : true,
writable: option.secure_static_methods === false ? true : false, "writable": option.secure_static_methods === false ? true : false,
value: that[key] "value": that[key]
}); });
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment