[Pkg-mozext-commits] [nosquint] 01/13: Remove trailing whitespace
David Prévot
taffit at moszumanska.debian.org
Tue Apr 28 01:41:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag 2.1.7
in repository nosquint.
commit 2cffde6efdf6cea5b64bf4de2c84bf8cccfdef90
Author: Jason Tackaberry <tack at urandom.ca>
Date: Sun Mar 31 19:21:30 2013 -0400
Remove trailing whitespace
---
src/content/browser.js | 12 ++++++------
src/content/dlg-global.js | 2 +-
src/content/dlg-global.xul | 32 ++++++++++++++++----------------
src/content/dlg-site.js | 2 +-
src/content/dlg-site.xul | 6 +++---
src/content/dlg-style.css | 2 +-
src/content/init.js | 2 +-
src/content/interfaces.js | 4 ++--
src/content/lib.js | 8 ++++----
src/content/prefs.js | 12 ++++++------
10 files changed, 41 insertions(+), 41 deletions(-)
diff --git a/src/content/browser.js b/src/content/browser.js
index 952d92c..7da2350 100644
--- a/src/content/browser.js
+++ b/src/content/browser.js
@@ -52,7 +52,7 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
gBrowser.tabContainer.addEventListener('TabOpen', this.handleTabOpen, false);
gBrowser.tabContainer.addEventListener('TabSelect', this.handleTabSelect, false);
gBrowser.tabContainer.addEventListener('TabClose', this.handleTabClose, false);
-
+
this.zoomAll(null, true);
this.styleAll(null);
@@ -77,12 +77,12 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
gBrowser.tabContainer.removeEventListener('TabOpen', this.handleTabOpen, false);
gBrowser.tabContainer.removeEventListener('TabSelect', this.handleTabSelect, false);
gBrowser.tabContainer.removeEventListener('TabClose', this.handleTabClose, false);
- window.removeEventListener('DOMMouseScroll', this.handleMouseScroll, false);
+ window.removeEventListener('DOMMouseScroll', this.handleMouseScroll, false);
};
this.hookZoomButtonsForReset = function() {
if ($('zoom-out-button')) {
- $('zoom-out-button').onclick = $('zoom-in-button').onclick =
+ $('zoom-out-button').onclick = $('zoom-in-button').onclick =
function(event) {
if (event.button == 1)
NoSquint.cmd.buttonReset(event);
@@ -91,7 +91,7 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
/* TODO
$('zoom-out-button').addEventListener('DOMMouseScroll', function(event) {
// Implement wheel zooming over button here.
- }, false);
+ }, false);
*/
}
};
@@ -189,7 +189,7 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
text = full = false;
increment = NSQ.prefs.zoomIncrement * (event.detail < 0 ? 1 : -1);
img = isImage(browser);
-
+
if (NSQ.prefs.wheelZoomInvert)
increment *= -1;
@@ -492,7 +492,7 @@ NoSquint.browser = NoSquint.ns(function() { with (NoSquint) {
zoomAllTimer = null;
};
- /* Queues a zoomAll. Useful when we might otherwise call zoomAll()
+ /* Queues a zoomAll. Useful when we might otherwise call zoomAll()
* multiple times, such as in the case of multiple preferences being
* updated at once.
*/
diff --git a/src/content/dlg-global.js b/src/content/dlg-global.js
index c40b2e2..136b859 100644
--- a/src/content/dlg-global.js
+++ b/src/content/dlg-global.js
@@ -11,7 +11,7 @@ NoSquint.dialogs.global = NoSquint.ns(function() { with (NoSquint) {
$('rememberSites').selectedIndex = Number(!NSQ.prefs.rememberSites);
$('siteForget').checked = (NSQ.prefs.forgetMonths != 0);
$('siteForget-menu').value = NSQ.prefs.forgetMonths;
- $('siteForget').addEventListener('CheckboxStateChange',
+ $('siteForget').addEventListener('CheckboxStateChange',
function() NSQ.dialogs.global.forgetMonthsChecked(), false);
$('siteSanitize').checked = branchPI.getBoolPref('extensions-nosquint');
diff --git a/src/content/dlg-global.xul b/src/content/dlg-global.xul
index 86f0e78..edec0ca 100644
--- a/src/content/dlg-global.xul
+++ b/src/content/dlg-global.xul
@@ -6,7 +6,7 @@
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&ns.pref.title;"
- buttons="help,accept,cancel"
+ buttons="help,accept,cancel"
ondialogaccept="NoSquint.dialogs.global.close()"
ondialogcancel="NoSquint.dialogs.global.cancel()"
ondialoghelp="NoSquint.dialogs.global.help()"
@@ -36,19 +36,19 @@
<radio label="&ns.pref.persistence.remember.label;" />
<vbox class="indent" id='siteForget-box'>
<hbox align="center">
- <checkbox id="siteForget" label="&ns.pref.persistence.forget.label;"
+ <checkbox id="siteForget" label="&ns.pref.persistence.forget.label;"
checked="false" />
<menulist id="siteForget-menu">
<menupopup>
<menuitem value="12" label="&ns.pref.persistence.forget.year;"/>
- <menuitem value="6" label="&ns.pref.persistence.forget.6months;"
+ <menuitem value="6" label="&ns.pref.persistence.forget.6months;"
selected="true" />
<menuitem value="3" label="&ns.pref.persistence.forget.3months;" />
<menuitem value="1" label="&ns.pref.persistence.forget.month;"/>
</menupopup>
</menulist>
</hbox>
- <checkbox id="siteSanitize" label="&ns.pref.persistence.sanitize.label;"
+ <checkbox id="siteSanitize" label="&ns.pref.persistence.sanitize.label;"
checked="false" />
</vbox>
<radio label="&ns.pref.persistence.noRemember.label;" />
@@ -75,7 +75,7 @@
</hbox>
<menulist id="primaryZoomMethod-menu">
<menupopup>
- <menuitem value="full" label="&ns.pref.zooming.primaryMethod.full;"
+ <menuitem value="full" label="&ns.pref.zooming.primaryMethod.full;"
selected="true"/>
<menuitem value="text" label="&ns.pref.zooming.primaryMethod.text;"/>
</menupopup>
@@ -88,7 +88,7 @@
<label>&ns.pref.zooming.fullLevel.label;:</label>
</hbox>
<hbox align="center">
- <textbox id="fullZoomLevel" size="2" type="number" min="40"
+ <textbox id="fullZoomLevel" size="2" type="number" min="40"
max="300" increment="5" />
<label class="percent">%</label>
</hbox>
@@ -100,7 +100,7 @@
<label>&ns.pref.zooming.textLevel.label;:</label>
</hbox>
<hbox align="center">
- <textbox id="textZoomLevel" size="2" type="number" min="40"
+ <textbox id="textZoomLevel" size="2" type="number" min="40"
max="300" increment="5" />
<label class="percent">%</label>
</hbox>
@@ -112,7 +112,7 @@
<label>&ns.pref.zooming.increment.label;:</label>
</hbox>
<hbox align="center">
- <textbox id="zoomIncrement" size="2" type="number" min="1"
+ <textbox id="zoomIncrement" size="2" type="number" min="1"
max="100" increment="1" />
<label class="percent">%</label>
</hbox>
@@ -123,7 +123,7 @@
<!-- XXX: image zoom feature disabled for now.
<checkbox id="zoomImages" label="&ns.pref.zooming.images.label;" checked="false" />
-->
- <checkbox id="wheelZoomEnabled" label="&ns.pref.zooming.mousewheel.label;"
+ <checkbox id="wheelZoomEnabled" label="&ns.pref.zooming.mousewheel.label;"
checked="false" />
<checkbox id="showStatus" label="&ns.pref.zooming.showstatus.label;" checked="false" />
</vbox>
@@ -157,7 +157,7 @@
<caption label="&ns.pref.colors.links.caption;" />
<vbox>
<hbox>
- <checkbox id="linksUnvisited" label="&ns.pref.colors.links.unvisited.label;"
+ <checkbox id="linksUnvisited" label="&ns.pref.colors.links.unvisited.label;"
checked="false" flex="1" />
<colorpicker type='button' />
</hbox>
@@ -180,32 +180,32 @@
<html:p style="margin: 0 7px 0.5em 7px; padding: 0;">&ns.pref.exceptions.info;</html:p>
<label value="&ns.pref.exceptions.pattern.label;:" />
- <textbox id="pattern" width="100%" oninput="NoSquint.dialogs.global.textPatternChange()"
+ <textbox id="pattern" width="100%" oninput="NoSquint.dialogs.global.textPatternChange()"
onkeypress="return NoSquint.dialogs.global.textPatternKeyPress(event)" />
<hbox>
<button label="&ns.pref.exceptions.copyButton.label;" id="copyURL-button"
accesskey="&ns.pref.exceptions.copyButton.accesskey;"
oncommand="NoSquint.dialogs.global.buttonCopyFromURL()" />
<spacer flex="1" />
- <button label="&ns.pref.exceptions.addButton.label;" icon="add" id="exceptionAdd-button"
+ <button label="&ns.pref.exceptions.addButton.label;" icon="add" id="exceptionAdd-button"
accesskey="&ns.pref.exceptions.addButton.accesskey;"
disabled="true" oncommand="NoSquint.dialogs.global.buttonAddException()" />
</hbox>
<separator />
- <listbox id="exceptionsList" flex="1" seltype="multiple" rows="5"
- onkeypress="return NoSquint.dialogs.global.excListKeyPress(event)"
+ <listbox id="exceptionsList" flex="1" seltype="multiple" rows="5"
+ onkeypress="return NoSquint.dialogs.global.excListKeyPress(event)"
onselect="NoSquint.dialogs.global.excListSelect()">
<listhead>
<listheader label="&ns.pref.exceptions.list.col1.label;" />
</listhead>
</listbox>
<hbox>
- <button label="&ns.pref.exceptions.editButton.label;" id="exceptionEdit-button"
+ <button label="&ns.pref.exceptions.editButton.label;" id="exceptionEdit-button"
accesskey="&ns.pref.exceptions.editButton.accesskey;"
oncommand="NoSquint.dialogs.global.buttonEditException()" />
- <button label="&ns.pref.exceptions.removeButton.label;"
+ <button label="&ns.pref.exceptions.removeButton.label;"
icon="remove" id="exceptionRemove-button"
accesskey="&ns.pref.exceptions.removeButton.accesskey;"
oncommand="NoSquint.dialogs.global.buttonRemoveException()" />
diff --git a/src/content/dlg-site.js b/src/content/dlg-site.js
index 039e373..94ab491 100644
--- a/src/content/dlg-site.js
+++ b/src/content/dlg-site.js
@@ -21,7 +21,7 @@ NoSquint.dialogs.site = NoSquint.ns(function() { with (NoSquint) {
$('linksUnderline').addEventListener('CheckboxStateChange', restyle, false);
};
-
+
// Immediately dismiss window. Used when transitioning from Private Browsing mode.
this.die = function() {
this.finalize();
diff --git a/src/content/dlg-site.xul b/src/content/dlg-site.xul
index 1f55415..ad81847 100644
--- a/src/content/dlg-site.xul
+++ b/src/content/dlg-site.xul
@@ -11,7 +11,7 @@
<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html="http://www.w3.org/1999/xhtml"
title="&ns.pref.title;"
- buttons="extra1,accept,cancel"
+ buttons="extra1,accept,cancel"
ondialogaccept="NoSquint.dialogs.site.close()"
ondialogcancel="NoSquint.dialogs.site.cancel()"
ondialogextra1="NoSquint.dialogs.site.openGlobalSettings()"
@@ -63,7 +63,7 @@
<spacer flex="1" />
<label value="&ns.pref.textZoom.label;:" />
</hbox>
- <scale id="text-zoom-slider" min="40" increment="1" max="300"
+ <scale id="text-zoom-slider" min="40" increment="1" max="300"
onchange="NoSquint.dialogs.site.sliderChange(this)"/>
<hbox align="center">
<textbox id="text-zoom-level" size="2" type="number" min="40" max="300" increment="5" />
@@ -98,7 +98,7 @@
<caption label="&ns.pref.colors.links.caption;" />
<vbox>
<hbox>
- <checkbox id="linksUnvisited" label="&ns.pref.colors.links.unvisited.label;"
+ <checkbox id="linksUnvisited" label="&ns.pref.colors.links.unvisited.label;"
checked="false" flex="1" />
<colorpicker type='button' />
</hbox>
diff --git a/src/content/dlg-style.css b/src/content/dlg-style.css
index 428bb52..7f29116 100644
--- a/src/content/dlg-style.css
+++ b/src/content/dlg-style.css
@@ -1,5 +1,5 @@
p {
- max-width: 40em;
+ max-width: 40em;
}
label.percent {
diff --git a/src/content/init.js b/src/content/init.js
index f8f49c8..2971118 100644
--- a/src/content/init.js
+++ b/src/content/init.js
@@ -55,5 +55,5 @@ var NoSquint = {
}
};
-window.addEventListener("load", NoSquint.init, false);
+window.addEventListener("load", NoSquint.init, false);
window.addEventListener("unload", NoSquint.destroy, false);
diff --git a/src/content/interfaces.js b/src/content/interfaces.js
index fa70e2f..3f2c09f 100644
--- a/src/content/interfaces.js
+++ b/src/content/interfaces.js
@@ -84,7 +84,7 @@ NoSquint.interfaces = NoSquint.ns(function() { with (NoSquint) {
},
onStateChange: function(progress, request, state, astatus) {
- //debug("LISTENER: request=" + request + ", state=" + state + ", status=" +
+ //debug("LISTENER: request=" + request + ", state=" + state + ", status=" +
// astatus + ", type=" + this.browser.docShell.document.contentType);
/* Check the current content type against the content type we initially got.
@@ -275,7 +275,7 @@ NoSquint.interfaces = NoSquint.ns(function() { with (NoSquint) {
var addon = subject.QueryInterface(Components.interfaces.nsIUpdateItem);
this.onDisabling(addon, true);
break;
-
+
case "item-cancel-action":
var addon = subject.QueryInterface(Components.interfaces.nsIUpdateItem);
this.onOperationCancelled(addon);
diff --git a/src/content/lib.js b/src/content/lib.js
index 2006355..4de7571 100644
--- a/src/content/lib.js
+++ b/src/content/lib.js
@@ -116,7 +116,7 @@
*/
this.isChrome = function(browser) {
var document = browser.docShell.document;
-
+
//this.debug('isChrome(): URL=' + document.URL + ', spec=' + browser.currentURI.spec + ', contentType=' + document.contentType);
if (document.URL == undefined)
return true;
@@ -175,9 +175,9 @@
this.popup = function(type, title, text, value) {
var prompts = Components.classes["@mozilla.org/embedcomp/prompt-service;1"]
.getService(Components.interfaces.nsIPromptService);
- if (type == 'confirm')
+ if (type == 'confirm')
return prompts.confirmEx(window, title, text,
- prompts.STD_YES_NO_BUTTONS, null, null, null,
+ prompts.STD_YES_NO_BUTTONS, null, null, null,
null, {value: null});
else if (type == 'alert')
return prompts.alert(window, title, text);
@@ -195,7 +195,7 @@
for (let i = 0; i < arguments.length; i++) {
var arg = arguments[i];
// duck typing
- if (arg.length !== undefined) {
+ if (arg.length !== undefined) {
for (let idx = 0; idx < arg.length; idx++)
yield arg[idx];
} else {
diff --git a/src/content/prefs.js b/src/content/prefs.js
index 005e5a5..239bac2 100644
--- a/src/content/prefs.js
+++ b/src/content/prefs.js
@@ -24,7 +24,7 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
/* Active window we can use for window methods (e.g. setTimeout). Because
* NSQ.prefs is a singleton, it could be that the window we initialized
- * with has been closed. In that case, setTimeout will fail with
+ * with has been closed. In that case, setTimeout will fail with
* NS_ERROR_NOT_INITIALIZED. So we keep a reference to an available
* window here we can call window.* methods with, and if the window
* goes away, we find a new one using foreachNSQ().
@@ -130,7 +130,7 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
* may not actually still be alive.
*/
this.winFunc = function(func) {
- var args = Array.prototype.slice.call(arguments, 1);
+ var args = Array.prototype.slice.call(arguments, 1);
try {
return this.window[func].apply(this.window, args);
} catch (e) {
@@ -319,7 +319,7 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
*/
this.parseSites = function(sitesStr) {
/* Parse site list from prefs. The prefs string a list of site specs,
- * delimited by a space, in the form:
+ * delimited by a space, in the form:
*
* sitename=text_level,timestamp,visits,full_level,textcolor,bgcolor,
* nobgimages,linkunvis,linkvis,linkunderline
@@ -405,7 +405,7 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
for (let part in iter(parts)) {
if (part == '')
continue;
- if (wildcards[part])
+ if (wildcards[part])
pattern.push(wildcards[part]);
else {
length += part.length;
@@ -449,7 +449,7 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
this.pruneSites = function() {
if (!this.rememberSites || this.forgetMonths == 0)
return;
-
+
var remove = [];
var now = new Date();
for (let [site, settings] in items(this.sites)) {
@@ -654,7 +654,7 @@ NoSquint.prefs = NoSquint.ns(function() { with(NoSquint) {
uri_host += ':' + uri_port;
var match = null;
-
+
/* Iterate over each exception, trying to match it with the URI.
* We break the loop on the first match, because exceptions are
* sorted with highest weights first.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/nosquint.git
More information about the Pkg-mozext-commits
mailing list