]> CyberLeo.Net >> Repos - Github/sugarcrm.git/blob - include/javascript/yui3/build/node/node-deprecated.js
Release 6.5.0
[Github/sugarcrm.git] / include / javascript / yui3 / build / node / node-deprecated.js
1 /*
2  Copyright (c) 2010, Yahoo! Inc. All rights reserved.
3  Code licensed under the BSD License:
4  http://developer.yahoo.com/yui/license.html
5  version: 3.3.0
6  build: 3167
7  */
8 YUI.add('node-deprecated',function(Y){var Y_Node=Y.Node;Y_Node.ATTRS.data={getter:function(){return this._dataVal;},setter:function(val){this._dataVal=val;return val;},value:null};Y.get=Y_Node.get=function(){return Y_Node.one.apply(Y_Node,arguments);};Y.mix(Y_Node.prototype,{query:function(selector){return this.one(selector);},queryAll:function(selector){return this.all(selector);},each:function(fn,context){context=context||this;return fn.call(context,this);},item:function(index){return this;},size:function(){return this._node?1:0;}});},'3.3.0',{requires:['node-base']});