[Pkg-mozext-commits] [itsalltext] 299/459: Fixed lint
David Prévot
taffit at moszumanska.debian.org
Tue Feb 24 23:26:31 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository itsalltext.
commit 5d620dcd21ef5a0986d9c3ea4f5ca733ca1fff05
Author: docwhat at gerf.org <docwhat at gerf.org>
Date: Wed Jan 2 21:26:28 2008 -0500
Fixed lint
---
src/chrome/content/itsalltext.js | 7 +++----
src/chrome/content/preferences.js | 28 ++++++++++++++--------------
2 files changed, 17 insertions(+), 18 deletions(-)
diff --git a/src/chrome/content/itsalltext.js b/src/chrome/content/itsalltext.js
index 81bf9eb..6e08538 100644
--- a/src/chrome/content/itsalltext.js
+++ b/src/chrome/content/itsalltext.js
@@ -455,7 +455,6 @@ var ItsAllText = function() {
* @returns {String} the UID or null.
*/
that.getCacheObj = function(node) {
- var cobj = null;
var str = that.MYSTRING+"_UID";
var id = null;
if (typeof(node) === 'string') {
@@ -884,7 +883,7 @@ ItsAllText.prototype.hitch = function(object, method) {
// the combined list of static and dynamic arguments.
return object[method].apply(object, args);
};
-}
+};
/**
* @method listen
@@ -898,7 +897,7 @@ ItsAllText.prototype.listen = function (source, event, listener, opt_capture) {
this.debug("listen(%o, %o, -, %o)", source, event, opt_capture);
Components.lookupMethod(source, "addEventListener")(
event, listener, opt_capture);
-}
+};
/**
* @method unlisten
@@ -912,7 +911,7 @@ ItsAllText.prototype.unlisten = function (source, event, listener, opt_capture)
this.debug("unlisten(%o, %o, -, %o)", source, event, opt_capture);
Components.lookupMethod(source, "removeEventListener")(
event, listener, opt_capture);
-}
+};
/**
* Convert an event into a key fingerprint, aka keyprint.
diff --git a/src/chrome/content/preferences.js b/src/chrome/content/preferences.js
index fcf7d34..ca0cd19 100644
--- a/src/chrome/content/preferences.js
+++ b/src/chrome/content/preferences.js
@@ -41,20 +41,6 @@ function pref_editor_select() {
}
}
-function pref_grab(disp, e) {
- e.preventDefault();
- var km = ItsAllText.marshalKeyEvent(e);
- const empty_re = /:0:0$/;
- if (empty_re.test(km) || // Various Alt/Meta keys
- km === '0:0:0:0:0:8' || // Backspace
- km === '0:0:0:0:0:27' || // Escape
- km === '0:0:0:0:0:46') { // Del
- km = '';
- }
- ItsAllText.preferences.private_set('hotkey', km);
- update_hotkey(disp);
-}
-
function update_hotkey(disp) {
var str, km = ItsAllText.preferences.hotkey;
if (typeof(km) === 'undefined') {
@@ -69,6 +55,20 @@ function update_hotkey(disp) {
document.getElementById(disp).value = str;
}
+function pref_grab(disp, e) {
+ e.preventDefault();
+ var km = ItsAllText.marshalKeyEvent(e);
+ const empty_re = /:0:0$/;
+ if (empty_re.test(km) || // Various Alt/Meta keys
+ km === '0:0:0:0:0:8' || // Backspace
+ km === '0:0:0:0:0:27' || // Escape
+ km === '0:0:0:0:0:46') { // Del
+ km = '';
+ }
+ ItsAllText.preferences.private_set('hotkey', km);
+ update_hotkey(disp);
+}
+
function setHelp(text) {
var help = document.getElementById('help');
while (help.firstChild) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/itsalltext.git
More information about the Pkg-mozext-commits
mailing list