Created
May 21, 2015 08:27
-
-
Save viliam-durina/49368434e394ec7f19e0 to your computer and use it in GitHub Desktop.
patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From b8acaff2711c5fc581c6e4dcfd51a67bf89e743c Mon Sep 17 00:00:00 2001 | |
From: viliam-durina <[email protected]> | |
Date: Thu, 21 May 2015 10:11:13 +0200 | |
Subject: [PATCH] fixed $entry calls | |
--- | |
.../src/main/java/org/vaadin/gwtol3/client/View.java | 18 +++++++++--------- | |
.../java/org/vaadin/gwtol3/client/feature/Feature.java | 6 +++--- | |
.../org/vaadin/gwtol3/client/source/VectorSource.java | 12 ++++++------ | |
3 files changed, 18 insertions(+), 18 deletions(-) | |
diff --git a/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/View.java b/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/View.java | |
index 9f1f10a..7a8f8ec 100644 | |
--- a/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/View.java | |
+++ b/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/View.java | |
@@ -256,15 +256,15 @@ public class View extends JavaScriptObject { | |
this.on("change:rotation", fireRotationChanged, this); | |
} | |
var changeListener = { | |
- centerChanged: function(){ | |
- $entry([email protected]::centerChanged()()); | |
- }, | |
- resolutionChanged: function(){ | |
- $entry([email protected]::resolutionChanged()()); | |
- }, | |
- rotationChanged: function(){ | |
- $entry([email protected]::rotationChanged()()); | |
- } | |
+ centerChanged: $entry(function(){ | |
+ [email protected]::centerChanged()(); | |
+ }), | |
+ resolutionChanged: $entry(function(){ | |
+ [email protected]::resolutionChanged()(); | |
+ }), | |
+ rotationChanged: $entry(function(){ | |
+ [email protected]::rotationChanged()(); | |
+ }) | |
}; | |
this.statusChangeListeners.push(changeListener); | |
}-*/; | |
diff --git a/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/feature/Feature.java b/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/feature/Feature.java | |
index bc252bf..df752cf 100644 | |
--- a/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/feature/Feature.java | |
+++ b/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/feature/Feature.java | |
@@ -49,9 +49,9 @@ public class Feature extends JavaScriptObject { | |
public native final void addFeatureChangeListener(FeatureChangeListener listener)/*-{ | |
var that=this; | |
- var callback=function(){ | |
- $entry([email protected]::featureChanged(Lorg/vaadin/gwtol3/client/feature/Feature;)(that)); | |
- }; | |
+ var callback=$entry(function(){ | |
+ [email protected]::featureChanged(Lorg/vaadin/gwtol3/client/feature/Feature;)(that); | |
+ }); | |
this.on("change",callback,this); | |
}-*/; | |
} | |
diff --git a/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/source/VectorSource.java b/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/source/VectorSource.java | |
index 5fef165..d398cf3 100644 | |
--- a/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/source/VectorSource.java | |
+++ b/gwt-ol3/src/main/java/org/vaadin/gwtol3/client/source/VectorSource.java | |
@@ -37,12 +37,12 @@ public class VectorSource extends AbstractVectorSource{ | |
*/ | |
public native final JavaScriptObject addFeatureSetChangeListener(FeatureSetChangeListener listener)/*-{ | |
var changeListener = { | |
- featureAdded: function(feature){ | |
- $entry(listener.@org.vaadin.gwtol3.client.source.vector.FeatureSetChangeListener::featureAdded(Lorg/vaadin/gwtol3/client/feature/Feature;)(feature)); | |
- }, | |
- featureDeleted : function(feature){ | |
- $entry(listener.@org.vaadin.gwtol3.client.source.vector.FeatureSetChangeListener::featureDeleted(Lorg/vaadin/gwtol3/client/feature/Feature;)(feature)); | |
- } | |
+ featureAdded: $entry(function(feature){ | |
+ listener.@org.vaadin.gwtol3.client.source.vector.FeatureSetChangeListener::featureAdded(Lorg/vaadin/gwtol3/client/feature/Feature;)(feature); | |
+ }), | |
+ featureDeleted : $entry(function(feature){ | |
+ listener.@org.vaadin.gwtol3.client.source.vector.FeatureSetChangeListener::featureDeleted(Lorg/vaadin/gwtol3/client/feature/Feature;)(feature); | |
+ }) | |
}; | |
this.featureSetChangeListeners.push(changeListener); | |
}-*/; | |
-- | |
1.9.2.msysgit.0 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment