Quantcast

[HtmlUnit] SVN: [14410] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host/event/EventHandler.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: [14410] trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/ javascript/host/event/EventHandler.java

asashour-2
Revision: 14410
          http://sourceforge.net/p/htmlunit/code/14410
Author:   asashour
Date:     2017-05-08 06:36:19 +0000 (Mon, 08 May 2017)
Log Message:
-----------
Fix event function creation

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

Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventHandler.java
===================================================================
--- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventHandler.java 2017-05-07 19:05:34 UTC (rev 14409)
+++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/event/EventHandler.java 2017-05-08 06:36:19 UTC (rev 14410)
@@ -45,7 +45,7 @@
         node_ = node;
         eventName_ = eventName;
 
-        jsSnippet_ = "function " + eventName + "(event) {" + jsSnippet + "\n}";
+        jsSnippet_ = "function on" + eventName + "(event) {" + jsSnippet + "\n}";
 
         final ScriptableObject w = node.getPage().getEnclosingWindow().getScriptableObject();
         final Scriptable function = (Scriptable) w.get("Function", w);


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