Quantcast

[HtmlUnit] SVN: [14403] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/HtmlElement.java

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[HtmlUnit] SVN: [14403] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ html/HtmlElement.java

asashour-2
Revision: 14403
          http://sourceforge.net/p/htmlunit/code/14403
Author:   asashour
Date:     2017-05-07 09:18:58 +0000 (Sun, 07 May 2017)
Log Message:
-----------
HtmlElement: remove unused methods

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java 2017-05-07 09:16:58 UTC (rev 14402)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/html/HtmlElement.java 2017-05-07 09:18:58 UTC (rev 14403)
@@ -55,8 +55,6 @@
 import com.gargoylesoftware.htmlunit.javascript.host.html.HTMLElement2;
 import com.gargoylesoftware.js.nashorn.internal.objects.Global;
 
-import net.sourceforge.htmlunit.corejs.javascript.Function;
-
 /**
  * An abstract wrapper for HTML elements.
  *
@@ -971,17 +969,6 @@
     }
 
     /**
-     * <span style="color:red">INTERNAL API - SUBJECT TO CHANGE AT ANY TIME - USE AT YOUR OWN RISK.</span><br>
-     * Registers a JavaScript function as an event handler.
-     * @param eventName the name of the event, such as "onclick" or "onblur", etc
-     * @param eventHandler a Rhino JavaScript function
-     */
-    public final void setEventHandler(final String eventName, final Function eventHandler) {
-        final HTMLElement jsObj = (HTMLElement) getScriptableObject();
-        jsObj.setEventHandler(eventName, eventHandler);
-    }
-
-    /**
      * Adds an HtmlAttributeChangeListener to the listener list.
      * The listener is registered for all attributes of this HtmlElement,
      * as well as descendant elements.


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
HtmlUnit-develop mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop
Loading...