diff options
author | Ahmed Ashour <asashour@yahoo.com> | 2017-10-04 10:29:34 +0200 |
---|---|---|
committer | Henri Sara <henri.sara@gmail.com> | 2017-10-04 11:29:34 +0300 |
commit | 83f5e593f66d36d99b22298e8023afd3c31a6122 (patch) | |
tree | f17f2a455cd928e3867f58274df68b4014da781d /client | |
parent | f265739578783ca08b7829ba030a38574b3ed4a7 (diff) | |
download | vaadin-framework-83f5e593f66d36d99b22298e8023afd3c31a6122.tar.gz vaadin-framework-83f5e593f66d36d99b22298e8023afd3c31a6122.zip |
Fix typos (#10124)
Diffstat (limited to 'client')
4 files changed, 14 insertions, 14 deletions
diff --git a/client/src/main/java/com/vaadin/client/communication/XhrConnectionError.java b/client/src/main/java/com/vaadin/client/communication/XhrConnectionError.java index 2823865d5a..a4e398c2dd 100644 --- a/client/src/main/java/com/vaadin/client/communication/XhrConnectionError.java +++ b/client/src/main/java/com/vaadin/client/communication/XhrConnectionError.java @@ -21,8 +21,8 @@ import com.google.gwt.http.client.Response; import elemental.json.JsonObject; /** - * XhrConnectionError provides detail about an error which occured during an XHR - * request to the server. + * XhrConnectionError provides detail about an error which occurred during + * an XHR request to the server. * * @since 7.6 * @author Vaadin Ltd diff --git a/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java b/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java index bdd50934b9..238e8e9284 100644 --- a/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java +++ b/client/src/main/java/com/vaadin/client/ui/VAbstractSplitPanel.java @@ -579,7 +579,7 @@ public abstract class VAbstractSplitPanel extends ComplexPanel { if (WidgetUtil.isTouchEvent(event) || !resized) { super.onBrowserEvent(event); } else if (DOM.eventGetType(event) == Event.ONMOUSEUP) { - // Reset the resized flag after a mouseup has occured so the next + // Reset the resized flag after a mouseup has occurred so the next // mousedown/mouseup can be interpreted as a click. resized = false; } diff --git a/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java b/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java index 690ea6b378..4cd697c4a5 100644 --- a/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java +++ b/client/src/main/java/com/vaadin/client/ui/dd/VDropHandler.java @@ -83,7 +83,7 @@ public interface VDropHandler { /** * Returns the application connection to which this {@link VDropHandler} - * belongs to. DragAndDropManager uses this fucction to send Transferable to + * belongs to. DragAndDropManager uses this function to send Transferable to * server side. */ public ApplicationConnection getApplicationConnection(); diff --git a/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java b/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java index 0d430f8c7f..d1f7882dff 100644 --- a/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java +++ b/client/src/main/java/com/vaadin/client/widgets/ChildFocusAwareFlowPanel.java @@ -35,7 +35,7 @@ import com.vaadin.client.ui.FocusableFlowPanel; /** * Focusable flow panel which fires focus/blur events if it or any of its child - * is focused/blured, but doesn't fire events if it happens between its content + * is focused/blurred, but doesn't fire events if it happens between its content * (child) elements. * * @author Vaadin Ltd @@ -46,33 +46,33 @@ public class ChildFocusAwareFlowPanel extends FocusableFlowPanel private class FocusBlurHandler implements BlurHandler, FocusHandler { - private boolean blurOccured; + private boolean blurOccurred; @Override public void onBlur(BlurEvent event) { - blurOccured = true; + blurOccurred = true; Scheduler.get().scheduleDeferred(() -> fireBlurEvent(event)); } @Override public void onFocus(FocusEvent event) { - if (!blurOccured) { - // no blur occured before this focus event + if (!blurOccurred) { + // no blur occurred before this focus event eventBus.fireEvent(event); } else { - // blur occured before this focus event + // blur occurred before this focus event // another component inside the panel was - // blurred => do not fire the focus and set blurOccured to + // blurred => do not fire the focus and set blurOccurred to // false, so // blur will not be fired, too - blurOccured = false; + blurOccurred = false; } } private void fireBlurEvent(BlurEvent event) { - if (blurOccured) { + if (blurOccurred) { eventBus.fireEvent(event); - blurOccured = false; + blurOccurred = false; } } } |