File tree Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Expand file tree Collapse file tree 1 file changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ public abstract class AbstractAQuery<T extends AbstractAQuery<T>> implements Con
99
99
protected Object progress ;
100
100
protected AccountHandle ah ;
101
101
private Transformer trans ;
102
- private int policy = CACHE_DEFAULT ;
102
+ private Integer policy ;
103
103
private HttpHost proxy ;
104
104
105
105
protected T create (View view ){
@@ -1842,11 +1842,21 @@ public <K> T ajax(AjaxCallback<K> callback){
1842
1842
1843
1843
protected <K > T invoke (AbstractAjaxCallback <?, K > cb ){
1844
1844
1845
+ if (ah != null ){
1846
+ cb .auth (ah );
1847
+ }
1848
+
1849
+ if (progress != null ){
1850
+ cb .progress (progress );
1851
+ }
1845
1852
1846
- cb .auth (ah );
1847
- cb .progress (progress );
1848
- cb .transformer (trans );
1849
- cb .policy (policy );
1853
+ if (trans != null ){
1854
+ cb .transformer (trans );
1855
+ }
1856
+
1857
+ if (policy != null ){
1858
+ cb .policy (policy );
1859
+ }
1850
1860
1851
1861
if (proxy != null ){
1852
1862
cb .proxy (proxy .getHostName (), proxy .getPort ());
You can’t perform that action at this time.
0 commit comments