diff options
author | Doug Kearns <dougkearns@gmail.com> | 2009-10-03 16:58:45 +1000 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2009-10-03 16:58:45 +1000 |
commit | e0412193390089d3fd84e0b1572608c433cbd517 (patch) | |
tree | 25ed3c0af1c4f79483f9bfb680645d5951d17cf6 | |
parent | d0e1f3a2c2ae2e2f89340ee03b54fb0bef97fc99 (diff) | |
download | pentadactyl-e0412193390089d3fd84e0b1572608c433cbd517.tar.gz |
Whitespace fixes.
-rw-r--r-- | common/content/hints.js | 1 | ||||
-rw-r--r-- | common/content/io.js | 1 | ||||
-rw-r--r-- | common/content/style.js | 22 | ||||
-rw-r--r-- | common/content/ui.js | 12 | ||||
-rw-r--r-- | muttator/content/addressbook.js | 1 | ||||
-rw-r--r-- | vimperator/components/chrome-data.js | 22 | ||||
-rw-r--r-- | xulmus/components/chrome-data.js | 22 | ||||
-rw-r--r-- | xulmus/content/library.js | 4 | ||||
-rw-r--r-- | xulmus/content/player.js | 4 |
9 files changed, 43 insertions, 46 deletions
diff --git a/common/content/hints.js b/common/content/hints.js index ef027578..799e8c43 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -843,7 +843,6 @@ function Hints() //{{{ validator: Option.validateCompleter }); - /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// MAPPINGS //////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ diff --git a/common/content/io.js b/common/content/io.js index 1b94a2d6..d9e5d1c3 100644 --- a/common/content/io.js +++ b/common/content/io.js @@ -463,7 +463,6 @@ function IO() //{{{ completion.addUrlCompleter("f", "Local files", completion.file); }); - /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// PUBLIC SECTION ////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ diff --git a/common/content/style.js b/common/content/style.js index 6884b584..9337759f 100644 --- a/common/content/style.js +++ b/common/content/style.js @@ -265,17 +265,17 @@ function Styles(name, store) const Sheet = new Struct("name", "id", "sites", "css", "system", "agent"); Sheet.prototype.__defineGetter__("fullCSS", function wrapCSS() { - let filter = this.sites; - let css = this.css; - if (filter[0] == "*") - return namespace + css; - let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" : - /[\/:]/.test(part) ? "url" - : "domain") - + '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")') - .join(", "); - return namespace + "/* Liberator style #" + this.id + " */ @-moz-document " + selectors + "{\n" + css + "\n}\n"; - }); + let filter = this.sites; + let css = this.css; + if (filter[0] == "*") + return namespace + css; + let selectors = filter.map(function (part) (/[*]$/.test(part) ? "url-prefix" : + /[\/:]/.test(part) ? "url" + : "domain") + + '("' + part.replace(/"/g, "%22").replace(/[*]$/, "") + '")') + .join(", "); + return namespace + "/* Liberator style #" + this.id + " */ @-moz-document " + selectors + "{\n" + css + "\n}\n"; + }); Sheet.prototype.__defineGetter__("enabled", function () this._enabled); Sheet.prototype.__defineSetter__("enabled", function (on) { this._enabled = Boolean(on); diff --git a/common/content/ui.js b/common/content/ui.js index fbc5595c..60a39f78 100644 --- a/common/content/ui.js +++ b/common/content/ui.js @@ -53,7 +53,7 @@ function CommandLine() //{{{ autocommands.trigger("Sanitize", {}); }, window); - var messageHistory = { // {{{ + var messageHistory = { //{{{ _messages: [], get messages() { @@ -83,7 +83,7 @@ function CommandLine() //{{{ this._messages.push(message); } - }; // }}} + }; //}}} var lastMowOutput = null; var silent = false; @@ -97,7 +97,7 @@ function CommandLine() //{{{ * @param {HTMLInputElement} inputField * @param {string} mode The mode for which we need history. */ - function History(inputField, mode) // {{{ + function History(inputField, mode) //{{{ { if (!(this instanceof arguments.callee)) return new arguments.callee(inputField, mode); @@ -220,14 +220,14 @@ function CommandLine() //{{{ } } } - }; // }}} + }; //}}} /** * A class for tab completions on an input field. * * @param {Object} input */ - function Completions(input) // {{{ + function Completions(input) //{{{ { if (!(this instanceof arguments.callee)) return new arguments.callee(input); @@ -511,7 +511,7 @@ function CommandLine() //{{{ if (this.items.length == 0) liberator.beep(); } - }; // }}} + }; //}}} /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// TIMERS ////////////////////////////////////////////////// diff --git a/muttator/content/addressbook.js b/muttator/content/addressbook.js index 4697d4d4..8148706b 100644 --- a/muttator/content/addressbook.js +++ b/muttator/content/addressbook.js @@ -32,7 +32,6 @@ function Addressbook() //{{{ ////////////////////// OPTIONS ///////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ - /////////////////////////////////////////////////////////////////////////////}}} ////////////////////// MAPPINGS //////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////{{{ diff --git a/vimperator/components/chrome-data.js b/vimperator/components/chrome-data.js index 62fe8fbb..d0a32592 100644 --- a/vimperator/components/chrome-data.js +++ b/vimperator/components/chrome-data.js @@ -16,18 +16,18 @@ * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the + * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ diff --git a/xulmus/components/chrome-data.js b/xulmus/components/chrome-data.js index 0c162296..9f9a01bc 100644 --- a/xulmus/components/chrome-data.js +++ b/xulmus/components/chrome-data.js @@ -17,18 +17,18 @@ * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the + * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER + * + * The above copyright notice and this permission notice shall be included in + * all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL + * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER * DEALINGS IN THE SOFTWARE. */ diff --git a/xulmus/content/library.js b/xulmus/content/library.js index a914d730..75356953 100644 --- a/xulmus/content/library.js +++ b/xulmus/content/library.js @@ -4,7 +4,7 @@ // given in the LICENSE.txt file included with this file. -function Library() // {{{ +function Library() //{{{ { //////////////////////////////////////////////////////////////////////////////// ////////////////////// PRIVATE SECTION ///////////////////////////////////////// @@ -73,6 +73,6 @@ function Library() // {{{ }; //}}} -} // }}} +} //}}} // vim: set fdm=marker sw=4 ts=4 et: diff --git a/xulmus/content/player.js b/xulmus/content/player.js index 18955dcc..518ff8cf 100644 --- a/xulmus/content/player.js +++ b/xulmus/content/player.js @@ -4,7 +4,7 @@ // given in the LICENSE.txt file included with this file. -function Player() // {{{ +function Player() //{{{ { //////////////////////////////////////////////////////////////////////////////// ////////////////////// PRIVATE SECTION ///////////////////////////////////////// @@ -799,6 +799,6 @@ function Player() // {{{ }; //}}} -} // }}} +} //}}} // vim: set fdm=marker sw=4 ts=4 et: |