X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Fevent%2Fevent.js;h=fd4385cf191b1bd4dbdb823f66078bd610e5c73c;hb=30dc79f1d0aca3ead3980f890a546bc245feb5d5;hp=9f903212597aa2a687d8a438ab101f6508a0a762;hpb=3e3240f7ed52c035f3f68d50836f089bd2d03409;p=jquery.git diff --git a/src/event/event.js b/src/event/event.js index 9f90321..fd4385c 100644 --- a/src/event/event.js +++ b/src/event/event.js @@ -101,6 +101,7 @@ jQuery.fn.extend({ * otherwise $(document).ready() may not fire. * * You can have as many $(document).ready events on your page as you like. + * The functions are then executed in the order they were added. * * @example $(document).ready(function(){ Your code here... }); * @@ -314,6 +315,9 @@ new function(){ * Trigger the focus event of each matched element. This causes all of the functions * that have been bound to thet focus event to be executed. * + * Note: This does not execute the focus method of the underlying elements! If you need to + * focus an element via code, you have to use the DOM method, eg. $("#myinput")[0].focus(); + * * @example $("p").focus(); * @before

Hello

* @result alert('Hello'); @@ -654,6 +658,9 @@ new function(){ * Trigger the blur event of each matched element. This causes all of the functions * that have been bound to thet blur event to be executed. * + * Note: This does not execute the blur method of the underlying elements! If you need to + * blur an element via code, you have to use the DOM method, eg. $("#myinput")[0].blur(); + * * @example $("p").blur(); * @before

Hello

* @result alert('Hello'); @@ -1526,7 +1533,7 @@ new function(){ */ var e = ("blur,focus,load,resize,scroll,unload,click,dblclick," + - "mousedown,mouseup,mousemove,mouseover,mouseout,change,reset,select," + + "mousedown,mouseup,mousemove,mouseover,mouseout,change,select," + "submit,keydown,keypress,keyup,error").split(","); // Go through all the event names, but make sure that