[Bps-public-commit] r12725 - pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js

clkao at bestpractical.com clkao at bestpractical.com
Thu May 29 05:53:36 EDT 2008


Author: clkao
Date: Thu May 29 05:53:35 2008
New Revision: 12725

Modified:
   pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js

Log:
minor js cleanups.


Modified: pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js
==============================================================================
--- pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js	(original)
+++ pie/branches/named-params/pieplate/PIE-Plate/share/web/static/js/pieui.js	Thu May 29 05:53:35 2008
@@ -312,32 +312,17 @@
 
 
 function lorzy_generate_struct(parent) {
-
-      var ops = jQuery(parent).children();
-     var tree=   jQuery.grep( 
-         
-     
-     jQuery.map(ops, function (op) {
-        return lorzy_generate_op(jQuery(op));
-        }
-
-        ),
+    var ops = jQuery(parent).children();
+    var tree=   jQuery.grep( 
+        jQuery.map(ops, function (op) { return lorzy_generate_op(jQuery(op)); }),
 
         function(element, index) {
-                if (element &&  (! jQuery(element).hasClass('lorzy-target'))) {
-                return true;
-                    } else {
-                return false;
-                }
+            return (element && !jQuery(element).hasClass('lorzy-target'))
         }
-
     );
    
     return tree;
-
-                    //#lorzy_generate_struct(op)]:
-
-};
+}
 
 
 function lorzy_generate_op (op) {



More information about the Bps-public-commit mailing list