cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vgritse...@apache.org
Subject svn commit: r643863 - /cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/flow.js
Date Wed, 02 Apr 2008 12:05:03 GMT
Author: vgritsenko
Date: Wed Apr  2 05:05:01 2008
New Revision: 643863

URL: http://svn.apache.org/viewvc?rev=643863&view=rev
Log:
simplify

Modified:
    cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/flow.js

Modified: cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/flow.js
URL: http://svn.apache.org/viewvc/cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/flow.js?rev=643863&r1=643862&r2=643863&view=diff
==============================================================================
--- cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/flow.js
(original)
+++ cocoon/trunk/blocks/cocoon-lucene/cocoon-lucene-sample/src/main/resources/COB-INF/flow.js
Wed Apr  2 05:05:01 2008
@@ -14,17 +14,14 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
+
 //
 // @version $Id$
 //
+
 function create() {
-    var create;
     var createParam = cocoon.request.getParameter("create");
-    if (createParam == null) {
-        create = false;
-    } else {
-        create = true;
-    }
+    var create = createParam != null;
       
     var baseURL = cocoon.request.getParameter("baseURL");
     if (baseURL != null && baseURL.length() > 0) {
@@ -41,13 +38,8 @@
 }
 
 function create2() {
-    var create;
     var createParam = cocoon.request.getParameter("create");
-    if (createParam == null) {
-        create = false;
-    } else {
-        create = true;
-    }
+    var create = createParam != null;
       
     var baseURL = cocoon.request.getParameter("baseURL");
     if (baseURL != null && baseURL.length() > 0) {



Mime
View raw message