Author: ivaynberg
Date: Sun Feb  1 19:01:50 2009
New Revision: 739815

URL: http://svn.apache.org/viewvc?rev=739815&view=rev
Log:
WICKET-2005

Modified:
    
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js

Modified: 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
URL: 
http://svn.apache.org/viewvc/wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js?rev=739815&r1=739814&r2=739815&view=diff
==============================================================================
--- 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 (original)
+++ 
wicket/trunk/wicket-extensions/src/main/java/org/apache/wicket/extensions/ajax/markup/html/autocomplete/wicket-autocomplete.js
 Sun Feb  1 19:01:50 2009
@@ -84,7 +84,7 @@
         objonchangeoriginal=obj.onchange; 
         obj.onchange=function(event){
                if(mouseactive==1)return false;
-               if(typeof objonchangeoriginal=="function")objonchangeoriginal();
+               if(typeof 
objonchangeoriginal=="function")objonchangeoriginal.apply(this,[event]);
        }
         objonchange=obj.onchange;
                 
@@ -94,7 +94,7 @@
                        return killEvent(event);
                }
                hideAutoComplete();
-               if(typeof objonblur=="function")objonblur();
+               if(typeof objonblur=="function")objonblur.apply(this,[event]);
         }
        
        obj.onfocus=function(event){
@@ -105,7 +105,7 @@
                     updateChoices();
                 }
             }
-               if(typeof objonfocus=="function")objonfocus();
+               if(typeof objonfocus=="function")objonfocus.apply(this,[event]);
         }
 
         obj.onkeydown=function(event){
@@ -140,7 +140,7 @@
                         var value = getSelectedValue();
                         if(value = handleSelection(value)) {
                           obj.value = value;
-                          if(typeof objonchange=="function") 
objonchange(event);
+                          if(typeof objonchange=="function") 
objonchange.apply(this,[event]);
                         }
                         hideAutoComplete();
                         hidingAutocomplete = 1;
@@ -149,7 +149,7 @@
                         hidingAutocomplete = 1;
                     }
                        mouseactive=0;
-                       if(typeof objonkeydown=="function")objonkeydown(event);
+                       if(typeof 
objonkeydown=="function")objonkeydown.apply(this,[event]);
 
                        if(selected>-1){
                                //return killEvent(event);
@@ -178,7 +178,7 @@
                 default:
                    updateChoices();
             }
-                       if(typeof objonkeyup=="function")objonkeyup(event);
+                       if(typeof 
objonkeyup=="function")objonkeyup.apply(this,[event]);
             return null;
         }
 
@@ -189,7 +189,7 @@
                                return killEvent(event);
                 }
             }
-                       if(typeof 
objonkeypress=="function")objonkeypress(event);
+                       if(typeof 
objonkeypress=="function")objonkeypress.apply(this,[event]);
         }
     }
 


Reply via email to