click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r952854 - /click/trunk/click/framework/src/org/apache/click/Context.java
Date Tue, 08 Jun 2010 22:54:44 GMT
Author: sabob
Date: Tue Jun  8 22:54:44 2010
New Revision: 952854

URL: http://svn.apache.org/viewvc?rev=952854&view=rev
Log:
refactor Context to use utility method

Modified:
    click/trunk/click/framework/src/org/apache/click/Context.java

Modified: click/trunk/click/framework/src/org/apache/click/Context.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Context.java?rev=952854&r1=952853&r2=952854&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/Context.java (original)
+++ click/trunk/click/framework/src/org/apache/click/Context.java Tue Jun  8 22:54:44 2010
@@ -308,8 +308,7 @@ public class Context {
      * @return true if this is an Ajax request, false otherwise
      */
     public boolean isAjaxRequest() {
-        return getRequest().getHeader(X_REQUESTED_WITH) != null
-            || getRequest().getParameter(X_REQUESTED_WITH) != null;
+        return ClickUtils.isAjaxRequest(getRequest());
     }
 
     /**



Mime
View raw message