Author: [email protected]
Date: Mon Jan 12 08:01:01 2009
New Revision: 4425
Modified:
releases/1.6/user/src/com/google/gwt/user/client/Event.java
Log:
Fix up the javadoc for Event by removing mentions of AssertionError, which
we
don't throw anymore.
patch by: ajr
review by: ecc
pointed out by: colesbury
Modified: releases/1.6/user/src/com/google/gwt/user/client/Event.java
==============================================================================
--- releases/1.6/user/src/com/google/gwt/user/client/Event.java (original)
+++ releases/1.6/user/src/com/google/gwt/user/client/Event.java Mon Jan 12
08:01:01 2009
@@ -34,19 +34,6 @@
* from, and can be accessed in JavaScript code as expected. This is
typically
* done by calling methods in the {...@link com.google.gwt.user.client.DOM}
class.
* </p>
- *
- * <h3>Event Attributes</h3>
- * <p>
- * In hosted mode, most accessors (eg. eve...@link #getKeyCode()} and
- * {...@link Event#getButton()}) assert that the requested attribute is
reliable
- * across all supported browsers. This means that attempting to retrieve
an
- * attribute for an {...@link Event} that does not support that attribute will
- * throw an {...@link AssertionError}. For example, an {...@link Event} of
type
- * {...@link Event#ONCLICK} will throw an {...@link AssertionError} if you
attempt
- * to get the mouse button that was clicked using {...@link Event#getButton()}
- * because the mouse button attribute is not defined for {...@link
Event#ONCLICK}
- * on Internet Explorer.
- * </p>
*/
public class Event extends JavaScriptObject {
/**
@@ -631,10 +618,6 @@
* Gets the mouse x-position on the user's display.
*
* @return the mouse x-position
- * @throws AssertionError if event type is not one of
- * {...@link Event#MOUSEEVENTS}, {...@link Event#ONMOUSEWHEEL},
- * {...@link Event#ONCLICK}, {...@link Event#ONDBLCLICK}, or
- * {...@link Event#ONCONTEXTMENU}
*/
public final int getScreenX() {
return DOM.eventGetScreenX(this);
--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---