]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/javascript/yui3/build/event/event-focus.js
Release 6.2.0beta4
[Github/sugarcrm.git] / include / javascript / yui3 / build / event / event-focus.js
1 /*
2  Copyright (c) 2009, Yahoo! Inc. All rights reserved.
3  Code licensed under the BSD License:
4  http://developer.yahoo.net/yui/license.txt
5  version: 3.0.0
6  build: 1549
7  */
8 YUI.add('event-focus',function(Y){(function(){var UA=Y.UA,Event=Y.Event,plugins=Y.Env.evt.plugins,ie=UA.ie,bUseMutation=(UA.opera||UA.webkit),eventNames={focus:(ie?'focusin':(bUseMutation?'DOMFocusIn':'focus')),blur:(ie?'focusout':(bUseMutation?'DOMFocusOut':'blur'))},CAPTURE_CONFIG={capture:(UA.gecko?true:false)},attach=function(args,config){var a=Y.Array(args,0,true);a[0]=eventNames[a[0]];return Event._attach(a,config);},eventAdapter={on:function(){return attach(arguments,CAPTURE_CONFIG);}};Event._attachFocus=attach;Event._attachBlur=attach;plugins.focus=eventAdapter;plugins.blur=eventAdapter;})();},'3.0.0',{requires:['node-base']});