From 1edafe2b6c27343b9c2bd6b72f4fdb1972cf52b4 Mon Sep 17 00:00:00 2001 From: Damien Churchill Date: Fri, 26 Jun 2009 18:40:48 +0000 Subject: [PATCH] sort out some whitespace --- deluge/ui/web/js/ext-extensions-debug.js | 33 ++++++++++++------------ 1 file changed, 16 insertions(+), 17 deletions(-) diff --git a/deluge/ui/web/js/ext-extensions-debug.js b/deluge/ui/web/js/ext-extensions-debug.js index 85b824402..9308ca57e 100644 --- a/deluge/ui/web/js/ext-extensions-debug.js +++ b/deluge/ui/web/js/ext-extensions-debug.js @@ -752,32 +752,31 @@ Ext.reg('fullprogressbar', Ext.ux.FullProgressBar); Ext.override(Ext.form.RadioGroup, { afterRender: function() { - var that = this; - this.items.each(function(i) { - that.relayEvents(i, ['check']); - }); - - Ext.form.RadioGroup.superclass.afterRender.call(this) - }, - - getName: function() { - return this.items.first().getName(); - }, + var that = this; + this.items.each(function(i) { + that.relayEvents(i, ['check']); + }); + Ext.form.RadioGroup.superclass.afterRender.call(this) + }, - getValue: function() { + getName: function() { + return this.items.first().getName(); + }, + + getValue: function() { var v; this.items.each(function(item) { - v = item.getRawValue(); - return !item.getValue(); + v = item.getRawValue(); + return !item.getValue(); }); return v; - }, + }, setValue: function(v) { this.items.each(function(item) { item.setValue((item.getRawValue() === 'true') == v); - }); - } + }); + } });