[HtmlUnit] SVN: [14148] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host/event/EventListenersContainer2.java

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

[HtmlUnit] SVN: [14148] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host/event/EventListenersContainer2.java

asashour-2
Revision: 14148
          http://sourceforge.net/p/htmlunit/code/14148
Author:   asashour
Date:     2017-04-21 11:00:57 +0000 (Fri, 21 Apr 2017)
Log Message:
-----------
hu3: Window3Test now passes

Modified Paths:
--------------
    trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventListenersContainer2.java

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventListenersContainer2.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventListenersContainer2.java 2017-04-21 10:53:21 UTC (rev 14147)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventListenersContainer2.java 2017-04-21 11:00:57 UTC (rev 14148)
@@ -33,9 +33,9 @@
 import com.gargoylesoftware.htmlunit.html.HtmlPage;
 import com.gargoylesoftware.js.nashorn.internal.runtime.ScriptFunction;
 import com.gargoylesoftware.js.nashorn.internal.runtime.ScriptObject;
+import com.gargoylesoftware.js.nashorn.internal.runtime.Undefined;
 
 import net.sourceforge.htmlunit.corejs.javascript.Function;
-import net.sourceforge.htmlunit.corejs.javascript.Undefined;
 
 /**
  * Container for event listener.
@@ -208,7 +208,7 @@
      */
     public void setEventHandlerProp(final String eventName, final Object value) {
         Object handler = value;
-        if (handler == Undefined.instance) {
+        if (handler == Undefined.getUndefined()) {
             handler = null;
         }
 


------------------------------------------------------------------------------
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