r9663 - helma-ng/trunk/apps/demo
[email protected] Wed, 22 Apr 2009 22:37:24 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090422203724.CC1603D0D6@mia> |
Author: hannes
Date: 2009-04-22 22:37:24 +0200 (Wed, 22 Apr 2009)
New Revision: 9663
Modified:
helma-ng/trunk/apps/demo/actions.js
Log:
Simplify profiler action
Details at http://dev.helma.org/trac/helma/changeset/9663
Modified: helma-ng/trunk/apps/demo/actions.js
===================================================================
--- helma-ng/trunk/apps/demo/actions.js 2009-04-22 20:30:49 UTC (rev 9662)
+++ helma-ng/trunk/apps/demo/actions.js 2009-04-22 20:37:24 UTC (rev 9663)
@@ -85,14 +85,11 @@
}
function profiler(req) {
- var profilerCalled = false;
+ var profiler = require('helma/profiler');
req.process = function() {
- if (profilerCalled)
- return SkinnedResponse('skins/profiler.html', {
- title: "Profiler"
- });
- profilerCalled = true;
- return require('helma/profiler').handleRequest(req);
+ return SkinnedResponse('skins/profiler.html', {
+ title: "Profiler"
+ });
}
- return req.process();
+ return profiler.handleRequest(req);
}
\ No newline at end of file