diff options
author | Matěj Cepl <mcepl@redhat.com> | 2011-05-13 12:20:05 +0200 |
---|---|---|
committer | Matěj Cepl <mcepl@redhat.com> | 2011-05-13 12:20:05 +0200 |
commit | 97f8f5ad45a8dfbde27f555eafec5d8318ad67b2 (patch) | |
tree | a81faa56305eba7d3900257b971d9eafac0dbd89 /lib/main.js | |
parent | 95c260d3edeeb85194193bfcbd1e991e4dadadbc (diff) | |
download | bugzilla-triage-97f8f5ad45a8dfbde27f555eafec5d8318ad67b2.tar.gz |
Really Eclipseize formatting.
Diffstat (limited to 'lib/main.js')
-rw-r--r-- | lib/main.js | 37 |
1 files changed, 18 insertions, 19 deletions
diff --git a/lib/main.js b/lib/main.js index 431ffe6..c857a08 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,14 +1,14 @@ -// Released under the MIT/X11 license -// http://www.opensource.org/licenses/mit-license.php -// -// Links to read through -// http://ehsanakhgari.org/blog/2010-01-07/bugzilla-tweaks-enhanced -// http://hg.mozilla.org/users/ehsan.akhgari_gmail.com/extensions/file/tip/bugzillatweaks -// http://hg.mozilla.org/users/ehsan.akhgari_gmail.com/extensions/file/ecfa0f028b81/bugzillatweaks/lib/main.js -// http://hg.mozilla.org/users/avarma_mozilla.com/atul-packages/file/42ac1e99a107/packages\ -// /facebook-acquaintances/lib/main.js#l11 -// http://ehsanakhgari.org/blog/2010-05-31/my-experience-jetpack-sdk#comment-1253 -// +//Released under the MIT/X11 license +//http://www.opensource.org/licenses/mit-license.php + +//Links to read through +//http://ehsanakhgari.org/blog/2010-01-07/bugzilla-tweaks-enhanced +//http://hg.mozilla.org/users/ehsan.akhgari_gmail.com/extensions/file/tip/bugzillatweaks +//http://hg.mozilla.org/users/ehsan.akhgari_gmail.com/extensions/file/ecfa0f028b81/bugzillatweaks/lib/main.js +//http://hg.mozilla.org/users/avarma_mozilla.com/atul-packages/file/42ac1e99a107/packages\ +///facebook-acquaintances/lib/main.js#l11 +//http://ehsanakhgari.org/blog/2010-05-31/my-experience-jetpack-sdk#comment-1253 + "use strict"; var browser = require("tab-browser"); var self = require("self"); @@ -103,21 +103,20 @@ var messageHandler = exports.messageHandler = function messageHandler( // url, login, method, params, callback if (msg.data.login) { libbz - .makeJSONRPCCallWithLogin(msg.data.url, msg.data.method, - msg.data.params, msg.data.login, function(ret) { + .makeJSONRPCCallWithLogin(msg.data.url, + msg.data.method, msg.data.params, msg.data.login, + function(ret) { worker.postMessage(new Message(msg.data.callRPC, ret)); - } - ); + }); } else { libbz .makeJSONRPCCall(msg.data.url, msg.data.method, - msg.data.params, function(ret) { + msg.data.params, function(ret) { worker.postMessage(new Message(msg.data.callRPC, ret)); - } - ); + }); } break; case "GetURL": @@ -192,7 +191,7 @@ pageMod.PageMod({ contentScriptFile : self.data.url("lib/skip-bug.js") }); -// Allow toggling of CC event displays using a context menu entry +//Allow toggling of CC event displays using a context menu entry contextMenu.Item({ label : "Toggle CC History", contentScriptFile : [ |