From cd129fb05527b09f64ec8ffabc61314529906979 Mon Sep 17 00:00:00 2001 From: Nicholas Hubbard Date: Sat, 30 Sep 2017 19:44:54 -0400 Subject: [PATCH] Revert "Fix Indentation?" This reverts commit 2bf18d8bdab364636b2589a981c7e7fb395bc669. --- js/class.js | 24 +++++++++---------- .../updatenotification/updatenotification.js | 4 +++- tests/configs/check_config.js | 2 +- 3 files changed, 16 insertions(+), 14 deletions(-) diff --git a/js/class.js b/js/class.js index d054a73e..3c44250e 100644 --- a/js/class.js +++ b/js/class.js @@ -31,22 +31,22 @@ // Check if we're overwriting an existing function prototype[name] = typeof prop[name] == "function" && typeof _super[name] == "function" && fnTest.test(prop[name]) ? (function(name, fn) { - return function() { - var tmp = this._super; + return function() { + var tmp = this._super; - // Add a new ._super() method that is the same method - // but on the super-class - this._super = _super[name]; + // Add a new ._super() method that is the same method + // but on the super-class + this._super = _super[name]; - // The method only need to be bound temporarily, so we - // remove it when we're done executing - var ret = fn.apply(this, arguments); - this._super = tmp; + // The method only need to be bound temporarily, so we + // remove it when we're done executing + var ret = fn.apply(this, arguments); + this._super = tmp; - return ret; - }; - })(name, prop[name]) : prop[name]; + return ret; + }; + })(name, prop[name]) : prop[name]; } // The dummy class constructor diff --git a/modules/default/updatenotification/updatenotification.js b/modules/default/updatenotification/updatenotification.js index 9772f06b..f663f593 100644 --- a/modules/default/updatenotification/updatenotification.js +++ b/modules/default/updatenotification/updatenotification.js @@ -58,7 +58,9 @@ Module.register("updatenotification", { wrapper.appendChild(message); var subtext = document.createElement("div"); - subtext.innerHTML = this.translate("UPDATE_INFO").replace("COMMIT_COUNT", this.status.behind + " " + ((this.status.behind == 1)? "commit" : "commits")).replace("BRANCH_NAME", this.status.current); + subtext.innerHTML = this.translate("UPDATE_INFO") + .replace("COMMIT_COUNT", this.status.behind + " " + ((this.status.behind == 1)? "commit" : "commits")) + .replace("BRANCH_NAME", this.status.current); subtext.className = "xsmall dimmed"; wrapper.appendChild(subtext); } diff --git a/tests/configs/check_config.js b/tests/configs/check_config.js index 85cc6a48..fa294761 100644 --- a/tests/configs/check_config.js +++ b/tests/configs/check_config.js @@ -48,7 +48,7 @@ try { // In case the there errors show messages and // return console.info(Utils.colors.info("Checking file... ", configFileName)); -// I'm not sure if all ever is utf-8 + // I'm not sure if all ever is utf-8 fs.readFile(configFileName, "utf-8", function(err, data) { if (err) {throw err;} v.JSHINT(data); // Parser by jshint