[Pkg-mozext-commits] [greasemonkey] 11/26: Comment non-obvious code.

David Prévot taffit at moszumanska.debian.org
Thu Feb 25 02:27:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository greasemonkey.

commit 0721ae2fd8c2646c566bea45e63c0d58bc3e06a7
Author: Anthony Lieuallen <arantius at gmail.com>
Date:   Wed Jan 20 16:10:53 2016 -0500

    Comment non-obvious code.
---
 modules/addons4.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/addons4.js b/modules/addons4.js
index 0ba59fa..959754d 100755
--- a/modules/addons4.js
+++ b/modules/addons4.js
@@ -100,11 +100,14 @@ function ScriptAddon(aScript) {
   this.homepageURL = this._script.homepageURL;
   this.iconURL = this._script.icon && this._script.icon.fileURL;
   this.id = aScript.id + SCRIPT_ID_SUFFIX;
-  this.isCompatible = this._script.isRemoteUpdateAllowed(false);
   this.name = this._script.localized.name;
   this.providesUpdatesSecurely = aScript.updateIsSecure;
   this.updateDate = this._script.modifiedDate;
   this.version = this._script.version;
+
+  // This, combined with CSS to hide the incorrect "incompatible" text message
+  // causes a visible indication on scripts which will not be updated.
+  this.isCompatible = this._script.isRemoteUpdateAllowed(false);
 }
 
 // Required attributes.

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/greasemonkey.git



More information about the Pkg-mozext-commits mailing list