r9448 - apps/gobi/trunk/code/Global
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: hannes
Date: 2008-12-18 16:31:54 +0100 (Thu, 18 Dec 2008)
New Revision: 9448
Modified:
apps/gobi/trunk/code/Global/PageList.js
Log:
Cosmetics: add braces to long if/else statement
Details at http://dev.helma.org/trac/helma/changeset/9448
Modified: apps/gobi/trunk/code/Global/PageList.js
===================================================================
--- apps/gobi/trunk/code/Global/PageList.js 2008-12-18 15:28:36 UTC (rev 9447)
+++ apps/gobi/trunk/code/Global/PageList.js 2008-12-18 15:31:54 UTC (rev 9448)
@@ -6,11 +6,12 @@
sort: function(list, prop, reverse) {
if (prop) {
list = list.sort(function(a, b) {
- if (prop == "size")
+ if (prop == "size") {
return (compare(a.body ? a.body.length : 0,
b.body ? b.body.length : 0), reverse);
- else
+ } else {
return compare(a[prop], b[prop], reverse);
+ }
});
} else if (reverse) {
return list.reverse();