init
This commit is contained in:
8
jssource/src_files/include/javascript/yui3/build/node/node-aria-min.js
vendored
Normal file
8
jssource/src_files/include/javascript/yui3/build/node/node-aria-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("node-aria",function(A){A.Node.re_aria=/^(?:role$|aria-)/;A.Node.prototype._addAriaAttr=function(B){this.addAttr(B,{getter:function(){return A.Node.getDOMNode(this).getAttribute(B,2);},setter:function(C){A.Node.getDOMNode(this).setAttribute(B,C);return C;}});};},"3.0.0",{requires:["node-base"]});
|
||||
32
jssource/src_files/include/javascript/yui3/build/node/node-aria.js
vendored
Normal file
32
jssource/src_files/include/javascript/yui3/build/node/node-aria.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('node-aria', function(Y) {
|
||||
|
||||
/**
|
||||
* Aria support for Node
|
||||
* @module node
|
||||
* @submodule node-aria
|
||||
*/
|
||||
|
||||
Y.Node.prototype.get = function(name) {
|
||||
var val;
|
||||
if (re_aria.test(name)) {
|
||||
val = Y.Node.getDOMNode(this).getAttribute(name, 2);
|
||||
} else {
|
||||
|
||||
}
|
||||
|
||||
setter: function(val) {
|
||||
Y.Node.getDOMNode(this).setAttribute(name, val);
|
||||
return val;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
}, '3.0.0' ,{requires:['node-base']});
|
||||
9
jssource/src_files/include/javascript/yui3/build/node/node-base-min.js
vendored
Normal file
9
jssource/src_files/include/javascript/yui3/build/node/node-base-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1560
jssource/src_files/include/javascript/yui3/build/node/node-base.js
vendored
Normal file
1560
jssource/src_files/include/javascript/yui3/build/node/node-base.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
8
jssource/src_files/include/javascript/yui3/build/node/node-event-delegate-min.js
vendored
Normal file
8
jssource/src_files/include/javascript/yui3/build/node/node-event-delegate-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("node-event-delegate",function(A){A.Node.prototype.delegate=function(F,E,B){var D=Array.prototype.slice.call(arguments,3),C=[F,E,A.Node.getDOMNode(this),B];C=C.concat(D);return A.delegate.apply(A,C);};},"3.0.0",{requires:["node-base","event-delegate","pluginhost"]});
|
||||
35
jssource/src_files/include/javascript/yui3/build/node/node-event-delegate.js
vendored
Normal file
35
jssource/src_files/include/javascript/yui3/build/node/node-event-delegate.js
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('node-event-delegate', function(Y) {
|
||||
|
||||
/**
|
||||
* Functionality to make the node a delegated event container
|
||||
* @module node
|
||||
* @submodule node-event-delegate
|
||||
*/
|
||||
|
||||
/**
|
||||
* Functionality to make the node a delegated event container
|
||||
* @method delegate
|
||||
* @param type {String} the event type to delegate
|
||||
* @param fn {Function} the function to execute
|
||||
* @param selector {String} a selector that must match the target of the event.
|
||||
* @return {Event.Handle} the detach handle
|
||||
* @for Node
|
||||
*/
|
||||
Y.Node.prototype.delegate = function(type, fn, selector) {
|
||||
|
||||
var args = Array.prototype.slice.call(arguments, 3),
|
||||
a = [type, fn, Y.Node.getDOMNode(this), selector];
|
||||
a = a.concat(args);
|
||||
|
||||
return Y.delegate.apply(Y, a);
|
||||
};
|
||||
|
||||
|
||||
}, '3.0.0' ,{requires:['node-base', 'event-delegate', 'pluginhost']});
|
||||
8
jssource/src_files/include/javascript/yui3/build/node/node-event-simulate-min.js
vendored
Normal file
8
jssource/src_files/include/javascript/yui3/build/node/node-event-simulate-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("node-event-simulate",function(A){A.Node.prototype.simulate=function(C,B){A.Event.simulate(A.Node.getDOMNode(this),C,B);};},"3.0.0",{requires:["node-base","event-simulate"]});
|
||||
31
jssource/src_files/include/javascript/yui3/build/node/node-event-simulate.js
vendored
Normal file
31
jssource/src_files/include/javascript/yui3/build/node/node-event-simulate.js
vendored
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('node-event-simulate', function(Y) {
|
||||
|
||||
/*
|
||||
* Functionality to simulate events.
|
||||
* @module node
|
||||
* @for Node
|
||||
* @submodule node-event-simulate
|
||||
*/
|
||||
|
||||
/**
|
||||
* Simulates an event on the node.
|
||||
* @param {String} type The type of event to simulate (i.e., "click").
|
||||
* @param {Object} options (Optional) Extra options to copy onto the event object.
|
||||
* @return {void}
|
||||
* @method simulate
|
||||
* @static
|
||||
*/
|
||||
Y.Node.prototype.simulate = function(type, options) {
|
||||
Y.Event.simulate(Y.Node.getDOMNode(this), type, options);
|
||||
};
|
||||
|
||||
|
||||
|
||||
}, '3.0.0' ,{requires:['node-base', 'event-simulate']});
|
||||
10
jssource/src_files/include/javascript/yui3/build/node/node-min.js
vendored
Normal file
10
jssource/src_files/include/javascript/yui3/build/node/node-min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
jssource/src_files/include/javascript/yui3/build/node/node-pluginhost-min.js
vendored
Normal file
8
jssource/src_files/include/javascript/yui3/build/node/node-pluginhost-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("node-pluginhost",function(A){A.Node.plug=function(){var B=A.Array(arguments);B.unshift(A.Node);A.Plugin.Host.plug.apply(A.Base,B);return A.Node;};A.Node.unplug=function(){var B=A.Array(arguments);B.unshift(A.Node);A.Plugin.Host.unplug.apply(A.Base,B);return A.Node;};A.mix(A.Node,A.Plugin.Host,false,null,1);A.NodeList.prototype.plug=function(){var B=arguments;A.NodeList.each(this,function(C){A.Node.prototype.plug.apply(A.one(C),B);});};A.NodeList.prototype.unplug=function(){var B=arguments;A.NodeList.each(this,function(C){A.Node.prototype.unplug.apply(A.one(C),B);});};},"3.0.0",{requires:["node-base","pluginhost"]});
|
||||
61
jssource/src_files/include/javascript/yui3/build/node/node-pluginhost.js
vendored
Normal file
61
jssource/src_files/include/javascript/yui3/build/node/node-pluginhost.js
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('node-pluginhost', function(Y) {
|
||||
|
||||
/**
|
||||
* Registers plugins to be instantiated at the class level (plugins
|
||||
* which should be plugged into every instance of Node by default).
|
||||
*
|
||||
* @method Node.plug
|
||||
* @static
|
||||
*
|
||||
* @param {Function | Array} plugin Either the plugin class, an array of plugin classes or an array of objects (with fn and cfg properties defined)
|
||||
* @param {Object} config (Optional) If plugin is the plugin class, the configuration for the plugin
|
||||
*/
|
||||
Y.Node.plug = function() {
|
||||
var args = Y.Array(arguments);
|
||||
args.unshift(Y.Node);
|
||||
Y.Plugin.Host.plug.apply(Y.Base, args);
|
||||
return Y.Node;
|
||||
};
|
||||
|
||||
/**
|
||||
* Unregisters any class level plugins which have been registered by the Node
|
||||
*
|
||||
* @method Node.unplug
|
||||
* @static
|
||||
*
|
||||
* @param {Function | Array} plugin The plugin class, or an array of plugin classes
|
||||
*/
|
||||
Y.Node.unplug = function() {
|
||||
var args = Y.Array(arguments);
|
||||
args.unshift(Y.Node);
|
||||
Y.Plugin.Host.unplug.apply(Y.Base, args);
|
||||
return Y.Node;
|
||||
};
|
||||
|
||||
Y.mix(Y.Node, Y.Plugin.Host, false, null, 1);
|
||||
|
||||
// allow batching of plug/unplug via NodeList
|
||||
// doesn't use NodeList.importMethod because we need real Nodes (not tmpNode)
|
||||
Y.NodeList.prototype.plug = function() {
|
||||
var args = arguments;
|
||||
Y.NodeList.each(this, function(node) {
|
||||
Y.Node.prototype.plug.apply(Y.one(node), args);
|
||||
});
|
||||
};
|
||||
|
||||
Y.NodeList.prototype.unplug = function() {
|
||||
var args = arguments;
|
||||
Y.NodeList.each(this, function(node) {
|
||||
Y.Node.prototype.unplug.apply(Y.one(node), args);
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
}, '3.0.0' ,{requires:['node-base', 'pluginhost']});
|
||||
8
jssource/src_files/include/javascript/yui3/build/node/node-screen-min.js
vendored
Normal file
8
jssource/src_files/include/javascript/yui3/build/node/node-screen-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("node-screen",function(A){A.each(["winWidth","winHeight","docWidth","docHeight","docScrollX","docScrollY"],function(B){A.Node.ATTRS[B]={getter:function(){var C=Array.prototype.slice.call(arguments);C.unshift(A.Node.getDOMNode(this));return A.DOM[B].apply(this,C);}};});A.Node.ATTRS.scrollLeft={getter:function(){var B=A.Node.getDOMNode(this);return("scrollLeft" in B)?B.scrollLeft:A.DOM.docScrollX(B);},setter:function(C){var B=A.Node.getDOMNode(this);if(B){if("scrollLeft" in B){B.scrollLeft=C;}else{if(B.document||B.nodeType===9){A.DOM._getWin(B).scrollTo(C,A.DOM.docScrollY(B));}}}else{}}};A.Node.ATTRS.scrollTop={getter:function(){var B=A.Node.getDOMNode(this);return("scrollTop" in B)?B.scrollTop:A.DOM.docScrollY(B);},setter:function(C){var B=A.Node.getDOMNode(this);if(B){if("scrollTop" in B){B.scrollTop=C;}else{if(B.document||B.nodeType===9){A.DOM._getWin(B).scrollTo(A.DOM.docScrollX(B),C);}}}else{}}};A.Node.importMethod(A.DOM,["getXY","setXY","getX","setX","getY","setY"]);A.Node.ATTRS.region={getter:function(){var B=A.Node.getDOMNode(this);if(B&&!B.tagName){if(B.nodeType===9){B=B.documentElement;}else{if(B.alert){B=B.document.documentElement;}}}return A.DOM.region(B);}};A.Node.ATTRS.viewportRegion={getter:function(){return A.DOM.viewportRegion(A.Node.getDOMNode(this));}};A.Node.importMethod(A.DOM,"inViewportRegion");A.Node.prototype.intersect=function(B,D){var C=A.Node.getDOMNode(this);if(B instanceof A.Node){B=A.Node.getDOMNode(B);}return A.DOM.intersect(C,B,D);};A.Node.prototype.inRegion=function(B,D,E){var C=A.Node.getDOMNode(this);if(B instanceof A.Node){B=A.Node.getDOMNode(B);}return A.DOM.inRegion(C,B,D,E);};},"3.0.0",{requires:["dom-screen"]});
|
||||
227
jssource/src_files/include/javascript/yui3/build/node/node-screen.js
vendored
Normal file
227
jssource/src_files/include/javascript/yui3/build/node/node-screen.js
vendored
Normal file
@@ -0,0 +1,227 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('node-screen', function(Y) {
|
||||
|
||||
/**
|
||||
* Extended Node interface for managing regions and screen positioning.
|
||||
* Adds support for positioning elements and normalizes window size and scroll detection.
|
||||
* @module node
|
||||
* @submodule node-screen
|
||||
*/
|
||||
|
||||
// these are all "safe" returns, no wrapping required
|
||||
Y.each([
|
||||
/**
|
||||
* Returns the inner width of the viewport (exludes scrollbar).
|
||||
* @config winWidth
|
||||
* @for Node
|
||||
* @type {Int}
|
||||
*/
|
||||
'winWidth',
|
||||
|
||||
/**
|
||||
* Returns the inner height of the viewport (exludes scrollbar).
|
||||
* @config winHeight
|
||||
* @type {Int}
|
||||
*/
|
||||
'winHeight',
|
||||
|
||||
/**
|
||||
* Document width
|
||||
* @config winHeight
|
||||
* @type {Int}
|
||||
*/
|
||||
'docWidth',
|
||||
|
||||
/**
|
||||
* Document height
|
||||
* @config docHeight
|
||||
* @type {Int}
|
||||
*/
|
||||
'docHeight',
|
||||
|
||||
/**
|
||||
* Amount page has been scroll vertically
|
||||
* @config docScrollX
|
||||
* @type {Int}
|
||||
*/
|
||||
'docScrollX',
|
||||
|
||||
/**
|
||||
* Amount page has been scroll horizontally
|
||||
* @config docScrollY
|
||||
* @type {Int}
|
||||
*/
|
||||
'docScrollY'
|
||||
],
|
||||
function(name) {
|
||||
Y.Node.ATTRS[name] = {
|
||||
getter: function() {
|
||||
var args = Array.prototype.slice.call(arguments);
|
||||
args.unshift(Y.Node.getDOMNode(this));
|
||||
|
||||
return Y.DOM[name].apply(this, args);
|
||||
}
|
||||
};
|
||||
}
|
||||
);
|
||||
|
||||
Y.Node.ATTRS.scrollLeft = {
|
||||
getter: function() {
|
||||
var node = Y.Node.getDOMNode(this);
|
||||
return ('scrollLeft' in node) ? node.scrollLeft : Y.DOM.docScrollX(node);
|
||||
},
|
||||
|
||||
setter: function(val) {
|
||||
var node = Y.Node.getDOMNode(this);
|
||||
if (node) {
|
||||
if ('scrollLeft' in node) {
|
||||
node.scrollLeft = val;
|
||||
} else if (node.document || node.nodeType === 9) {
|
||||
Y.DOM._getWin(node).scrollTo(val, Y.DOM.docScrollY(node)); // scroll window if win or doc
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Y.Node.ATTRS.scrollTop = {
|
||||
getter: function() {
|
||||
var node = Y.Node.getDOMNode(this);
|
||||
return ('scrollTop' in node) ? node.scrollTop : Y.DOM.docScrollY(node);
|
||||
},
|
||||
|
||||
setter: function(val) {
|
||||
var node = Y.Node.getDOMNode(this);
|
||||
if (node) {
|
||||
if ('scrollTop' in node) {
|
||||
node.scrollTop = val;
|
||||
} else if (node.document || node.nodeType === 9) {
|
||||
Y.DOM._getWin(node).scrollTo(Y.DOM.docScrollX(node), val); // scroll window if win or doc
|
||||
}
|
||||
} else {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Y.Node.importMethod(Y.DOM, [
|
||||
/**
|
||||
* Gets the current position of the node in page coordinates.
|
||||
* @method getXY
|
||||
* @for Node
|
||||
* @return {Array} The XY position of the node
|
||||
*/
|
||||
'getXY',
|
||||
|
||||
/**
|
||||
* Set the position of the node in page coordinates, regardless of how the node is positioned.
|
||||
* @method setXY
|
||||
* @param {Array} xy Contains X & Y values for new position (coordinates are page-based)
|
||||
* @chainable
|
||||
*/
|
||||
'setXY',
|
||||
|
||||
/**
|
||||
* Gets the current position of the node in page coordinates.
|
||||
* @method getX
|
||||
* @return {Int} The X position of the node
|
||||
*/
|
||||
'getX',
|
||||
|
||||
/**
|
||||
* Set the position of the node in page coordinates, regardless of how the node is positioned.
|
||||
* @method setX
|
||||
* @param {Int} x X value for new position (coordinates are page-based)
|
||||
* @chainable
|
||||
*/
|
||||
'setX',
|
||||
|
||||
/**
|
||||
* Gets the current position of the node in page coordinates.
|
||||
* @method getY
|
||||
* @return {Int} The Y position of the node
|
||||
*/
|
||||
'getY',
|
||||
|
||||
/**
|
||||
* Set the position of the node in page coordinates, regardless of how the node is positioned.
|
||||
* @method setY
|
||||
* @param {Int} y Y value for new position (coordinates are page-based)
|
||||
* @chainable
|
||||
*/
|
||||
'setY'
|
||||
]);
|
||||
|
||||
/**
|
||||
* Returns a region object for the node
|
||||
* @config region
|
||||
* @for Node
|
||||
* @type Node
|
||||
*/
|
||||
Y.Node.ATTRS.region = {
|
||||
getter: function() {
|
||||
var node = Y.Node.getDOMNode(this);
|
||||
if (node && !node.tagName) {
|
||||
if (node.nodeType === 9) { // document
|
||||
node = node.documentElement;
|
||||
} else if (node.alert) { // window
|
||||
node = node.document.documentElement;
|
||||
}
|
||||
}
|
||||
return Y.DOM.region(node);
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* Returns a region object for the node's viewport
|
||||
* @config viewportRegion
|
||||
* @type Node
|
||||
*/
|
||||
Y.Node.ATTRS.viewportRegion = {
|
||||
getter: function() {
|
||||
return Y.DOM.viewportRegion(Y.Node.getDOMNode(this));
|
||||
}
|
||||
};
|
||||
|
||||
Y.Node.importMethod(Y.DOM, 'inViewportRegion');
|
||||
|
||||
// these need special treatment to extract 2nd node arg
|
||||
/**
|
||||
* Compares the intersection of the node with another node or region
|
||||
* @method intersect
|
||||
* @for Node
|
||||
* @param {Node|Object} node2 The node or region to compare with.
|
||||
* @param {Object} altRegion An alternate region to use (rather than this node's).
|
||||
* @return {Object} An object representing the intersection of the regions.
|
||||
*/
|
||||
Y.Node.prototype.intersect = function(node2, altRegion) {
|
||||
var node1 = Y.Node.getDOMNode(this);
|
||||
if (node2 instanceof Y.Node) { // might be a region object
|
||||
node2 = Y.Node.getDOMNode(node2);
|
||||
}
|
||||
return Y.DOM.intersect(node1, node2, altRegion);
|
||||
};
|
||||
|
||||
/**
|
||||
* Determines whether or not the node is within the giving region.
|
||||
* @method inRegion
|
||||
* @param {Node|Object} node2 The node or region to compare with.
|
||||
* @param {Boolean} all Whether or not all of the node must be in the region.
|
||||
* @param {Object} altRegion An alternate region to use (rather than this node's).
|
||||
* @return {Object} An object representing the intersection of the regions.
|
||||
*/
|
||||
Y.Node.prototype.inRegion = function(node2, all, altRegion) {
|
||||
var node1 = Y.Node.getDOMNode(this);
|
||||
if (node2 instanceof Y.Node) { // might be a region object
|
||||
node2 = Y.Node.getDOMNode(node2);
|
||||
}
|
||||
return Y.DOM.inRegion(node1, node2, all, altRegion);
|
||||
};
|
||||
|
||||
|
||||
}, '3.0.0' ,{requires:['dom-screen']});
|
||||
8
jssource/src_files/include/javascript/yui3/build/node/node-style-min.js
vendored
Normal file
8
jssource/src_files/include/javascript/yui3/build/node/node-style-min.js
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add("node-style",function(A){(function(C){var B=["getStyle","getComputedStyle","setStyle","setStyles"];C.Node.importMethod(C.DOM,B);C.NodeList.importMethod(C.Node.prototype,B);})(A);},"3.0.0",{requires:["dom-style","node-base"]});
|
||||
90
jssource/src_files/include/javascript/yui3/build/node/node-style.js
vendored
Normal file
90
jssource/src_files/include/javascript/yui3/build/node/node-style.js
vendored
Normal file
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
Copyright (c) 2009, Yahoo! Inc. All rights reserved.
|
||||
Code licensed under the BSD License:
|
||||
http://developer.yahoo.net/yui/license.txt
|
||||
version: 3.0.0
|
||||
build: 1549
|
||||
*/
|
||||
YUI.add('node-style', function(Y) {
|
||||
|
||||
(function(Y) {
|
||||
/**
|
||||
* Extended Node interface for managing node styles.
|
||||
* @module node
|
||||
* @submodule node-style
|
||||
*/
|
||||
|
||||
var methods = [
|
||||
/**
|
||||
* Returns the style's current value.
|
||||
* @method getStyle
|
||||
* @for Node
|
||||
* @param {String} attr The style attribute to retrieve.
|
||||
* @return {String} The current value of the style property for the element.
|
||||
*/
|
||||
'getStyle',
|
||||
|
||||
/**
|
||||
* Returns the computed value for the given style property.
|
||||
* @method getComputedStyle
|
||||
* @param {String} attr The style attribute to retrieve.
|
||||
* @return {String} The computed value of the style property for the element.
|
||||
*/
|
||||
'getComputedStyle',
|
||||
|
||||
/**
|
||||
* Sets a style property of the node.
|
||||
* @method setStyle
|
||||
* @param {String} attr The style attribute to set.
|
||||
* @param {String|Number} val The value.
|
||||
* @chainable
|
||||
*/
|
||||
'setStyle',
|
||||
|
||||
/**
|
||||
* Sets multiple style properties on the node.
|
||||
* @method setStyles
|
||||
* @param {Object} hash An object literal of property:value pairs.
|
||||
* @chainable
|
||||
*/
|
||||
'setStyles'
|
||||
];
|
||||
Y.Node.importMethod(Y.DOM, methods);
|
||||
/**
|
||||
* Returns an array of values for each node.
|
||||
* @method getStyle
|
||||
* @for NodeList
|
||||
* @see Node.getStyle
|
||||
* @param {String} attr The style attribute to retrieve.
|
||||
* @return {Array} The current values of the style property for the element.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Returns an array of the computed value for each node.
|
||||
* @method getComputedStyle
|
||||
* @see Node.getComputedStyle
|
||||
* @param {String} attr The style attribute to retrieve.
|
||||
* @return {Array} The computed values for each node.
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sets a style property on each node.
|
||||
* @method setStyle
|
||||
* @see Node.setStyle
|
||||
* @param {String} attr The style attribute to set.
|
||||
* @param {String|Number} val The value.
|
||||
* @chainable
|
||||
*/
|
||||
|
||||
/**
|
||||
* Sets multiple style properties on each node.
|
||||
* @method setStyles
|
||||
* @see Node.setStyles
|
||||
* @param {Object} hash An object literal of property:value pairs.
|
||||
* @chainable
|
||||
*/
|
||||
Y.NodeList.importMethod(Y.Node.prototype, methods);
|
||||
})(Y);
|
||||
|
||||
|
||||
}, '3.0.0' ,{requires:['dom-style', 'node-base']});
|
||||
1949
jssource/src_files/include/javascript/yui3/build/node/node.js
vendored
Normal file
1949
jssource/src_files/include/javascript/yui3/build/node/node.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user