summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2013-04-17 14:25:48 +0300
committerVaadin Code Review <review@vaadin.com>2013-04-17 14:37:52 +0000
commitb8614ad16cac44637dbfa11829b4cb896c4ac9cf (patch)
treee0337ad6721ea9bf59b10ec9d17628e46738d749 /client
parent0f75f202d333ac507fb3e5efb8e9bd4d4719e098 (diff)
downloadvaadin-framework-b8614ad16cac44637dbfa11829b4cb896c4ac9cf.tar.gz
vaadin-framework-b8614ad16cac44637dbfa11829b4cb896c4ac9cf.zip
Add PushMode.isEnabled() (#11626)
Change-Id: I416dc73566e2404a6dce35045fc79f9038e8dd5e
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ApplicationConnection.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index ce57dc5bca..04e3ab9dc6 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -89,7 +89,6 @@ import com.vaadin.shared.ApplicationConstants;
import com.vaadin.shared.Version;
import com.vaadin.shared.communication.LegacyChangeVariablesInvocation;
import com.vaadin.shared.communication.MethodInvocation;
-import com.vaadin.shared.communication.PushMode;
import com.vaadin.shared.communication.SharedState;
import com.vaadin.shared.ui.ui.UIConstants;
@@ -3395,7 +3394,7 @@ public class ApplicationConnection {
}
private void initializePush() {
- if (getConfiguration().getPushMode() != PushMode.DISABLED) {
+ if (getConfiguration().getPushMode().isEnabled()) {
push = GWT.create(PushConnection.class);
push.init(this);