r9495 - helma-ng/trunk/modules/helma

[email protected]
Newsgroups gmane.comp.java.helma.cvs
Message-ID <[email protected]>
Author: hannes
Date: 2009-01-29 15:21:49 +0100 (Thu, 29 Jan 2009)
New Revision: 9495

Modified:
   helma-ng/trunk/modules/helma/webapp.js
Log:
Simplify code in handleRequest.

Details at http://dev.helma.org/trac/helma/changeset/9495

Modified: helma-ng/trunk/modules/helma/webapp.js
===================================================================
--- helma-ng/trunk/modules/helma/webapp.js	2009-01-29 14:21:47 UTC (rev 9494)
+++ helma-ng/trunk/modules/helma/webapp.js	2009-01-29 14:21:49 UTC (rev 9495)
@@ -93,8 +93,7 @@
                     var action = getAction(module, path[0]);
                     if (typeof action == "function") {
                         // add remaining path elements as additional action arguments
-                        var actionArgs = path.slice(1)
-                                .map(function (elem) decodeURIComponent(elem));
+                        var actionArgs = path.slice(1).map(decodeURIComponent);
                         var args = [req, res].concat(actionArgs);
                         invokeMiddleware('onAction',
                                 config.middleware,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.