Skip to content

Commit

Permalink
Fixed focus and blur for Opera and updated API docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Kloots committed Aug 6, 2009
1 parent 584e4d2 commit 6b82977
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 19 deletions.
15 changes: 10 additions & 5 deletions build/event/event-debug.js
Expand Up @@ -593,6 +593,11 @@ if (!YAHOO.util.Event) {
if (p) {
this._simpleAdd(p, type, NOOP, true);
}
else {
this.onAvailable(o, function () {
captureHack.call(this, type, o);
}, null, this);
}

};

Expand Down Expand Up @@ -1080,7 +1085,7 @@ if (!YAHOO.util.Event) {
capture = true;

if (isOpera) {
captureHack.call(this, el, sType);
captureHack.call(this, sType, el);
}

}
Expand Down Expand Up @@ -1111,7 +1116,7 @@ if (!YAHOO.util.Event) {
* could not have the listener attached,
* or if the operation throws an exception.
* @static
* @deprecated use YAHOO.util.Event.on("focus", ...)
* @deprecated use YAHOO.util.Event.on
*/
addFocusListener: function (el, fn, obj, overrideContext) {

Expand Down Expand Up @@ -1163,7 +1168,7 @@ if (!YAHOO.util.Event) {
* could not have the listener attached,
* or if the operation throws an exception.
* @static
* @deprecated use YAHOO.util.Event.on("blur", ...)
* @deprecated use YAHOO.util.Event.on
*/
addBlurListener: function (el, fn, obj, overrideContext) {

Expand Down Expand Up @@ -2020,7 +2025,7 @@ if (!YAHOO.util.Event) {
* @method on
* @see addFocusListener
* @static
* @deprecated use YAHOO.util.Event.on("focus", ...)
* @deprecated use YAHOO.util.Event.on
*/
EU.onFocus = EU.addFocusListener;

Expand All @@ -2029,7 +2034,7 @@ if (!YAHOO.util.Event) {
* @method onBlur
* @see addBlurListener
* @static
* @deprecated use YAHOO.util.Event.on("blur", ...)
* @deprecated use YAHOO.util.Event.on
*/
EU.onBlur = EU.addBlurListener;

Expand Down

0 comments on commit 6b82977

Please sign in to comment.