repo stringlengths 5 67 | path stringlengths 4 116 | func_name stringlengths 0 58 | original_string stringlengths 52 373k | language stringclasses 1
value | code stringlengths 52 373k | code_tokens list | docstring stringlengths 4 11.8k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 86 226 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
neyric/webhookit | public/javascripts/yui/container/container.js | function (element) {
var oFooter = this.footer || (this.footer = createFooter());
oFooter.appendChild(element);
this.changeFooterEvent.fire(element);
this.changeContentEvent.fire();
} | javascript | function (element) {
var oFooter = this.footer || (this.footer = createFooter());
oFooter.appendChild(element);
this.changeFooterEvent.fire(element);
this.changeContentEvent.fire();
} | [
"function",
"(",
"element",
")",
"{",
"var",
"oFooter",
"=",
"this",
".",
"footer",
"||",
"(",
"this",
".",
"footer",
"=",
"createFooter",
"(",
")",
")",
";",
"oFooter",
".",
"appendChild",
"(",
"element",
")",
";",
"this",
".",
"changeFooterEvent",
".... | Appends the passed element to the footer. If no footer is present,
one will be automatically created.
@method appendToFooter
@param {HTMLElement | DocumentFragment} element The element to
append to the footer. In the case of a document fragment, the
children of the fragment will be appended to the footer | [
"Appends",
"the",
"passed",
"element",
"to",
"the",
"footer",
".",
"If",
"no",
"footer",
"is",
"present",
"one",
"will",
"be",
"automatically",
"created",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1644-L1653 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(moduleElement){
moduleElement = moduleElement || this.element;
// Need to get everything into the DOM if it isn't already
if (this.header && !Dom.inDocument(this.header)) {
// There is a header, but it's not in the DOM yet. Need to add it.
va... | javascript | function(moduleElement){
moduleElement = moduleElement || this.element;
// Need to get everything into the DOM if it isn't already
if (this.header && !Dom.inDocument(this.header)) {
// There is a header, but it's not in the DOM yet. Need to add it.
va... | [
"function",
"(",
"moduleElement",
")",
"{",
"moduleElement",
"=",
"moduleElement",
"||",
"this",
".",
"element",
";",
"// Need to get everything into the DOM if it isn't already",
"if",
"(",
"this",
".",
"header",
"&&",
"!",
"Dom",
".",
"inDocument",
"(",
"this",
... | Renders the currently set header into it's proper position under the
module element. If the module element is not provided, "this.element"
is used.
@method _renderHeader
@protected
@param {HTMLElement} moduleElement Optional. A reference to the module element | [
"Renders",
"the",
"currently",
"set",
"header",
"into",
"it",
"s",
"proper",
"position",
"under",
"the",
"module",
"element",
".",
"If",
"the",
"module",
"element",
"is",
"not",
"provided",
"this",
".",
"element",
"is",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1731-L1744 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.body && !Dom.inDocument(this.body)) {
// There is a body, but it's not in the DOM yet. Need to add it.
if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
... | javascript | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.body && !Dom.inDocument(this.body)) {
// There is a body, but it's not in the DOM yet. Need to add it.
if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
... | [
"function",
"(",
"moduleElement",
")",
"{",
"moduleElement",
"=",
"moduleElement",
"||",
"this",
".",
"element",
";",
"if",
"(",
"this",
".",
"body",
"&&",
"!",
"Dom",
".",
"inDocument",
"(",
"this",
".",
"body",
")",
")",
"{",
"// There is a body, but it'... | Renders the currently set body into it's proper position under the
module element. If the module element is not provided, "this.element"
is used.
@method _renderBody
@protected
@param {HTMLElement} moduleElement Optional. A reference to the module element. | [
"Renders",
"the",
"currently",
"set",
"body",
"into",
"it",
"s",
"proper",
"position",
"under",
"the",
"module",
"element",
".",
"If",
"the",
"module",
"element",
"is",
"not",
"provided",
"this",
".",
"element",
"is",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1755-L1766 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.footer && !Dom.inDocument(this.footer)) {
// There is a footer, but it's not in the DOM yet. Need to add it.
moduleElement.appendChild(this.footer);
}
} | javascript | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.footer && !Dom.inDocument(this.footer)) {
// There is a footer, but it's not in the DOM yet. Need to add it.
moduleElement.appendChild(this.footer);
}
} | [
"function",
"(",
"moduleElement",
")",
"{",
"moduleElement",
"=",
"moduleElement",
"||",
"this",
".",
"element",
";",
"if",
"(",
"this",
".",
"footer",
"&&",
"!",
"Dom",
".",
"inDocument",
"(",
"this",
".",
"footer",
")",
")",
"{",
"// There is a footer, b... | Renders the currently set footer into it's proper position under the
module element. If the module element is not provided, "this.element"
is used.
@method _renderFooter
@protected
@param {HTMLElement} moduleElement Optional. A reference to the module element | [
"Renders",
"the",
"currently",
"set",
"footer",
"into",
"it",
"s",
"proper",
"position",
"under",
"the",
"module",
"element",
".",
"If",
"the",
"module",
"element",
"is",
"not",
"provided",
"this",
".",
"element",
"is",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1777-L1784 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var parent;
if (this.element) {
Event.purgeElement(this.element, true);
parent = this.element.parentNode;
}
if (parent) {
parent.removeChild(this.element);
}
this.element = n... | javascript | function () {
var parent;
if (this.element) {
Event.purgeElement(this.element, true);
parent = this.element.parentNode;
}
if (parent) {
parent.removeChild(this.element);
}
this.element = n... | [
"function",
"(",
")",
"{",
"var",
"parent",
";",
"if",
"(",
"this",
".",
"element",
")",
"{",
"Event",
".",
"purgeElement",
"(",
"this",
".",
"element",
",",
"true",
")",
";",
"parent",
"=",
"this",
".",
"element",
".",
"parentNode",
";",
"}",
"if"... | Removes the Module element from the DOM and sets all child elements
to null.
@method destroy | [
"Removes",
"the",
"Module",
"element",
"from",
"the",
"DOM",
"and",
"sets",
"all",
"child",
"elements",
"to",
"null",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1791-L1815 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var monitor = args[0];
if (monitor) {
this.initResizeMonitor();
} else {
Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
this.resizeMonitor = null;
}
} | javascript | function (type, args, obj) {
var monitor = args[0];
if (monitor) {
this.initResizeMonitor();
} else {
Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
this.resizeMonitor = null;
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"monitor",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"monitor",
")",
"{",
"this",
".",
"initResizeMonitor",
"(",
")",
";",
"}",
"else",
"{",
"Module",
".",
"textResizeEvent",
".",... | Default event handler for the "monitorresize" configuration property
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope object. For ... | [
"Default",
"event",
"handler",
"for",
"the",
"monitorresize",
"configuration",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1872-L1880 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
Overlay.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired before the Overlay is moved.
* @event beforeMoveEvent
* @param {Number} x x coordinate
* @param {Number} y y coordinate... | javascript | function () {
Overlay.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired before the Overlay is moved.
* @event beforeMoveEvent
* @param {Number} x x coordinate
* @param {Number} y y coordinate... | [
"function",
"(",
")",
"{",
"Overlay",
".",
"superclass",
".",
"initEvents",
".",
"call",
"(",
"this",
")",
";",
"var",
"SIGNATURE",
"=",
"CustomEvent",
".",
"LIST",
";",
"/**\n * CustomEvent fired before the Overlay is moved.\n * @event beforeMoveEve... | Initializes the custom events for Overlay which are fired
automatically at appropriate times by the Overlay class.
@method initEvents | [
"Initializes",
"the",
"custom",
"events",
"for",
"Overlay",
"which",
"are",
"fired",
"automatically",
"at",
"appropriate",
"times",
"by",
"the",
"Overlay",
"class",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2366-L2390 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(show) {
Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
var hiddenClass = Overlay.CSS_HIDDEN;
if (show) {
Dom.removeClass(this.element, hiddenClass);
} else {
Dom.addClass(this.element, hiddenClass);
... | javascript | function(show) {
Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
var hiddenClass = Overlay.CSS_HIDDEN;
if (show) {
Dom.removeClass(this.element, hiddenClass);
} else {
Dom.addClass(this.element, hiddenClass);
... | [
"function",
"(",
"show",
")",
"{",
"Dom",
".",
"setStyle",
"(",
"this",
".",
"element",
",",
"\"visibility\"",
",",
"(",
"show",
")",
"?",
"\"visible\"",
":",
"\"hidden\"",
")",
";",
"var",
"hiddenClass",
"=",
"Overlay",
".",
"CSS_HIDDEN",
";",
"if",
"... | Internal implementation to set the visibility of the overlay in the DOM.
@method _setDomVisibility
@param {boolean} visible Whether to show or hide the Overlay's outer element
@protected | [
"Internal",
"implementation",
"to",
"set",
"the",
"visibility",
"of",
"the",
"overlay",
"in",
"the",
"DOM",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2699-L2708 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var val = args[0],
alreadySubscribed = Config.alreadySubscribed,
windowResizeEvent = Overlay.windowResizeEvent,
windowScrollEvent = Overlay.windowScrollEvent;
if (val) {
this.center();
... | javascript | function (type, args, obj) {
var val = args[0],
alreadySubscribed = Config.alreadySubscribed,
windowResizeEvent = Overlay.windowResizeEvent,
windowScrollEvent = Overlay.windowScrollEvent;
if (val) {
this.center();
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
",",
"alreadySubscribed",
"=",
"Config",
".",
"alreadySubscribed",
",",
"windowResizeEvent",
"=",
"Overlay",
".",
"windowResizeEvent",
",",
"windowScrollEve... | The default event handler fired when the "fixedcenter" property
is changed.
@method configFixedCenter
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {O... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"fixedcenter",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2902-L2930 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var height = args[0],
el = this.element;
Dom.setStyle(el, "height", height);
this.cfg.refireEvent("iframe");
} | javascript | function (type, args, obj) {
var height = args[0],
el = this.element;
Dom.setStyle(el, "height", height);
this.cfg.refireEvent("iframe");
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"height",
"=",
"args",
"[",
"0",
"]",
",",
"el",
"=",
"this",
".",
"element",
";",
"Dom",
".",
"setStyle",
"(",
"el",
",",
"\"height\"",
",",
"height",
")",
";",
"this",
".",
"c... | The default event handler fired when the "height" property is changed.
@method configHeight
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"height",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2941-L2948 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var x = args[0],
y = this.cfg.getProperty("y");
this.cfg.setProperty("x", x, true);
this.cfg.setProperty("y", y, true);
this.beforeMoveEvent.fire([x, y]);
x = this.cfg.getProperty("x");
y = this.cfg.... | javascript | function (type, args, obj) {
var x = args[0],
y = this.cfg.getProperty("y");
this.cfg.setProperty("x", x, true);
this.cfg.setProperty("y", y, true);
this.beforeMoveEvent.fire([x, y]);
x = this.cfg.getProperty("x");
y = this.cfg.... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"x",
"=",
"args",
"[",
"0",
"]",
",",
"y",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"y\"",
")",
";",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"x\"",
",",
"x",
... | The default event handler fired when the "x" property is changed.
@method configX
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"x",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3077-L3096 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oIFrame = this.iframe,
oParentNode;
if (oIFrame) {
oParentNode = this.element.parentNode;
if (oParentNode != oIFrame.parentNode) {
this._addToParent(oParentNode, oIFrame);
}
o... | javascript | function () {
var oIFrame = this.iframe,
oParentNode;
if (oIFrame) {
oParentNode = this.element.parentNode;
if (oParentNode != oIFrame.parentNode) {
this._addToParent(oParentNode, oIFrame);
}
o... | [
"function",
"(",
")",
"{",
"var",
"oIFrame",
"=",
"this",
".",
"iframe",
",",
"oParentNode",
";",
"if",
"(",
"oIFrame",
")",
"{",
"oParentNode",
"=",
"this",
".",
"element",
".",
"parentNode",
";",
"if",
"(",
"oParentNode",
"!=",
"oIFrame",
".",
"paren... | Shows the iframe shim, if it has been enabled.
@method showIframe | [
"Shows",
"the",
"iframe",
"shim",
"if",
"it",
"has",
"been",
"enabled",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3132-L3145 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oIFrame = this.iframe,
oElement = this.element,
nOffset = Overlay.IFRAME_OFFSET,
nDimensionOffset = (nOffset * 2),
aXY;
if (oIFrame) {
// Size <iframe>
oIFrame.style.width = (oElem... | javascript | function () {
var oIFrame = this.iframe,
oElement = this.element,
nOffset = Overlay.IFRAME_OFFSET,
nDimensionOffset = (nOffset * 2),
aXY;
if (oIFrame) {
// Size <iframe>
oIFrame.style.width = (oElem... | [
"function",
"(",
")",
"{",
"var",
"oIFrame",
"=",
"this",
".",
"iframe",
",",
"oElement",
"=",
"this",
".",
"element",
",",
"nOffset",
"=",
"Overlay",
".",
"IFRAME_OFFSET",
",",
"nDimensionOffset",
"=",
"(",
"nOffset",
"*",
"2",
")",
",",
"aXY",
";",
... | Syncronizes the size and position of iframe shim to that of its
corresponding Overlay instance.
@method syncIframe | [
"Syncronizes",
"the",
"size",
"and",
"position",
"of",
"iframe",
"shim",
"to",
"that",
"of",
"its",
"corresponding",
"Overlay",
"instance",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3162-L3184 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
if (this.iframe) {
var overlayZ = Dom.getStyle(this.element, "zIndex");
if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
}
}
} | javascript | function () {
if (this.iframe) {
var overlayZ = Dom.getStyle(this.element, "zIndex");
if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
}
}
} | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"iframe",
")",
"{",
"var",
"overlayZ",
"=",
"Dom",
".",
"getStyle",
"(",
"this",
".",
"element",
",",
"\"zIndex\"",
")",
";",
"if",
"(",
"!",
"YAHOO",
".",
"lang",
".",
"isUndefined",
"(",
"overlay... | Sets the zindex of the iframe shim, if it exists, based on the zindex of
the Overlay element. The zindex of the iframe is set to be one less
than the Overlay element's zindex.
<p>NOTE: This method will not bump up the zindex of the Overlay element
to ensure that the iframe shim has a non-negative zindex.
If you requir... | [
"Sets",
"the",
"zindex",
"of",
"the",
"iframe",
"shim",
"if",
"it",
"exists",
"based",
"on",
"the",
"zindex",
"of",
"the",
"Overlay",
"element",
".",
"The",
"zindex",
"of",
"the",
"iframe",
"is",
"set",
"to",
"be",
"one",
"less",
"than",
"the",
"Overla... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3199-L3206 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var bIFrame = args[0];
function createIFrame() {
var oIFrame = this.iframe,
oElement = this.element,
oParent;
if (!oIFrame) {
if (!m_oIFrameTemplate) {
... | javascript | function (type, args, obj) {
var bIFrame = args[0];
function createIFrame() {
var oIFrame = this.iframe,
oElement = this.element,
oParent;
if (!oIFrame) {
if (!m_oIFrameTemplate) {
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"bIFrame",
"=",
"args",
"[",
"0",
"]",
";",
"function",
"createIFrame",
"(",
")",
"{",
"var",
"oIFrame",
"=",
"this",
".",
"iframe",
",",
"oElement",
"=",
"this",
".",
"element",
",... | The default event handler fired when the "iframe" property is changed.
@method configIframe
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"iframe",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3217-L3325 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function() {
if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
// Set CFG XY based on DOM XY
this.syncPosition();
// Account for XY being set silently in syncPosition (no moveTo fired/called)
this.cfg.refireEvent("xy");
... | javascript | function() {
if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
// Set CFG XY based on DOM XY
this.syncPosition();
// Account for XY being set silently in syncPosition (no moveTo fired/called)
this.cfg.refireEvent("xy");
... | [
"function",
"(",
")",
"{",
"if",
"(",
"YAHOO",
".",
"lang",
".",
"isUndefined",
"(",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"xy\"",
")",
")",
")",
"{",
"// Set CFG XY based on DOM XY",
"this",
".",
"syncPosition",
"(",
")",
";",
"// Account for XY ... | Set's the container's XY value from DOM if not already set.
Differs from syncPosition, in that the XY value is only sync'd with DOM if
not already set. The method also refire's the XY config property event, so any
beforeMove, Move event listeners are invoked.
@method _primeXYFromDOM
@protected | [
"Set",
"s",
"the",
"container",
"s",
"XY",
"value",
"from",
"DOM",
"if",
"not",
"already",
"set",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3337-L3345 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var val = args[0];
if (val) {
if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
}
if (! Conf... | javascript | function (type, args, obj) {
var val = args[0];
if (val) {
if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
}
if (! Conf... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"val",
")",
"{",
"if",
"(",
"!",
"Config",
".",
"alreadySubscribed",
"(",
"this",
".",
"beforeMoveEvent",
",",
"this",
".",
"enf... | The default event handler fired when the "constraintoviewport"
property is changed.
@method configConstrainToViewport
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for
the pro... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"constraintoviewport",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3358-L3372 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(t) {
var tce = null;
if (t instanceof CustomEvent) {
tce = t;
} else if (Overlay._TRIGGER_MAP[t]) {
tce = Overlay._TRIGGER_MAP[t];
}
return tce;
} | javascript | function(t) {
var tce = null;
if (t instanceof CustomEvent) {
tce = t;
} else if (Overlay._TRIGGER_MAP[t]) {
tce = Overlay._TRIGGER_MAP[t];
}
return tce;
} | [
"function",
"(",
"t",
")",
"{",
"var",
"tce",
"=",
"null",
";",
"if",
"(",
"t",
"instanceof",
"CustomEvent",
")",
"{",
"tce",
"=",
"t",
";",
"}",
"else",
"if",
"(",
"Overlay",
".",
"_TRIGGER_MAP",
"[",
"t",
"]",
")",
"{",
"tce",
"=",
"Overlay",
... | Helper method to locate the custom event instance for the event name string
passed in. As a convenience measure, any custom events passed in are returned.
@method _findTriggerCE
@private
@param {String|CustomEvent} t Either a CustomEvent, or event type (e.g. "windowScroll") for which a
custom event instance needs to ... | [
"Helper",
"method",
"to",
"locate",
"the",
"custom",
"event",
"instance",
"for",
"the",
"event",
"name",
"string",
"passed",
"in",
".",
"As",
"a",
"convenience",
"measure",
"any",
"custom",
"events",
"passed",
"in",
"are",
"returned",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3459-L3467 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(triggers, mode, fn) {
var t, tce;
for (var i = 0, l = triggers.length; i < l; ++i) {
t = triggers[i];
tce = this._findTriggerCE(t);
if (tce) {
tce[mode](fn, this, true);
} else {
thi... | javascript | function(triggers, mode, fn) {
var t, tce;
for (var i = 0, l = triggers.length; i < l; ++i) {
t = triggers[i];
tce = this._findTriggerCE(t);
if (tce) {
tce[mode](fn, this, true);
} else {
thi... | [
"function",
"(",
"triggers",
",",
"mode",
",",
"fn",
")",
"{",
"var",
"t",
",",
"tce",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",
"triggers",
".",
"length",
";",
"i",
"<",
"l",
";",
"++",
"i",
")",
"{",
"t",
"=",
"triggers",
"[",... | Utility method that subscribes or unsubscribes the given
function from the list of trigger events provided.
@method _processTriggers
@protected
@param {Array[String|CustomEvent]} triggers An array of either CustomEvents, event type strings
(e.g. "beforeShow", "windowScroll") to/from which the provided function should... | [
"Utility",
"method",
"that",
"subscribes",
"or",
"unsubscribes",
"the",
"given",
"function",
"from",
"the",
"list",
"of",
"trigger",
"events",
"provided",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3487-L3499 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var pos = args[0];
var cXY = this.getConstrainedXY(pos[0], pos[1]);
this.cfg.setProperty("x", cXY[0], true);
this.cfg.setProperty("y", cXY[1], true);
this.cfg.setProperty("xy", cXY, true);
} | javascript | function (type, args, obj) {
var pos = args[0];
var cXY = this.getConstrainedXY(pos[0], pos[1]);
this.cfg.setProperty("x", cXY[0], true);
this.cfg.setProperty("y", cXY[1], true);
this.cfg.setProperty("xy", cXY, true);
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"pos",
"=",
"args",
"[",
"0",
"]",
";",
"var",
"cXY",
"=",
"this",
".",
"getConstrainedXY",
"(",
"pos",
"[",
"0",
"]",
",",
"pos",
"[",
"1",
"]",
")",
";",
"this",
".",
"cfg",... | The default event handler executed when the moveEvent is fired, if the
"constraintoviewport" is set to true.
@method enforceConstraints
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied... | [
"The",
"default",
"event",
"handler",
"executed",
"when",
"the",
"moveEvent",
"is",
"fired",
"if",
"the",
"constraintoviewport",
"is",
"set",
"to",
"true",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3611-L3618 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(pos, val) {
var overlayEl = this.element,
buffer = Overlay.VIEWPORT_OFFSET,
x = (pos == "x"),
overlaySize = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
viewportSize = (x) ? Dom.getViewportWidth() : Dom.getViewpor... | javascript | function(pos, val) {
var overlayEl = this.element,
buffer = Overlay.VIEWPORT_OFFSET,
x = (pos == "x"),
overlaySize = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
viewportSize = (x) ? Dom.getViewportWidth() : Dom.getViewpor... | [
"function",
"(",
"pos",
",",
"val",
")",
"{",
"var",
"overlayEl",
"=",
"this",
".",
"element",
",",
"buffer",
"=",
"Overlay",
".",
"VIEWPORT_OFFSET",
",",
"x",
"=",
"(",
"pos",
"==",
"\"x\"",
")",
",",
"overlaySize",
"=",
"(",
"x",
")",
"?",
"overl... | Shared implementation method for getConstrainedX and getConstrainedY.
<p>
Given a coordinate value, returns the calculated coordinate required to
position the Overlay if it is to be constrained to the viewport, based on the
current element size, viewport dimensions, scroll values and preventoverlap
settings
</p>
@met... | [
"Shared",
"implementation",
"method",
"for",
"getConstrainedX",
"and",
"getConstrainedY",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3636-L3676 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var nViewportOffset = Overlay.VIEWPORT_OFFSET,
elementWidth = this.element.offsetWidth,
elementHeight = this.element.offsetHeight,
viewPortWidth = Dom.getViewportWidth(),
viewPortHeight = Dom.getViewportHeight(),
... | javascript | function () {
var nViewportOffset = Overlay.VIEWPORT_OFFSET,
elementWidth = this.element.offsetWidth,
elementHeight = this.element.offsetHeight,
viewPortWidth = Dom.getViewportWidth(),
viewPortHeight = Dom.getViewportHeight(),
... | [
"function",
"(",
")",
"{",
"var",
"nViewportOffset",
"=",
"Overlay",
".",
"VIEWPORT_OFFSET",
",",
"elementWidth",
"=",
"this",
".",
"element",
".",
"offsetWidth",
",",
"elementHeight",
"=",
"this",
".",
"element",
".",
"offsetHeight",
",",
"viewPortWidth",
"="... | Centers the container in the viewport.
@method center | [
"Centers",
"the",
"container",
"in",
"the",
"viewport",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3791-L3819 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var pos = Dom.getXY(this.element);
this.cfg.setProperty("x", pos[0], true);
this.cfg.setProperty("y", pos[1], true);
this.cfg.setProperty("xy", pos, true);
} | javascript | function () {
var pos = Dom.getXY(this.element);
this.cfg.setProperty("x", pos[0], true);
this.cfg.setProperty("y", pos[1], true);
this.cfg.setProperty("xy", pos, true);
} | [
"function",
"(",
")",
"{",
"var",
"pos",
"=",
"Dom",
".",
"getXY",
"(",
"this",
".",
"element",
")",
";",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"x\"",
",",
"pos",
"[",
"0",
"]",
",",
"true",
")",
";",
"this",
".",
"cfg",
".",
"setPrope... | Synchronizes the Panel's "xy", "x", and "y" properties with the
Panel's position in the DOM. This is primarily used to update
position information during drag & drop.
@method syncPosition | [
"Synchronizes",
"the",
"Panel",
"s",
"xy",
"x",
"and",
"y",
"properties",
"with",
"the",
"Panel",
"s",
"position",
"in",
"the",
"DOM",
".",
"This",
"is",
"primarily",
"used",
"to",
"update",
"position",
"information",
"during",
"drag",
"&",
"drop",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3827-L3835 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(type, args, el) {
var height = this.cfg.getProperty("height");
if ((height && height !== "auto") || (height === 0)) {
this.fillHeight(el);
}
} | javascript | function(type, args, el) {
var height = this.cfg.getProperty("height");
if ((height && height !== "auto") || (height === 0)) {
this.fillHeight(el);
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"el",
")",
"{",
"var",
"height",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"height\"",
")",
";",
"if",
"(",
"(",
"height",
"&&",
"height",
"!==",
"\"auto\"",
")",
"||",
"(",
"height",
"===",
"0",... | The default custom event handler executed when the overlay's height is changed,
if the autofillheight property has been set.
@method _autoFillOnHeightChange
@protected
@param {String} type The event type
@param {Array} args The array of arguments passed to event subscribers
@param {HTMLElement} el The header, body or ... | [
"The",
"default",
"custom",
"event",
"handler",
"executed",
"when",
"the",
"overlay",
"s",
"height",
"is",
"changed",
"if",
"the",
"autofillheight",
"property",
"has",
"been",
"set",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3912-L3917 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(el) {
var height = el.offsetHeight;
if (el.getBoundingClientRect) {
var rect = el.getBoundingClientRect();
height = rect.bottom - rect.top;
}
return height;
} | javascript | function(el) {
var height = el.offsetHeight;
if (el.getBoundingClientRect) {
var rect = el.getBoundingClientRect();
height = rect.bottom - rect.top;
}
return height;
} | [
"function",
"(",
"el",
")",
"{",
"var",
"height",
"=",
"el",
".",
"offsetHeight",
";",
"if",
"(",
"el",
".",
"getBoundingClientRect",
")",
"{",
"var",
"rect",
"=",
"el",
".",
"getBoundingClientRect",
"(",
")",
";",
"height",
"=",
"rect",
".",
"bottom",... | Returns the sub-pixel height of the el, using getBoundingClientRect, if available,
otherwise returns the offsetHeight
@method _getPreciseHeight
@private
@param {HTMLElement} el
@return {Float} The sub-pixel height if supported by the browser, else the rounded height. | [
"Returns",
"the",
"sub",
"-",
"pixel",
"height",
"of",
"the",
"el",
"using",
"getBoundingClientRect",
"if",
"available",
"otherwise",
"returns",
"the",
"offsetHeight"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3927-L3936 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var aOverlays = [],
oElement = this.element;
function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
nZInde... | javascript | function () {
var aOverlays = [],
oElement = this.element;
function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
nZInde... | [
"function",
"(",
")",
"{",
"var",
"aOverlays",
"=",
"[",
"]",
",",
"oElement",
"=",
"this",
".",
"element",
";",
"function",
"compareZIndexDesc",
"(",
"p_oOverlay1",
",",
"p_oOverlay2",
")",
"{",
"var",
"sZIndex1",
"=",
"Dom",
".",
"getStyle",
"(",
"p_oO... | Places the Overlay on top of all other instances of
YAHOO.widget.Overlay.
@method bringToTop | [
"Places",
"the",
"Overlay",
"on",
"top",
"of",
"all",
"other",
"instances",
"of",
"YAHOO",
".",
"widget",
".",
"Overlay",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4010-L4073 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
if (this.iframe) {
this.iframe.parentNode.removeChild(this.iframe);
}
this.iframe = null;
Overlay.windowResizeEvent.unsubscribe(
this.doCenterOnDOMEvent, this);
Overlay.windowScrollEvent.unsubscribe(
... | javascript | function () {
if (this.iframe) {
this.iframe.parentNode.removeChild(this.iframe);
}
this.iframe = null;
Overlay.windowResizeEvent.unsubscribe(
this.doCenterOnDOMEvent, this);
Overlay.windowScrollEvent.unsubscribe(
... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"iframe",
")",
"{",
"this",
".",
"iframe",
".",
"parentNode",
".",
"removeChild",
"(",
"this",
".",
"iframe",
")",
";",
"}",
"this",
".",
"iframe",
"=",
"null",
";",
"Overlay",
".",
"windowResizeEven... | Removes the Overlay element from the DOM and sets all child
elements to null.
@method destroy | [
"Removes",
"the",
"Overlay",
"element",
"from",
"the",
"DOM",
"and",
"sets",
"all",
"child",
"elements",
"to",
"null",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4080-L4103 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(overlay) {
var mgr = this;
if (!overlay.focusEvent) {
overlay.focusEvent = overlay.createEvent("focus");
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.foc... | javascript | function(overlay) {
var mgr = this;
if (!overlay.focusEvent) {
overlay.focusEvent = overlay.createEvent("focus");
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.foc... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"mgr",
"=",
"this",
";",
"if",
"(",
"!",
"overlay",
".",
"focusEvent",
")",
"{",
"overlay",
".",
"focusEvent",
"=",
"overlay",
".",
"createEvent",
"(",
"\"focus\"",
")",
";",
"overlay",
".",
"focusEvent",
".... | Subscribes to the Overlay based instance focusEvent, to allow the OverlayManager to
monitor focus state.
If the instance already has a focusEvent (e.g. Menu), OverlayManager will subscribe
to the existing focusEvent, however if a focusEvent or focus method does not exist
on the instance, the _bindFocus method will add... | [
"Subscribes",
"to",
"the",
"Overlay",
"based",
"instance",
"focusEvent",
"to",
"allow",
"the",
"OverlayManager",
"to",
"monitor",
"focus",
"state",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4463-L4487 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(overlay) {
var mgr = this;
if (!overlay.blurEvent) {
overlay.blurEvent = overlay.createEvent("blur");
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.blurEve... | javascript | function(overlay) {
var mgr = this;
if (!overlay.blurEvent) {
overlay.blurEvent = overlay.createEvent("blur");
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.blurEve... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"mgr",
"=",
"this",
";",
"if",
"(",
"!",
"overlay",
".",
"blurEvent",
")",
"{",
"overlay",
".",
"blurEvent",
"=",
"overlay",
".",
"createEvent",
"(",
"\"blur\"",
")",
";",
"overlay",
".",
"blurEvent",
".",
... | Subscribes to the Overlay based instance's blurEvent to allow the OverlayManager to
monitor blur state.
If the instance already has a blurEvent (e.g. Menu), OverlayManager will subscribe
to the existing blurEvent, however if a blurEvent or blur method does not exist
on the instance, the _bindBlur method will add them,... | [
"Subscribes",
"to",
"the",
"Overlay",
"based",
"instance",
"s",
"blurEvent",
"to",
"allow",
"the",
"OverlayManager",
"to",
"monitor",
"blur",
"state",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4502-L4523 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (overlay) {
var registered = false,
i,
n;
if (overlay instanceof Overlay) {
overlay.cfg.addProperty("manager", { value: this } );
this._bindFocus(overlay);
this._bindBlur(overlay);
this._... | javascript | function (overlay) {
var registered = false,
i,
n;
if (overlay instanceof Overlay) {
overlay.cfg.addProperty("manager", { value: this } );
this._bindFocus(overlay);
this._bindBlur(overlay);
this._... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"registered",
"=",
"false",
",",
"i",
",",
"n",
";",
"if",
"(",
"overlay",
"instanceof",
"Overlay",
")",
"{",
"overlay",
".",
"cfg",
".",
"addProperty",
"(",
"\"manager\"",
",",
"{",
"value",
":",
"this",
... | Registers an Overlay or an array of Overlays with the manager. Upon
registration, the Overlay receives functions for focus and blur,
along with CustomEvents for each.
@method register
@param {Overlay} overlay An Overlay to register with the manager.
@param {Overlay[]} overlay An array of Overlays to register with
th... | [
"Registers",
"an",
"Overlay",
"or",
"an",
"array",
"of",
"Overlays",
"with",
"the",
"manager",
".",
"Upon",
"registration",
"the",
"Overlay",
"receives",
"functions",
"for",
"focus",
"and",
"blur",
"along",
"with",
"CustomEvents",
"for",
"each",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4566-L4595 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if (oOverlay) {
aOverlays = this.overlays;
aOverlays.sort(this.compareZIndexDesc);
oTopOverlay = a... | javascript | function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if (oOverlay) {
aOverlays = this.overlays;
aOverlays.sort(this.compareZIndexDesc);
oTopOverlay = a... | [
"function",
"(",
"p_oOverlay",
")",
"{",
"var",
"oOverlay",
"=",
"this",
".",
"find",
"(",
"p_oOverlay",
")",
",",
"nTopZIndex",
",",
"oTopOverlay",
",",
"aOverlays",
";",
"if",
"(",
"oOverlay",
")",
"{",
"aOverlays",
"=",
"this",
".",
"overlays",
";",
... | Places the specified Overlay instance on top of all other
Overlay instances.
@method bringToTop
@param {YAHOO.widget.Overlay} p_oOverlay Object representing an
Overlay instance.
@param {String} p_oOverlay String representing the id of an
Overlay instance. | [
"Places",
"the",
"specified",
"Overlay",
"instance",
"on",
"top",
"of",
"all",
"other",
"Overlay",
"instances",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4606-L4644 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (overlay) {
var isInstance = overlay instanceof Overlay,
overlays = this.overlays,
n = overlays.length,
found = null,
o,
i;
if (isInstance || typeof overlay == "string") {
for (i = n-1; i >... | javascript | function (overlay) {
var isInstance = overlay instanceof Overlay,
overlays = this.overlays,
n = overlays.length,
found = null,
o,
i;
if (isInstance || typeof overlay == "string") {
for (i = n-1; i >... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"isInstance",
"=",
"overlay",
"instanceof",
"Overlay",
",",
"overlays",
"=",
"this",
".",
"overlays",
",",
"n",
"=",
"overlays",
".",
"length",
",",
"found",
"=",
"null",
",",
"o",
",",
"i",
";",
"if",
"("... | Attempts to locate an Overlay by instance or ID.
@method find
@param {Overlay} overlay An Overlay to locate within the manager
@param {String} overlay An Overlay id to locate within the manager
@return {Overlay} The requested Overlay, if found, or null if it
cannot be located. | [
"Attempts",
"to",
"locate",
"an",
"Overlay",
"by",
"instance",
"or",
"ID",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4654-L4674 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (o1, o2) {
var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
if (zIndex1 === null && zIndex2 === null) {
return 0;
} else... | javascript | function (o1, o2) {
var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
if (zIndex1 === null && zIndex2 === null) {
return 0;
} else... | [
"function",
"(",
"o1",
",",
"o2",
")",
"{",
"var",
"zIndex1",
"=",
"(",
"o1",
".",
"cfg",
")",
"?",
"o1",
".",
"cfg",
".",
"getProperty",
"(",
"\"zIndex\"",
")",
":",
"null",
",",
"// Sort invalid (destroyed)",
"zIndex2",
"=",
"(",
"o2",
".",
"cfg",
... | Used for sorting the manager's Overlays by z-index.
@method compareZIndexDesc
@private
@return {Number} 0, 1, or -1, depending on where the Overlay should
fall in the stacking order. | [
"Used",
"for",
"sorting",
"the",
"manager",
"s",
"Overlays",
"by",
"z",
"-",
"index",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4683-L4701 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].show();
}
} | javascript | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].show();
}
} | [
"function",
"(",
")",
"{",
"var",
"overlays",
"=",
"this",
".",
"overlays",
",",
"n",
"=",
"overlays",
".",
"length",
",",
"i",
";",
"for",
"(",
"i",
"=",
"n",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"overlays",
"[",
"i",
"... | Shows all Overlays in the manager.
@method showAll | [
"Shows",
"all",
"Overlays",
"in",
"the",
"manager",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4707-L4715 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].hide();
}
} | javascript | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].hide();
}
} | [
"function",
"(",
")",
"{",
"var",
"overlays",
"=",
"this",
".",
"overlays",
",",
"n",
"=",
"overlays",
".",
"length",
",",
"i",
";",
"for",
"(",
"i",
"=",
"n",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"overlays",
"[",
"i",
"... | Hides all Overlays in the manager.
@method hideAll | [
"Hides",
"all",
"Overlays",
"in",
"the",
"manager",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4721-L4729 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (el, userConfig) {
Tooltip.superclass.init.call(this, el);
this.beforeInitEvent.fire(Tooltip);
Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);
if (userConfig) {
this.cfg.applyConfig(userConfig, true);
}
this.cfg.queu... | javascript | function (el, userConfig) {
Tooltip.superclass.init.call(this, el);
this.beforeInitEvent.fire(Tooltip);
Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);
if (userConfig) {
this.cfg.applyConfig(userConfig, true);
}
this.cfg.queu... | [
"function",
"(",
"el",
",",
"userConfig",
")",
"{",
"Tooltip",
".",
"superclass",
".",
"init",
".",
"call",
"(",
"this",
",",
"el",
")",
";",
"this",
".",
"beforeInitEvent",
".",
"fire",
"(",
"Tooltip",
")",
";",
"Dom",
".",
"addClass",
"(",
"this",
... | The Tooltip initialization method. This method is automatically
called by the constructor. A Tooltip is automatically rendered by
the init method, and it also is set to be invisible by default,
and constrained to viewport by default as well.
@method init
@param {String} el The element ID representing the Tooltip <em>OR... | [
"The",
"Tooltip",
"initialization",
"method",
".",
"This",
"method",
"is",
"automatically",
"called",
"by",
"the",
"constructor",
".",
"A",
"Tooltip",
"is",
"automatically",
"rendered",
"by",
"the",
"init",
"method",
"and",
"it",
"also",
"is",
"set",
"to",
"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4928-L4951 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
Tooltip.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired when user mouses over a context element. Returning false from
* a subscriber to this event will prevent the tooltip from being displayed for
... | javascript | function () {
Tooltip.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired when user mouses over a context element. Returning false from
* a subscriber to this event will prevent the tooltip from being displayed for
... | [
"function",
"(",
")",
"{",
"Tooltip",
".",
"superclass",
".",
"initEvents",
".",
"call",
"(",
"this",
")",
";",
"var",
"SIGNATURE",
"=",
"CustomEvent",
".",
"LIST",
";",
"/**\n * CustomEvent fired when user mouses over a context element. Returning false from\n ... | Initializes the custom events for Tooltip
@method initEvents | [
"Initializes",
"the",
"custom",
"events",
"for",
"Tooltip"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4957-L5015 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var container = args[0];
if (typeof container == 'string') {
this.cfg.setProperty("container", document.getElementById(container), true);
}
} | javascript | function (type, args, obj) {
var container = args[0];
if (typeof container == 'string') {
this.cfg.setProperty("container", document.getElementById(container), true);
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"container",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"typeof",
"container",
"==",
"'string'",
")",
"{",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"container\"",
",",
"documen... | The default event handler fired when the "container" property
is changed.
@method configContainer
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For
configuration handlers, args[0] will equal the newly applied value
for the property.
@param {Objec... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"container",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5188-L5194 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (e, obj) {
var context = this;
if (context.title) {
obj._tempTitle = context.title;
context.title = "";
}
// Fire first, to honor disabled set in the listner
if (obj.fireEvent("contextMouseOver", context, e) !== false... | javascript | function (e, obj) {
var context = this;
if (context.title) {
obj._tempTitle = context.title;
context.title = "";
}
// Fire first, to honor disabled set in the listner
if (obj.fireEvent("contextMouseOver", context, e) !== false... | [
"function",
"(",
"e",
",",
"obj",
")",
"{",
"var",
"context",
"=",
"this",
";",
"if",
"(",
"context",
".",
"title",
")",
"{",
"obj",
".",
"_tempTitle",
"=",
"context",
".",
"title",
";",
"context",
".",
"title",
"=",
"\"\"",
";",
"}",
"// Fire firs... | The default event handler fired when the user mouses over the
context element.
@method onContextMouseOver
@param {DOMEvent} e The current DOM event
@param {Object} obj The object argument | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"user",
"mouses",
"over",
"the",
"context",
"element",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5301-L5328 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (e, obj) {
var el = this;
if (obj._tempTitle) {
el.title = obj._tempTitle;
obj._tempTitle = null;
}
if (obj.showProcId) {
clearTimeout(obj.showProcId);
obj.showProcId = null;
}
... | javascript | function (e, obj) {
var el = this;
if (obj._tempTitle) {
el.title = obj._tempTitle;
obj._tempTitle = null;
}
if (obj.showProcId) {
clearTimeout(obj.showProcId);
obj.showProcId = null;
}
... | [
"function",
"(",
"e",
",",
"obj",
")",
"{",
"var",
"el",
"=",
"this",
";",
"if",
"(",
"obj",
".",
"_tempTitle",
")",
"{",
"el",
".",
"title",
"=",
"obj",
".",
"_tempTitle",
";",
"obj",
".",
"_tempTitle",
"=",
"null",
";",
"}",
"if",
"(",
"obj",... | The default event handler fired when the user mouses out of
the context element.
@method onContextMouseOut
@param {DOMEvent} e The current DOM event
@param {Object} obj The object argument | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"user",
"mouses",
"out",
"of",
"the",
"context",
"element",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5337-L5360 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function() {
var e = document.createElement("button");
e.style.height = "1px";
e.style.width = "1px";
e.style.position = "absolute";
e.style.left = "-10000em";
e.style.opacity = 0;
e.tabIndex = -1;
this.innerElement.appendCh... | javascript | function() {
var e = document.createElement("button");
e.style.height = "1px";
e.style.width = "1px";
e.style.position = "absolute";
e.style.left = "-10000em";
e.style.opacity = 0;
e.tabIndex = -1;
this.innerElement.appendCh... | [
"function",
"(",
")",
"{",
"var",
"e",
"=",
"document",
".",
"createElement",
"(",
"\"button\"",
")",
";",
"e",
".",
"style",
".",
"height",
"=",
"\"1px\"",
";",
"e",
".",
"style",
".",
"width",
"=",
"\"1px\"",
";",
"e",
".",
"style",
".",
"positio... | Creates a hidden focusable element, used to focus on,
to enforce modality for browsers in which focus cannot
be applied to the container box.
@method _createHiddenFocusElement
@private | [
"Creates",
"a",
"hidden",
"focusable",
"element",
"used",
"to",
"focus",
"on",
"to",
"enforce",
"modality",
"for",
"browsers",
"in",
"which",
"focus",
"cannot",
"be",
"applied",
"to",
"the",
"container",
"box",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5928-L5938 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var el = this.lastElement;
if (args && args[1]) {
Event.stopEvent(args[1]);
}
if (el) {
try {
el.focus();
} catch(err) {
// Ignore
}
... | javascript | function (type, args, obj) {
var el = this.lastElement;
if (args && args[1]) {
Event.stopEvent(args[1]);
}
if (el) {
try {
el.focus();
} catch(err) {
// Ignore
}
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"el",
"=",
"this",
".",
"lastElement",
";",
"if",
"(",
"args",
"&&",
"args",
"[",
"1",
"]",
")",
"{",
"Event",
".",
"stopEvent",
"(",
"args",
"[",
"1",
"]",
")",
";",
"}",
"if... | Sets focus to the last element in the Panel.
@method focusLast | [
"Sets",
"focus",
"to",
"the",
"last",
"element",
"in",
"the",
"Panel",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5984-L5998 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(root) {
root = root || this.innerElement;
var focusable = {};
for (var i = 0; i < Panel.FOCUSABLE.length; i++) {
focusable[Panel.FOCUSABLE[i]] = true;
}
function isFocusable(el) {
if (el.focus && el.type !== "hidden"... | javascript | function(root) {
root = root || this.innerElement;
var focusable = {};
for (var i = 0; i < Panel.FOCUSABLE.length; i++) {
focusable[Panel.FOCUSABLE[i]] = true;
}
function isFocusable(el) {
if (el.focus && el.type !== "hidden"... | [
"function",
"(",
"root",
")",
"{",
"root",
"=",
"root",
"||",
"this",
".",
"innerElement",
";",
"var",
"focusable",
"=",
"{",
"}",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"Panel",
".",
"FOCUSABLE",
".",
"length",
";",
"i",
"++",
"... | Returns an array of the currently focusable items which reside within
Panel. The set of focusable elements the method looks for are defined
in the Panel.FOCUSABLE static property
@method getFocusableElements
@param {HTMLElement} root element to start from. | [
"Returns",
"an",
"array",
"of",
"the",
"currently",
"focusable",
"items",
"which",
"reside",
"within",
"Panel",
".",
"The",
"set",
"of",
"focusable",
"elements",
"the",
"method",
"looks",
"for",
"are",
"defined",
"in",
"the",
"Panel",
".",
"FOCUSABLE",
"stat... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6060-L6078 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function() {
this.firstElement = null;
this.lastElement = null;
var elements = this.getFocusableElements();
this.focusableElements = elements;
if (elements.length > 0) {
this.firstElement = elements[0];
this.lastElement = ele... | javascript | function() {
this.firstElement = null;
this.lastElement = null;
var elements = this.getFocusableElements();
this.focusableElements = elements;
if (elements.length > 0) {
this.firstElement = elements[0];
this.lastElement = ele... | [
"function",
"(",
")",
"{",
"this",
".",
"firstElement",
"=",
"null",
";",
"this",
".",
"lastElement",
"=",
"null",
";",
"var",
"elements",
"=",
"this",
".",
"getFocusableElements",
"(",
")",
";",
"this",
".",
"focusableElements",
"=",
"elements",
";",
"i... | Sets the firstElement and lastElement instance properties
to the first and last focusable elements in the Panel.
@method setFirstLastFocusable | [
"Sets",
"the",
"firstElement",
"and",
"lastElement",
"instance",
"properties",
"to",
"the",
"first",
"and",
"last",
"focusable",
"elements",
"in",
"the",
"Panel",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6086-L6102 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var val = args[0];
if (val) {
if (!Util.DD) {
this.cfg.setProperty("draggable", false);
return;
}
if (this.header) {
Dom.setStyle(this.header, "cursor", "mov... | javascript | function (type, args, obj) {
var val = args[0];
if (val) {
if (!Util.DD) {
this.cfg.setProperty("draggable", false);
return;
}
if (this.header) {
Dom.setStyle(this.header, "cursor", "mov... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"val",
")",
"{",
"if",
"(",
"!",
"Util",
".",
"DD",
")",
"{",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"draggable\"",
... | The default event handler fired when the "draggable" property
is changed.
@method configDraggable
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Objec... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"draggable",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6350-L6378 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var modal = args[0];
if (modal) {
if (!this._hasModalityEventListeners) {
this.subscribe("beforeShow", this.buildMask);
this.subscribe("beforeShow", this.bringToTop);
this.subscribe("before... | javascript | function (type, args, obj) {
var modal = args[0];
if (modal) {
if (!this._hasModalityEventListeners) {
this.subscribe("beforeShow", this.buildMask);
this.subscribe("beforeShow", this.bringToTop);
this.subscribe("before... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"modal",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"modal",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_hasModalityEventListeners",
")",
"{",
"this",
".",
"subscribe",
"(",
"\"before... | The default event handler fired when the "modal" property is
changed. This handler subscribes or unsubscribes to the show and hide
events to handle the display or hide of the modality mask.
@method configModal
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent a... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"modal",
"property",
"is",
"changed",
".",
"This",
"handler",
"subscribes",
"or",
"unsubscribes",
"to",
"the",
"show",
"and",
"hide",
"events",
"to",
"handle",
"the",
"display",
"or",
"hide",
"of"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6503-L6537 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oMask = this.mask,
oParentNode;
if (oMask) {
/*
Hide the mask before destroying it to ensure that DOM
event handlers on focusable elements get removed.
*/
this.hideMask();
... | javascript | function () {
var oMask = this.mask,
oParentNode;
if (oMask) {
/*
Hide the mask before destroying it to ensure that DOM
event handlers on focusable elements get removed.
*/
this.hideMask();
... | [
"function",
"(",
")",
"{",
"var",
"oMask",
"=",
"this",
".",
"mask",
",",
"oParentNode",
";",
"if",
"(",
"oMask",
")",
"{",
"/*\n Hide the mask before destroying it to ensure that DOM\n event handlers on focusable elements get removed.\n ... | Removes the modality mask.
@method removeMask | [
"Removes",
"the",
"modality",
"mask",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6543-L6562 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var listeners = args[0],
listener,
nListeners,
i;
if (listeners) {
if (listeners instanceof Array) {
nListeners = listeners.length;
for (i = 0; i < nL... | javascript | function (type, args, obj) {
var listeners = args[0],
listener,
nListeners,
i;
if (listeners) {
if (listeners instanceof Array) {
nListeners = listeners.length;
for (i = 0; i < nL... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"listeners",
"=",
"args",
"[",
"0",
"]",
",",
"listener",
",",
"nListeners",
",",
"i",
";",
"if",
"(",
"listeners",
")",
"{",
"if",
"(",
"listeners",
"instanceof",
"Array",
")",
"{"... | The default event handler fired when the "keylisteners" property
is changed.
@method configKeyListeners
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param ... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"keylisteners",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6574-L6634 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(type, args, obj) {
var val = Lang.merge(DEFAULT_CONFIG.STRINGS.value, args[0]);
this.cfg.setProperty(DEFAULT_CONFIG.STRINGS.key, val, true);
} | javascript | function(type, args, obj) {
var val = Lang.merge(DEFAULT_CONFIG.STRINGS.value, args[0]);
this.cfg.setProperty(DEFAULT_CONFIG.STRINGS.key, val, true);
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"Lang",
".",
"merge",
"(",
"DEFAULT_CONFIG",
".",
"STRINGS",
".",
"value",
",",
"args",
"[",
"0",
"]",
")",
";",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"DEFAULT_CO... | The default handler for the "strings" property
@method configStrings | [
"The",
"default",
"handler",
"for",
"the",
"strings",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6640-L6643 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(type, args, el) {
Panel.superclass._autoFillOnHeightChange.apply(this, arguments);
if (bIEQuirks) {
var panel = this;
setTimeout(function() {
panel.sizeUnderlay();
},0);
}
} | javascript | function(type, args, el) {
Panel.superclass._autoFillOnHeightChange.apply(this, arguments);
if (bIEQuirks) {
var panel = this;
setTimeout(function() {
panel.sizeUnderlay();
},0);
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"el",
")",
"{",
"Panel",
".",
"superclass",
".",
"_autoFillOnHeightChange",
".",
"apply",
"(",
"this",
",",
"arguments",
")",
";",
"if",
"(",
"bIEQuirks",
")",
"{",
"var",
"panel",
"=",
"this",
";",
"setTimeou... | The default custom event handler executed when the Panel's height is changed,
if the autofillheight property has been set.
@method _autoFillOnHeightChange
@protected
@param {String} type The event type
@param {Array} args The array of arguments passed to event subscribers
@param {HTMLElement} el The header, body or fo... | [
"The",
"default",
"custom",
"event",
"handler",
"executed",
"when",
"the",
"Panel",
"s",
"height",
"is",
"changed",
"if",
"the",
"autofillheight",
"property",
"has",
"been",
"set",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6673-L6681 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oUnderlay = this.underlay,
oElement;
if (oUnderlay) {
oElement = this.element;
oUnderlay.style.width = oElement.offsetWidth + "px";
oUnderlay.style.height = oElement.offsetHeight + "px";
}
} | javascript | function () {
var oUnderlay = this.underlay,
oElement;
if (oUnderlay) {
oElement = this.element;
oUnderlay.style.width = oElement.offsetWidth + "px";
oUnderlay.style.height = oElement.offsetHeight + "px";
}
} | [
"function",
"(",
")",
"{",
"var",
"oUnderlay",
"=",
"this",
".",
"underlay",
",",
"oElement",
";",
"if",
"(",
"oUnderlay",
")",
"{",
"oElement",
"=",
"this",
".",
"element",
";",
"oUnderlay",
".",
"style",
".",
"width",
"=",
"oElement",
".",
"offsetWid... | Adjusts the size of the shadow based on the size of the element.
@method sizeUnderlay | [
"Adjusts",
"the",
"size",
"of",
"the",
"shadow",
"based",
"on",
"the",
"size",
"of",
"the",
"element",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6763-L6772 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oMask = this.mask;
if (!oMask) {
if (!m_oMaskTemplate) {
m_oMaskTemplate = document.createElement("div");
m_oMaskTemplate.className = "mask";
m_oMaskTemplate.innerHTML = " ";
}
... | javascript | function () {
var oMask = this.mask;
if (!oMask) {
if (!m_oMaskTemplate) {
m_oMaskTemplate = document.createElement("div");
m_oMaskTemplate.className = "mask";
m_oMaskTemplate.innerHTML = " ";
}
... | [
"function",
"(",
")",
"{",
"var",
"oMask",
"=",
"this",
".",
"mask",
";",
"if",
"(",
"!",
"oMask",
")",
"{",
"if",
"(",
"!",
"m_oMaskTemplate",
")",
"{",
"m_oMaskTemplate",
"=",
"document",
".",
"createElement",
"(",
"\"div\"",
")",
";",
"m_oMaskTempla... | Builds the mask that is laid over the document when the Panel is
configured to be modal.
@method buildMask | [
"Builds",
"the",
"mask",
"that",
"is",
"laid",
"over",
"the",
"document",
"when",
"the",
"Panel",
"is",
"configured",
"to",
"be",
"modal",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6887-L6909 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
if (this.mask) {
// Shrink mask first, so it doesn't affect the document size.
var mask = this.mask,
viewWidth = Dom.getViewportWidth(),
viewHeight = Dom.getViewportHeight();
if (mask.offsetHeight > viewH... | javascript | function () {
if (this.mask) {
// Shrink mask first, so it doesn't affect the document size.
var mask = this.mask,
viewWidth = Dom.getViewportWidth(),
viewHeight = Dom.getViewportHeight();
if (mask.offsetHeight > viewH... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"mask",
")",
"{",
"// Shrink mask first, so it doesn't affect the document size.",
"var",
"mask",
"=",
"this",
".",
"mask",
",",
"viewWidth",
"=",
"Dom",
".",
"getViewportWidth",
"(",
")",
",",
"viewHeight",
"... | Sets the size of the modality mask to cover the entire scrollable
area of the document
@method sizeMask | [
"Sets",
"the",
"size",
"of",
"the",
"modality",
"mask",
"to",
"cover",
"the",
"entire",
"scrollable",
"area",
"of",
"the",
"document"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6941-L6961 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function() {
if (this.mask) {
var panelZ = Dom.getStyle(this.element, "zIndex");
if (!YAHOO.lang.isUndefined(panelZ) && !isNaN(panelZ)) {
Dom.setStyle(this.mask, "zIndex", panelZ - 1);
}
}
} | javascript | function() {
if (this.mask) {
var panelZ = Dom.getStyle(this.element, "zIndex");
if (!YAHOO.lang.isUndefined(panelZ) && !isNaN(panelZ)) {
Dom.setStyle(this.mask, "zIndex", panelZ - 1);
}
}
} | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"mask",
")",
"{",
"var",
"panelZ",
"=",
"Dom",
".",
"getStyle",
"(",
"this",
".",
"element",
",",
"\"zIndex\"",
")",
";",
"if",
"(",
"!",
"YAHOO",
".",
"lang",
".",
"isUndefined",
"(",
"panelZ",
... | Sets the zindex of the mask, if it exists, based on the zindex of
the Panel element. The zindex of the mask is set to be one less
than the Panel element's zindex.
<p>NOTE: This method will not bump up the zindex of the Panel
to ensure that the mask has a non-negative zindex. If you require the
mask zindex to be 0 or h... | [
"Sets",
"the",
"zindex",
"of",
"the",
"mask",
"if",
"it",
"exists",
"based",
"on",
"the",
"zindex",
"of",
"the",
"Panel",
"element",
".",
"The",
"zindex",
"of",
"the",
"mask",
"is",
"set",
"to",
"be",
"one",
"less",
"than",
"the",
"Panel",
"element",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L6975-L6982 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
Dialog.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired prior to submission
* @event beforeSubmitEvent
*/
this.beforeSubmitEvent =
this.createEvent(EVENT_TYPES... | javascript | function () {
Dialog.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired prior to submission
* @event beforeSubmitEvent
*/
this.beforeSubmitEvent =
this.createEvent(EVENT_TYPES... | [
"function",
"(",
")",
"{",
"Dialog",
".",
"superclass",
".",
"initEvents",
".",
"call",
"(",
"this",
")",
";",
"var",
"SIGNATURE",
"=",
"CustomEvent",
".",
"LIST",
";",
"/**\n * CustomEvent fired prior to submission\n * @event beforeSubmitEvent\n ... | Initializes the custom events for Dialog which are fired
automatically at appropriate times by the Dialog class.
@method initEvents | [
"Initializes",
"the",
"custom",
"events",
"for",
"Dialog",
"which",
"are",
"fired",
"automatically",
"at",
"appropriate",
"times",
"by",
"the",
"Dialog",
"class",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L7402-L7453 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (el, userConfig) {
/*
Note that we don't pass the user config in here yet because
we only want it executed once, at the lowest subclass level
*/
Dialog.superclass.init.call(this, el/*, userConfig*/);
this.beforeInitEvent.fir... | javascript | function (el, userConfig) {
/*
Note that we don't pass the user config in here yet because
we only want it executed once, at the lowest subclass level
*/
Dialog.superclass.init.call(this, el/*, userConfig*/);
this.beforeInitEvent.fir... | [
"function",
"(",
"el",
",",
"userConfig",
")",
"{",
"/*\n Note that we don't pass the user config in here yet because \n we only want it executed once, at the lowest subclass level\n */",
"Dialog",
".",
"superclass",
".",
"init",
".",
"call",
... | The Dialog initialization method, which is executed for Dialog and
all of its subclasses. This method is automatically called by the
constructor, and sets up all DOM references for pre-existing markup,
and creates required markup if it is not already present.
@method init
@param {String} el The element ID representin... | [
"The",
"Dialog",
"initialization",
"method",
"which",
"is",
"executed",
"for",
"Dialog",
"and",
"all",
"of",
"its",
"subclasses",
".",
"This",
"method",
"is",
"automatically",
"called",
"by",
"the",
"constructor",
"and",
"sets",
"up",
"all",
"DOM",
"references... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L7468-L7493 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function() {
var form = this.element.getElementsByTagName("form")[0];
if (this.form) {
if (this.form == form && Dom.isAncestor(this.element, this.form)) {
return;
} else {
Event.purgeElement(this.form);
... | javascript | function() {
var form = this.element.getElementsByTagName("form")[0];
if (this.form) {
if (this.form == form && Dom.isAncestor(this.element, this.form)) {
return;
} else {
Event.purgeElement(this.form);
... | [
"function",
"(",
")",
"{",
"var",
"form",
"=",
"this",
".",
"element",
".",
"getElementsByTagName",
"(",
"\"form\"",
")",
"[",
"0",
"]",
";",
"if",
"(",
"this",
".",
"form",
")",
"{",
"if",
"(",
"this",
".",
"form",
"==",
"form",
"&&",
"Dom",
"."... | Prepares the Dialog's internal FORM object, creating one if one is
not currently present.
@method registerForm | [
"Prepares",
"the",
"Dialog",
"s",
"internal",
"FORM",
"object",
"creating",
"one",
"if",
"one",
"is",
"not",
"currently",
"present",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L7611-L7634 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function() {
Dialog.superclass.setFirstLastFocusable.call(this);
var i, l, el, elements = this.focusableElements;
this.firstFormElement = null;
this.lastFormElement = null;
if (this.form && elements && elements.length > 0) {
l = elements.le... | javascript | function() {
Dialog.superclass.setFirstLastFocusable.call(this);
var i, l, el, elements = this.focusableElements;
this.firstFormElement = null;
this.lastFormElement = null;
if (this.form && elements && elements.length > 0) {
l = elements.le... | [
"function",
"(",
")",
"{",
"Dialog",
".",
"superclass",
".",
"setFirstLastFocusable",
".",
"call",
"(",
"this",
")",
";",
"var",
"i",
",",
"l",
",",
"el",
",",
"elements",
"=",
"this",
".",
"focusableElements",
";",
"this",
".",
"firstFormElement",
"=",
... | Configures instance properties, pointing to the
first and last focusable elements in the Dialog's form.
@method setFirstLastFocusable | [
"Configures",
"instance",
"properties",
"pointing",
"to",
"the",
"first",
"and",
"last",
"focusable",
"elements",
"in",
"the",
"Dialog",
"s",
"form",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L7673-L7701 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var aButtons = this.cfg.getProperty("buttons"),
el = this.lastFormElement;
if (args && args[1]) {
Event.stopEvent(args[1]);
}
if (aButtons && Lang.isArray(aButtons)) {
this.focusLastButton();
... | javascript | function (type, args, obj) {
var aButtons = this.cfg.getProperty("buttons"),
el = this.lastFormElement;
if (args && args[1]) {
Event.stopEvent(args[1]);
}
if (aButtons && Lang.isArray(aButtons)) {
this.focusLastButton();
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"aButtons",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"buttons\"",
")",
",",
"el",
"=",
"this",
".",
"lastFormElement",
";",
"if",
"(",
"args",
"&&",
"args",
"[",
"1",
"]"... | Sets focus to the last element in the Dialog's form or the last
button defined via the "buttons" configuration property.
@method focusLast | [
"Sets",
"focus",
"to",
"the",
"last",
"element",
"in",
"the",
"Dialog",
"s",
"form",
"or",
"the",
"last",
"button",
"defined",
"via",
"the",
"buttons",
"configuration",
"property",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L7918-L7938 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function(button) {
var Button = YAHOO.widget.Button;
// If we have an HTML button and YUI Button is on the page,
// get the YUI Button reference if available.
if (Button && button && button.nodeName && button.id) {
button = Button.getButton(button.id) ||... | javascript | function(button) {
var Button = YAHOO.widget.Button;
// If we have an HTML button and YUI Button is on the page,
// get the YUI Button reference if available.
if (Button && button && button.nodeName && button.id) {
button = Button.getButton(button.id) ||... | [
"function",
"(",
"button",
")",
"{",
"var",
"Button",
"=",
"YAHOO",
".",
"widget",
".",
"Button",
";",
"// If we have an HTML button and YUI Button is on the page, ",
"// get the YUI Button reference if available.",
"if",
"(",
"Button",
"&&",
"button",
"&&",
"button",
"... | Helper method to normalize button references. It either returns the
YUI Button instance for the given element if found,
or the passes back the HTMLElement reference if a corresponding YUI Button
reference is not found or YAHOO.widget.Button does not exist on the page.
@method _getButton
@private
@param {HTMLElement} b... | [
"Helper",
"method",
"to",
"normalize",
"button",
"references",
".",
"It",
"either",
"returns",
"the",
"YUI",
"Button",
"instance",
"for",
"the",
"given",
"element",
"if",
"found",
"or",
"the",
"passes",
"back",
"the",
"HTMLElement",
"reference",
"if",
"a",
"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L7951-L7961 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var aButtons = this.cfg.getProperty("buttons"),
oButton,
oElement;
if (aButtons && Lang.isArray(aButtons)) {
oButton = aButtons[0];
if (oButton) {
oElement = this._getButton(oButton.htmlButton);
... | javascript | function () {
var aButtons = this.cfg.getProperty("buttons"),
oButton,
oElement;
if (aButtons && Lang.isArray(aButtons)) {
oButton = aButtons[0];
if (oButton) {
oElement = this._getButton(oButton.htmlButton);
... | [
"function",
"(",
")",
"{",
"var",
"aButtons",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"buttons\"",
")",
",",
"oButton",
",",
"oElement",
";",
"if",
"(",
"aButtons",
"&&",
"Lang",
".",
"isArray",
"(",
"aButtons",
")",
")",
"{",
"oButton",
... | Sets the focus to the first button created via the "buttons"
configuration property.
@method focusFirstButton | [
"Sets",
"the",
"focus",
"to",
"the",
"first",
"button",
"created",
"via",
"the",
"buttons",
"configuration",
"property",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L8029-L8054 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
if (this.validate()) {
if (this.beforeSubmitEvent.fire()) {
this.doSubmit();
this.submitEvent.fire();
if (this.cfg.getProperty("hideaftersubmit")) {
this.hide();
}
... | javascript | function () {
if (this.validate()) {
if (this.beforeSubmitEvent.fire()) {
this.doSubmit();
this.submitEvent.fire();
if (this.cfg.getProperty("hideaftersubmit")) {
this.hide();
}
... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"validate",
"(",
")",
")",
"{",
"if",
"(",
"this",
".",
"beforeSubmitEvent",
".",
"fire",
"(",
")",
")",
"{",
"this",
".",
"doSubmit",
"(",
")",
";",
"this",
".",
"submitEvent",
".",
"fire",
"(",... | Executes a submit of the Dialog if validation
is successful. By default the Dialog is hidden
after submission, but you can set the "hideaftersubmit"
configuration property to false, to prevent the Dialog
from being hidden.
@method submit | [
"Executes",
"a",
"submit",
"of",
"the",
"Dialog",
"if",
"validation",
"is",
"successful",
".",
"By",
"default",
"the",
"Dialog",
"is",
"hidden",
"after",
"submission",
"but",
"you",
"can",
"set",
"the",
"hideaftersubmit",
"configuration",
"property",
"to",
"fa... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L8130-L8147 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oForm = this.form,
aElements,
nTotalElements,
oData,
sName,
oElement,
nElements,
sType,
sTagName,
aOptions,
nOptions,
... | javascript | function () {
var oForm = this.form,
aElements,
nTotalElements,
oData,
sName,
oElement,
nElements,
sType,
sTagName,
aOptions,
nOptions,
... | [
"function",
"(",
")",
"{",
"var",
"oForm",
"=",
"this",
".",
"form",
",",
"aElements",
",",
"nTotalElements",
",",
"oData",
",",
"sName",
",",
"oElement",
",",
"nElements",
",",
"sType",
",",
"sTagName",
",",
"aOptions",
",",
"nOptions",
",",
"aValues",
... | Returns a JSON-compatible data structure representing the data
currently contained in the form.
@method getData
@return {Object} A JSON object reprsenting the data of the
current form. | [
"Returns",
"a",
"JSON",
"-",
"compatible",
"data",
"structure",
"representing",
"the",
"data",
"currently",
"contained",
"in",
"the",
"form",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L8165-L8281 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (el, userConfig) {
/*
Note that we don't pass the user config in here yet because we
only want it executed once, at the lowest subclass level
*/
SimpleDialog.superclass.init.call(this, el/*, userConfig*/);
this.beforeIn... | javascript | function (el, userConfig) {
/*
Note that we don't pass the user config in here yet because we
only want it executed once, at the lowest subclass level
*/
SimpleDialog.superclass.init.call(this, el/*, userConfig*/);
this.beforeIn... | [
"function",
"(",
"el",
",",
"userConfig",
")",
"{",
"/*\n Note that we don't pass the user config in here yet because we \n only want it executed once, at the lowest subclass level\n */",
"SimpleDialog",
".",
"superclass",
".",
"init",
".",
"call"... | The SimpleDialog initialization method, which is executed for
SimpleDialog and all of its subclasses. This method is automatically
called by the constructor, and sets up all DOM references for
pre-existing markup, and creates required markup if it is not
already present.
@method init
@param {String} el The element ID ... | [
"The",
"SimpleDialog",
"initialization",
"method",
"which",
"is",
"executed",
"for",
"SimpleDialog",
"and",
"all",
"of",
"its",
"subclasses",
".",
"This",
"method",
"is",
"automatically",
"called",
"by",
"the",
"constructor",
"and",
"sets",
"up",
"all",
"DOM",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L8503-L8530 | train | |
neyric/webhookit | public/javascripts/yui/container/container.js | function (type,args,obj) {
var text = args[0];
if (text) {
this.setBody(text);
this.cfg.refireEvent("icon");
}
} | javascript | function (type,args,obj) {
var text = args[0];
if (text) {
this.setBody(text);
this.cfg.refireEvent("icon");
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"text",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"text",
")",
"{",
"this",
".",
"setBody",
"(",
"text",
")",
";",
"this",
".",
"cfg",
".",
"refireEvent",
"(",
"\"icon\"",
")"... | Fired when the "text" property is set.
@method configText
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope object. For configurati... | [
"Fired",
"when",
"the",
"text",
"property",
"is",
"set",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L8620-L8626 | train | |
neyric/webhookit | public/javascripts/inputex/js/fields/UpperCaseField.js | function(val, sendUpdatedEvt) {
// don't always rewrite the value to able selections with Ctrl+A
var uppered = val.toUpperCase();
if(uppered != this.getValue()) {
inputEx.UpperCaseField.superclass.setValue.call(this, uppered, sendUpdatedEvt);
}
} | javascript | function(val, sendUpdatedEvt) {
// don't always rewrite the value to able selections with Ctrl+A
var uppered = val.toUpperCase();
if(uppered != this.getValue()) {
inputEx.UpperCaseField.superclass.setValue.call(this, uppered, sendUpdatedEvt);
}
} | [
"function",
"(",
"val",
",",
"sendUpdatedEvt",
")",
"{",
"// don't always rewrite the value to able selections with Ctrl+A",
"var",
"uppered",
"=",
"val",
".",
"toUpperCase",
"(",
")",
";",
"if",
"(",
"uppered",
"!=",
"this",
".",
"getValue",
"(",
")",
")",
"{",... | Set the value and call toUpperCase
@param {String} val The string
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) | [
"Set",
"the",
"value",
"and",
"call",
"toUpperCase"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/UpperCaseField.js#L20-L26 | train | |
neyric/webhookit | public/javascripts/inputex/js/fields/UpperCaseField.js | function(e) {
inputEx.UpperCaseField.superclass.onKeyPress.call(this,e);
// Re-Apply a toUpperCase method
YAHOO.lang.later(0,this,function() {this.setValue( (this.getValue()) );});
} | javascript | function(e) {
inputEx.UpperCaseField.superclass.onKeyPress.call(this,e);
// Re-Apply a toUpperCase method
YAHOO.lang.later(0,this,function() {this.setValue( (this.getValue()) );});
} | [
"function",
"(",
"e",
")",
"{",
"inputEx",
".",
"UpperCaseField",
".",
"superclass",
".",
"onKeyPress",
".",
"call",
"(",
"this",
",",
"e",
")",
";",
"// Re-Apply a toUpperCase method",
"YAHOO",
".",
"lang",
".",
"later",
"(",
"0",
",",
"this",
",",
"fun... | Call setvalue on input to update the field with upper case value
@param {Event} e The original 'input' event | [
"Call",
"setvalue",
"on",
"input",
"to",
"update",
"the",
"field",
"with",
"upper",
"case",
"value"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/UpperCaseField.js#L32-L37 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function(el, oAttr) {
el = YUD.get(el);
// some sensible defaults
oAttr = oAttr || {};
if(!el) {
el = document.createElement(this.CONFIG.TAG_NAME);
}
if (el.id) {oAttr.id = el.id; }
YAHOO.widget.AccordionView.superclass.const... | javascript | function(el, oAttr) {
el = YUD.get(el);
// some sensible defaults
oAttr = oAttr || {};
if(!el) {
el = document.createElement(this.CONFIG.TAG_NAME);
}
if (el.id) {oAttr.id = el.id; }
YAHOO.widget.AccordionView.superclass.const... | [
"function",
"(",
"el",
",",
"oAttr",
")",
"{",
"el",
"=",
"YUD",
".",
"get",
"(",
"el",
")",
";",
"// some sensible defaults",
"oAttr",
"=",
"oAttr",
"||",
"{",
"}",
";",
"if",
"(",
"!",
"el",
")",
"{",
"el",
"=",
"document",
".",
"createElement",
... | A widget to control accordion views.
@namespace YAHOO.widget
@class AccordionView
@extends YAHOO.util.Element
@constructor
@param {HTMLElement | String} el The id of the html element that represents the AccordionView.
@param {Object} oAttr (optional) A key map of the AccordionView's
initial oAttributes. | [
"A",
"widget",
"to",
"control",
"accordion",
"views",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L35-L54 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function (oAttr) {
AccordionView.superclass.initAttributes.call(this, oAttr);
var bAnimate = (YAHOO.env.modules.animation) ? true : false;
this.setAttributeConfig('id', {
writeOnce: true,
validator: function (value) {
return (/^... | javascript | function (oAttr) {
AccordionView.superclass.initAttributes.call(this, oAttr);
var bAnimate = (YAHOO.env.modules.animation) ? true : false;
this.setAttributeConfig('id', {
writeOnce: true,
validator: function (value) {
return (/^... | [
"function",
"(",
"oAttr",
")",
"{",
"AccordionView",
".",
"superclass",
".",
"initAttributes",
".",
"call",
"(",
"this",
",",
"oAttr",
")",
";",
"var",
"bAnimate",
"=",
"(",
"YAHOO",
".",
"env",
".",
"modules",
".",
"animation",
")",
"?",
"true",
":",
... | Initialize attributes for the Accordion
@param {Object} oAttr attributes key map
@method initAttributes | [
"Initialize",
"attributes",
"for",
"the",
"Accordion"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L128-L189 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function() {
if(true === this.get('hoverActivated')) {
this.on('mouseover', this._onMouseOver, this, true);
this.on('mouseout', this._onMouseOut, this, true);
}
this.on('click', this._onClick, this, tr... | javascript | function() {
if(true === this.get('hoverActivated')) {
this.on('mouseover', this._onMouseOver, this, true);
this.on('mouseout', this._onMouseOut, this, true);
}
this.on('click', this._onClick, this, tr... | [
"function",
"(",
")",
"{",
"if",
"(",
"true",
"===",
"this",
".",
"get",
"(",
"'hoverActivated'",
")",
")",
"{",
"this",
".",
"on",
"(",
"'mouseover'",
",",
"this",
".",
"_onMouseOver",
",",
"this",
",",
"true",
")",
";",
"this",
".",
"on",
"(",
... | Attach all event listeners
@method initEvents
@public | [
"Attach",
"all",
"event",
"listeners"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L363-L410 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function() {
YUD.batch(this._panels, function(e) {
var elContent = this.firstChild.nextSibling;
if(elContent) {
YUD.removeClass(e.firstChild, this.CLASSES.ACTIVE);
YUD.addClass(elContent, this.CLASSES.HIDDEN);
this.... | javascript | function() {
YUD.batch(this._panels, function(e) {
var elContent = this.firstChild.nextSibling;
if(elContent) {
YUD.removeClass(e.firstChild, this.CLASSES.ACTIVE);
YUD.addClass(elContent, this.CLASSES.HIDDEN);
this.... | [
"function",
"(",
")",
"{",
"YUD",
".",
"batch",
"(",
"this",
".",
"_panels",
",",
"function",
"(",
"e",
")",
"{",
"var",
"elContent",
"=",
"this",
".",
"firstChild",
".",
"nextSibling",
";",
"if",
"(",
"elContent",
")",
"{",
"YUD",
".",
"removeClass"... | Closes all panels
@method _collapseAccordion
@private | [
"Closes",
"all",
"panels"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L435-L444 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function() {
var aLength = this._panels.length;
var bAllClosed = true;
for(var i=0;i<aLength;i++) {
if(YUD.hasClass(this._panels[i].firstChild, this.CLASSES.ACTIVE)) {
this._panels[i].firstChild.tabIndex = 0;
bAllClosed = false;... | javascript | function() {
var aLength = this._panels.length;
var bAllClosed = true;
for(var i=0;i<aLength;i++) {
if(YUD.hasClass(this._panels[i].firstChild, this.CLASSES.ACTIVE)) {
this._panels[i].firstChild.tabIndex = 0;
bAllClosed = false;... | [
"function",
"(",
")",
"{",
"var",
"aLength",
"=",
"this",
".",
"_panels",
".",
"length",
";",
"var",
"bAllClosed",
"=",
"true",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"aLength",
";",
"i",
"++",
")",
"{",
"if",
"(",
"YUD",
".",
... | Set tabIndex to 0 on the first item in case all panels are closed
or active. Otherwise set it to -1
@method _fixTabIndexes
@private | [
"Set",
"tabIndex",
"to",
"0",
"on",
"the",
"first",
"item",
"in",
"case",
"all",
"panels",
"are",
"closed",
"or",
"active",
".",
"Otherwise",
"set",
"it",
"to",
"-",
"1"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L453-L470 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function(index) {
this.removeChild(YUD.getElementsByClassName(this.CLASSES.PANEL, this.CONFIG.ITEM_WRAPPER_TAG_NAME, this)[index]);
var aNewPanels = [];
var nLength = this._panels.length;
for(var i=0;i<nLength;i++) {
if(i !== index) {
... | javascript | function(index) {
this.removeChild(YUD.getElementsByClassName(this.CLASSES.PANEL, this.CONFIG.ITEM_WRAPPER_TAG_NAME, this)[index]);
var aNewPanels = [];
var nLength = this._panels.length;
for(var i=0;i<nLength;i++) {
if(i !== index) {
... | [
"function",
"(",
"index",
")",
"{",
"this",
".",
"removeChild",
"(",
"YUD",
".",
"getElementsByClassName",
"(",
"this",
".",
"CLASSES",
".",
"PANEL",
",",
"this",
".",
"CONFIG",
".",
"ITEM_WRAPPER_TAG_NAME",
",",
"this",
")",
"[",
"index",
"]",
")",
";",... | Removes the specified Panel from the AccordionView.
@method removePanel
@param {Integer} index of the panel to be removed | [
"Removes",
"the",
"specified",
"Panel",
"from",
"the",
"AccordionView",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L581-L592 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function(nIndex) {
var ePanelNode = this._panels[nIndex];
if(!ePanelNode) {return false;} // invalid node
if(YUD.hasClass(ePanelNode.firstChild, this.CLASSES.ACTIVE)) {return false;} // already open
this._onClick(ePanelNode.firstChild);
return true;
} | javascript | function(nIndex) {
var ePanelNode = this._panels[nIndex];
if(!ePanelNode) {return false;} // invalid node
if(YUD.hasClass(ePanelNode.firstChild, this.CLASSES.ACTIVE)) {return false;} // already open
this._onClick(ePanelNode.firstChild);
return true;
} | [
"function",
"(",
"nIndex",
")",
"{",
"var",
"ePanelNode",
"=",
"this",
".",
"_panels",
"[",
"nIndex",
"]",
";",
"if",
"(",
"!",
"ePanelNode",
")",
"{",
"return",
"false",
";",
"}",
"// invalid node",
"if",
"(",
"YUD",
".",
"hasClass",
"(",
"ePanelNode"... | Open a panel
@method openPanel
@param {Integer} nIndex The position of the Panel.
@return {Boolean} whether action resulted in opening a panel
that was previously closed | [
"Open",
"a",
"panel"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L623-L629 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function(ev) {
var eCurrentPanel = YUD.getAncestorByClassName(YUE.getTarget(ev), this.CLASSES.PANEL);
var nKeyCode = YUE.getCharCode(ev);
var nLength = this._panels.length;
if(nKeyCode === 37 || nKeyCode === 38) {
for(var i=0;i<nLength;i++) {
... | javascript | function(ev) {
var eCurrentPanel = YUD.getAncestorByClassName(YUE.getTarget(ev), this.CLASSES.PANEL);
var nKeyCode = YUE.getCharCode(ev);
var nLength = this._panels.length;
if(nKeyCode === 37 || nKeyCode === 38) {
for(var i=0;i<nLength;i++) {
... | [
"function",
"(",
"ev",
")",
"{",
"var",
"eCurrentPanel",
"=",
"YUD",
".",
"getAncestorByClassName",
"(",
"YUE",
".",
"getTarget",
"(",
"ev",
")",
",",
"this",
".",
"CLASSES",
".",
"PANEL",
")",
";",
"var",
"nKeyCode",
"=",
"YUE",
".",
"getCharCode",
"(... | Keyboard event handler for keyboard control of the widget
@method _onKeydown
@param {Event} ev The Dom event
@private | [
"Keyboard",
"event",
"handler",
"for",
"keyboard",
"control",
"of",
"the",
"widget"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L674-L694 | train | |
neyric/webhookit | public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js | function(ev) {
YUE.stopPropagation(ev);
// must provide the TARGET or IE will destroy the event before we can
// use it. Thanks Nicholas Zakas for pointing this out to me
var target = YUE.getTarget(ev);
this._hoverTimer = YAHOO.lang.later(this.get('_hoverTimeo... | javascript | function(ev) {
YUE.stopPropagation(ev);
// must provide the TARGET or IE will destroy the event before we can
// use it. Thanks Nicholas Zakas for pointing this out to me
var target = YUE.getTarget(ev);
this._hoverTimer = YAHOO.lang.later(this.get('_hoverTimeo... | [
"function",
"(",
"ev",
")",
"{",
"YUE",
".",
"stopPropagation",
"(",
"ev",
")",
";",
"// must provide the TARGET or IE will destroy the event before we can",
"// use it. Thanks Nicholas Zakas for pointing this out to me",
"var",
"target",
"=",
"YUE",
".",
"getTarget",
"(",
... | Mouseover event handler
@method _onMouseOver
@param {Event} ev The Dom event
@private | [
"Mouseover",
"event",
"handler"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/editor/lib/accordionview/accordionview.js#L703-L711 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el) {
var id, nodes, c, i, len, attr;
if (el) {
if (el[NODE_TYPE] || el.item) { // Node, or NodeList
return el;
}
if (typeof el === 'string') { // id
id = el;
el = document.getE... | javascript | function(el) {
var id, nodes, c, i, len, attr;
if (el) {
if (el[NODE_TYPE] || el.item) { // Node, or NodeList
return el;
}
if (typeof el === 'string') { // id
id = el;
el = document.getE... | [
"function",
"(",
"el",
")",
"{",
"var",
"id",
",",
"nodes",
",",
"c",
",",
"i",
",",
"len",
",",
"attr",
";",
"if",
"(",
"el",
")",
"{",
"if",
"(",
"el",
"[",
"NODE_TYPE",
"]",
"||",
"el",
".",
"item",
")",
"{",
"// Node, or NodeList",
"return"... | Returns an HTMLElement reference.
@method get
@param {String | HTMLElement |Array} el Accepts a string to use as an ID for getting a DOM reference, an actual DOM reference, or an Array of IDs and/or HTMLElements.
@return {HTMLElement | Array} A DOM reference to an HTML element or an array of HTMLElements. | [
"Returns",
"an",
"HTMLElement",
"reference",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L94-L137 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, property) {
return Y.Dom.batch(el, Y.Dom._getStyle, property);
} | javascript | function(el, property) {
return Y.Dom.batch(el, Y.Dom._getStyle, property);
} | [
"function",
"(",
"el",
",",
"property",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"batch",
"(",
"el",
",",
"Y",
".",
"Dom",
".",
"_getStyle",
",",
"property",
")",
";",
"}"
] | Normalizes currentStyle and ComputedStyle.
@method getStyle
@param {String | HTMLElement |Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
@param {String} property The style property whose value is returned.
@return {String | Array} The current value of the st... | [
"Normalizes",
"currentStyle",
"and",
"ComputedStyle",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L154-L156 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, property, val) {
Y.Dom.batch(el, Y.Dom._setStyle, { prop: property, val: val });
} | javascript | function(el, property, val) {
Y.Dom.batch(el, Y.Dom._setStyle, { prop: property, val: val });
} | [
"function",
"(",
"el",
",",
"property",
",",
"val",
")",
"{",
"Y",
".",
"Dom",
".",
"batch",
"(",
"el",
",",
"Y",
".",
"Dom",
".",
"_setStyle",
",",
"{",
"prop",
":",
"property",
",",
"val",
":",
"val",
"}",
")",
";",
"}"
] | Wrapper for setting style properties of HTMLElements. Normalizes "opacity" across modern browsers.
@method setStyle
@param {String | HTMLElement | Array} el Accepts a string to use as an ID, an actual DOM reference, or an Array of IDs and/or HTMLElements.
@param {String} property The style property to be set.
@param {... | [
"Wrapper",
"for",
"setting",
"style",
"properties",
"of",
"HTMLElements",
".",
"Normalizes",
"opacity",
"across",
"modern",
"browsers",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L214-L216 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, className) {
return Y.Dom.batch(el, Y.Dom._hasClass, className);
} | javascript | function(el, className) {
return Y.Dom.batch(el, Y.Dom._hasClass, className);
} | [
"function",
"(",
"el",
",",
"className",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"batch",
"(",
"el",
",",
"Y",
".",
"Dom",
".",
"_hasClass",
",",
"className",
")",
";",
"}"
] | Determines whether an HTMLElement has the given className.
@method hasClass
@param {String | HTMLElement | Array} el The element or collection to test
@param {String} className the class name to search for
@return {Boolean | Array} A boolean value or array of boolean values | [
"Determines",
"whether",
"an",
"HTMLElement",
"has",
"the",
"given",
"className",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L608-L610 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, className) {
return Y.Dom.batch(el, Y.Dom._addClass, className);
} | javascript | function(el, className) {
return Y.Dom.batch(el, Y.Dom._addClass, className);
} | [
"function",
"(",
"el",
",",
"className",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"batch",
"(",
"el",
",",
"Y",
".",
"Dom",
".",
"_addClass",
",",
"className",
")",
";",
"}"
] | Adds a class name to a given element or collection of elements.
@method addClass
@param {String | HTMLElement | Array} el The element or collection to add the class to
@param {String} className the class name to add to the class attribute
@return {Boolean | Array} A pass/fail boolean or array of booleans | [
"Adds",
"a",
"class",
"name",
"to",
"a",
"given",
"element",
"or",
"collection",
"of",
"elements",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L638-L640 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, className) {
return Y.Dom.batch(el, Y.Dom._removeClass, className);
} | javascript | function(el, className) {
return Y.Dom.batch(el, Y.Dom._removeClass, className);
} | [
"function",
"(",
"el",
",",
"className",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"batch",
"(",
"el",
",",
"Y",
".",
"Dom",
".",
"_removeClass",
",",
"className",
")",
";",
"}"
] | Removes a class name from a given element or collection of elements.
@method removeClass
@param {String | HTMLElement | Array} el The element or collection to remove the class from
@param {String} className the class name to remove from the class attribute
@return {Boolean | Array} A pass/fail boolean or array of boole... | [
"Removes",
"a",
"class",
"name",
"from",
"a",
"given",
"element",
"or",
"collection",
"of",
"elements",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L666-L668 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, oldClassName, newClassName) {
return Y.Dom.batch(el, Y.Dom._replaceClass, { from: oldClassName, to: newClassName });
} | javascript | function(el, oldClassName, newClassName) {
return Y.Dom.batch(el, Y.Dom._replaceClass, { from: oldClassName, to: newClassName });
} | [
"function",
"(",
"el",
",",
"oldClassName",
",",
"newClassName",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"batch",
"(",
"el",
",",
"Y",
".",
"Dom",
".",
"_replaceClass",
",",
"{",
"from",
":",
"oldClassName",
",",
"to",
":",
"newClassName",
"}",
")"... | Replace a class with another class for a given element or collection of elements.
If no oldClassName is present, the newClassName is simply added.
@method replaceClass
@param {String | HTMLElement | Array} el The element or collection to remove the class from
@param {String} oldClassName the class name to be replaced
@... | [
"Replace",
"a",
"class",
"with",
"another",
"class",
"for",
"a",
"given",
"element",
"or",
"collection",
"of",
"elements",
".",
"If",
"no",
"oldClassName",
"is",
"present",
"the",
"newClassName",
"is",
"simply",
"added",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L708-L710 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, prefix) {
prefix = prefix || 'yui-gen';
var f = function(el) {
if (el && el.id) { // do not override existing ID
YAHOO.log('generateId returning existing id ' + el.id, 'info', 'Dom');
return el.id;
}
... | javascript | function(el, prefix) {
prefix = prefix || 'yui-gen';
var f = function(el) {
if (el && el.id) { // do not override existing ID
YAHOO.log('generateId returning existing id ' + el.id, 'info', 'Dom');
return el.id;
}
... | [
"function",
"(",
"el",
",",
"prefix",
")",
"{",
"prefix",
"=",
"prefix",
"||",
"'yui-gen'",
";",
"var",
"f",
"=",
"function",
"(",
"el",
")",
"{",
"if",
"(",
"el",
"&&",
"el",
".",
"id",
")",
"{",
"// do not override existing ID",
"YAHOO",
".",
"log"... | Returns an ID and applies it to the element "el", if provided.
@method generateId
@param {String | HTMLElement | Array} el (optional) An optional element array of elements to add an ID to (no ID is added if one is already present).
@param {String} prefix (optional) an optional prefix to use (defaults to "yui-gen").
@re... | [
"Returns",
"an",
"ID",
"and",
"applies",
"it",
"to",
"the",
"element",
"el",
"if",
"provided",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L752-L777 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(haystack, needle) {
haystack = Y.Dom.get(haystack);
needle = Y.Dom.get(needle);
var ret = false;
if ( (haystack && needle) && (haystack[NODE_TYPE] && needle[NODE_TYPE]) ) {
if (haystack.contains && haystack !== needle) { // contains ... | javascript | function(haystack, needle) {
haystack = Y.Dom.get(haystack);
needle = Y.Dom.get(needle);
var ret = false;
if ( (haystack && needle) && (haystack[NODE_TYPE] && needle[NODE_TYPE]) ) {
if (haystack.contains && haystack !== needle) { // contains ... | [
"function",
"(",
"haystack",
",",
"needle",
")",
"{",
"haystack",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"haystack",
")",
";",
"needle",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"needle",
")",
";",
"var",
"ret",
"=",
"false",
";",
"if",
"(",
"(",... | Determines whether an HTMLElement is an ancestor of another HTML element in the DOM hierarchy.
@method isAncestor
@param {String | HTMLElement} haystack The possible ancestor
@param {String | HTMLElement} needle The possible descendent
@return {Boolean} Whether or not the haystack is an ancestor of needle | [
"Determines",
"whether",
"an",
"HTMLElement",
"is",
"an",
"ancestor",
"of",
"another",
"HTML",
"element",
"in",
"the",
"DOM",
"hierarchy",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L786-L804 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(el, doc) {
return Y.Dom._inDoc(Y.Dom.get(el), doc);
} | javascript | function(el, doc) {
return Y.Dom._inDoc(Y.Dom.get(el), doc);
} | [
"function",
"(",
"el",
",",
"doc",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"_inDoc",
"(",
"Y",
".",
"Dom",
".",
"get",
"(",
"el",
")",
",",
"doc",
")",
";",
"}"
] | Determines whether an HTMLElement is present in the current document.
@method inDocument
@param {String | HTMLElement} el The element to search for
@param {Object} doc An optional document to search, defaults to element's owner document
@return {Boolean} Whether or not the element is present in the current document | [
"Determines",
"whether",
"an",
"HTMLElement",
"is",
"present",
"in",
"the",
"current",
"document",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L813-L815 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(method, tag, root) {
return Y.Dom.getElementsBy(method, tag, root, null, null, null, true);
} | javascript | function(method, tag, root) {
return Y.Dom.getElementsBy(method, tag, root, null, null, null, true);
} | [
"function",
"(",
"method",
",",
"tag",
",",
"root",
")",
"{",
"return",
"Y",
".",
"Dom",
".",
"getElementsBy",
"(",
"method",
",",
"tag",
",",
"root",
",",
"null",
",",
"null",
",",
"null",
",",
"true",
")",
";",
"}"
] | Returns the first HTMLElement that passes the test applied by the supplied boolean method.
@method getElementBy
@param {Function} method - A boolean method for testing elements which receives the element as its only argument.
@param {String} tag (optional) The tag name of the elements being collected
@param {String | H... | [
"Returns",
"the",
"first",
"HTMLElement",
"that",
"passes",
"the",
"test",
"applied",
"by",
"the",
"supplied",
"boolean",
"method",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L883-L885 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function() {
var height = self.innerHeight, // Safari, Opera
mode = document[COMPAT_MODE];
if ( (mode || isIE) && !isOpera ) { // IE, Gecko
height = (mode == CSS1_COMPAT) ?
documentElement.clientHeight : // Standards
... | javascript | function() {
var height = self.innerHeight, // Safari, Opera
mode = document[COMPAT_MODE];
if ( (mode || isIE) && !isOpera ) { // IE, Gecko
height = (mode == CSS1_COMPAT) ?
documentElement.clientHeight : // Standards
... | [
"function",
"(",
")",
"{",
"var",
"height",
"=",
"self",
".",
"innerHeight",
",",
"// Safari, Opera",
"mode",
"=",
"document",
"[",
"COMPAT_MODE",
"]",
";",
"if",
"(",
"(",
"mode",
"||",
"isIE",
")",
"&&",
"!",
"isOpera",
")",
"{",
"// IE, Gecko",
"hei... | Returns the current height of the viewport.
@method getViewportHeight
@return {Int} The height of the viewable area of the page (excludes scrollbars). | [
"Returns",
"the",
"current",
"height",
"of",
"the",
"viewport",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L947-L959 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(node, method) {
while (node) {
node = node.previousSibling;
if ( Y.Dom._testElement(node, method) ) {
return node;
}
}
return null;
} | javascript | function(node, method) {
while (node) {
node = node.previousSibling;
if ( Y.Dom._testElement(node, method) ) {
return node;
}
}
return null;
} | [
"function",
"(",
"node",
",",
"method",
")",
"{",
"while",
"(",
"node",
")",
"{",
"node",
"=",
"node",
".",
"previousSibling",
";",
"if",
"(",
"Y",
".",
"Dom",
".",
"_testElement",
"(",
"node",
",",
"method",
")",
")",
"{",
"return",
"node",
";",
... | Returns the previous sibling that is an HTMLElement.
For performance reasons, IDs are not accepted and argument validation omitted.
Returns the nearest HTMLElement sibling if no method provided.
@method getPreviousSiblingBy
@param {HTMLElement} node The HTMLElement to use as the starting point
@param {Function} method ... | [
"Returns",
"the",
"previous",
"sibling",
"that",
"is",
"an",
"HTMLElement",
".",
"For",
"performance",
"reasons",
"IDs",
"are",
"not",
"accepted",
"and",
"argument",
"validation",
"omitted",
".",
"Returns",
"the",
"nearest",
"HTMLElement",
"sibling",
"if",
"no",... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1047-L1055 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(node, method) {
while (node) {
node = node.nextSibling;
if ( Y.Dom._testElement(node, method) ) {
return node;
}
}
return null;
} | javascript | function(node, method) {
while (node) {
node = node.nextSibling;
if ( Y.Dom._testElement(node, method) ) {
return node;
}
}
return null;
} | [
"function",
"(",
"node",
",",
"method",
")",
"{",
"while",
"(",
"node",
")",
"{",
"node",
"=",
"node",
".",
"nextSibling",
";",
"if",
"(",
"Y",
".",
"Dom",
".",
"_testElement",
"(",
"node",
",",
"method",
")",
")",
"{",
"return",
"node",
";",
"}"... | Returns the next HTMLElement sibling that passes the boolean method.
For performance reasons, IDs are not accepted and argument validation omitted.
Returns the nearest HTMLElement sibling if no method provided.
@method getNextSiblingBy
@param {HTMLElement} node The HTMLElement to use as the starting point
@param {Funct... | [
"Returns",
"the",
"next",
"HTMLElement",
"sibling",
"that",
"passes",
"the",
"boolean",
"method",
".",
"For",
"performance",
"reasons",
"IDs",
"are",
"not",
"accepted",
"and",
"argument",
"validation",
"omitted",
".",
"Returns",
"the",
"nearest",
"HTMLElement",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1083-L1091 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(node, method) {
var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
} | javascript | function(node, method) {
var child = ( Y.Dom._testElement(node.firstChild, method) ) ? node.firstChild : null;
return child || Y.Dom.getNextSiblingBy(node.firstChild, method);
} | [
"function",
"(",
"node",
",",
"method",
")",
"{",
"var",
"child",
"=",
"(",
"Y",
".",
"Dom",
".",
"_testElement",
"(",
"node",
".",
"firstChild",
",",
"method",
")",
")",
"?",
"node",
".",
"firstChild",
":",
"null",
";",
"return",
"child",
"||",
"Y... | Returns the first HTMLElement child that passes the test method.
@method getFirstChildBy
@param {HTMLElement} node The HTMLElement to use as the starting point
@param {Function} method A boolean function used to test children
that receives the node being tested as its only argument
@return {Object} HTMLElement or null ... | [
"Returns",
"the",
"first",
"HTMLElement",
"child",
"that",
"passes",
"the",
"test",
"method",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1117-L1120 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(node, method) {
if (!node) {
YAHOO.log('getLastChild failed: invalid node argument', 'error', 'Dom');
return null;
}
var child = ( Y.Dom._testElement(node.lastChild, method) ) ? node.lastChild : null;
return child || Y.Dom.getPrevi... | javascript | function(node, method) {
if (!node) {
YAHOO.log('getLastChild failed: invalid node argument', 'error', 'Dom');
return null;
}
var child = ( Y.Dom._testElement(node.lastChild, method) ) ? node.lastChild : null;
return child || Y.Dom.getPrevi... | [
"function",
"(",
"node",
",",
"method",
")",
"{",
"if",
"(",
"!",
"node",
")",
"{",
"YAHOO",
".",
"log",
"(",
"'getLastChild failed: invalid node argument'",
",",
"'error'",
",",
"'Dom'",
")",
";",
"return",
"null",
";",
"}",
"var",
"child",
"=",
"(",
... | Returns the last HTMLElement child that passes the test method.
@method getLastChildBy
@param {HTMLElement} node The HTMLElement to use as the starting point
@param {Function} method A boolean function used to test children
that receives the node being tested as its only argument
@return {Object} HTMLElement or null if... | [
"Returns",
"the",
"last",
"HTMLElement",
"child",
"that",
"passes",
"the",
"test",
"method",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1145-L1152 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(node) {
node = Y.Dom.get(node);
return Y.Dom.getLastChildBy(node);
} | javascript | function(node) {
node = Y.Dom.get(node);
return Y.Dom.getLastChildBy(node);
} | [
"function",
"(",
"node",
")",
"{",
"node",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"node",
")",
";",
"return",
"Y",
".",
"Dom",
".",
"getLastChildBy",
"(",
"node",
")",
";",
"}"
] | Returns the last HTMLElement child.
@method getLastChild
@param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point
@return {Object} HTMLElement or null if not found | [
"Returns",
"the",
"last",
"HTMLElement",
"child",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1160-L1163 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(node, method) {
var child = Y.Dom.getFirstChildBy(node, method),
children = child ? [child] : [];
Y.Dom.getNextSiblingBy(child, function(node) {
if ( !method || method(node) ) {
children[children.length] = node;
}
... | javascript | function(node, method) {
var child = Y.Dom.getFirstChildBy(node, method),
children = child ? [child] : [];
Y.Dom.getNextSiblingBy(child, function(node) {
if ( !method || method(node) ) {
children[children.length] = node;
}
... | [
"function",
"(",
"node",
",",
"method",
")",
"{",
"var",
"child",
"=",
"Y",
".",
"Dom",
".",
"getFirstChildBy",
"(",
"node",
",",
"method",
")",
",",
"children",
"=",
"child",
"?",
"[",
"child",
"]",
":",
"[",
"]",
";",
"Y",
".",
"Dom",
".",
"g... | Returns an array of HTMLElement childNodes that pass the test method.
@method getChildrenBy
@param {HTMLElement} node The HTMLElement to start from
@param {Function} method A boolean function used to test children
that receives the node being tested as its only argument
@return {Array} A static array of HTMLElements | [
"Returns",
"an",
"array",
"of",
"HTMLElement",
"childNodes",
"that",
"pass",
"the",
"test",
"method",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1173-L1185 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(doc) {
doc = doc || document;
return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft);
} | javascript | function(doc) {
doc = doc || document;
return Math.max(doc[DOCUMENT_ELEMENT].scrollLeft, doc.body.scrollLeft);
} | [
"function",
"(",
"doc",
")",
"{",
"doc",
"=",
"doc",
"||",
"document",
";",
"return",
"Math",
".",
"max",
"(",
"doc",
"[",
"DOCUMENT_ELEMENT",
"]",
".",
"scrollLeft",
",",
"doc",
".",
"body",
".",
"scrollLeft",
")",
";",
"}"
] | Returns the left scroll value of the document
@method getDocumentScrollLeft
@param {HTMLDocument} document (optional) The document to get the scroll value of
@return {Int} The amount that the document is scrolled to the left | [
"Returns",
"the",
"left",
"scroll",
"value",
"of",
"the",
"document"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1208-L1211 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function(doc) {
doc = doc || document;
return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop);
} | javascript | function(doc) {
doc = doc || document;
return Math.max(doc[DOCUMENT_ELEMENT].scrollTop, doc.body.scrollTop);
} | [
"function",
"(",
"doc",
")",
"{",
"doc",
"=",
"doc",
"||",
"document",
";",
"return",
"Math",
".",
"max",
"(",
"doc",
"[",
"DOCUMENT_ELEMENT",
"]",
".",
"scrollTop",
",",
"doc",
".",
"body",
".",
"scrollTop",
")",
";",
"}"
] | Returns the top scroll value of the document
@method getDocumentScrollTop
@param {HTMLDocument} document (optional) The document to get the scroll value of
@return {Int} The amount that the document is scrolled to the top | [
"Returns",
"the",
"top",
"scroll",
"value",
"of",
"the",
"document"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1219-L1222 | train | |
neyric/webhookit | public/javascripts/yui/dom/dom-debug.js | function() {
var t = Y.Dom.getDocumentScrollTop(),
l = Y.Dom.getDocumentScrollLeft(),
r = Y.Dom.getViewportWidth() + l,
b = Y.Dom.getViewportHeight() + t;
return new Y.Region(t, r, b, l);
} | javascript | function() {
var t = Y.Dom.getDocumentScrollTop(),
l = Y.Dom.getDocumentScrollLeft(),
r = Y.Dom.getViewportWidth() + l,
b = Y.Dom.getViewportHeight() + t;
return new Y.Region(t, r, b, l);
} | [
"function",
"(",
")",
"{",
"var",
"t",
"=",
"Y",
".",
"Dom",
".",
"getDocumentScrollTop",
"(",
")",
",",
"l",
"=",
"Y",
".",
"Dom",
".",
"getDocumentScrollLeft",
"(",
")",
",",
"r",
"=",
"Y",
".",
"Dom",
".",
"getViewportWidth",
"(",
")",
"+",
"l... | Creates a Region based on the viewport relative to the document.
@method getClientRegion
@return {Region} A Region object representing the viewport which accounts for document scroll | [
"Creates",
"a",
"Region",
"based",
"on",
"the",
"viewport",
"relative",
"to",
"the",
"document",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom-debug.js#L1271-L1278 | train | |
neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(oData) {
var date = null;
//Convert to date
if(!(oData instanceof Date)) {
date = new Date(oData);
}
else {
return oData;
}
// Validate
if(date instanceof Date) {
return date;
}
else {
YAHOO.log("Could not convert data " + lang.d... | javascript | function(oData) {
var date = null;
//Convert to date
if(!(oData instanceof Date)) {
date = new Date(oData);
}
else {
return oData;
}
// Validate
if(date instanceof Date) {
return date;
}
else {
YAHOO.log("Could not convert data " + lang.d... | [
"function",
"(",
"oData",
")",
"{",
"var",
"date",
"=",
"null",
";",
"//Convert to date",
"if",
"(",
"!",
"(",
"oData",
"instanceof",
"Date",
")",
")",
"{",
"date",
"=",
"new",
"Date",
"(",
"oData",
")",
";",
"}",
"else",
"{",
"return",
"oData",
";... | Converts data to type Date.
@method DataSourceBase.parseDate
@param oData {Date | String | Number} Data to convert.
@return {Date} A Date instance.
@static | [
"Converts",
"data",
"to",
"type",
"Date",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L462-L481 | train | |
neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(nMsec, oRequest, oCallback, oCaller) {
if(lang.isNumber(nMsec) && (nMsec >= 0)) {
YAHOO.log("Enabling polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
var oSelf = this;
var nId = setInterval(function() {
oSelf.makeConnection(... | javascript | function(nMsec, oRequest, oCallback, oCaller) {
if(lang.isNumber(nMsec) && (nMsec >= 0)) {
YAHOO.log("Enabling polling to live data for \"" + oRequest + "\" at interval " + nMsec, "info", this.toString());
var oSelf = this;
var nId = setInterval(function() {
oSelf.makeConnection(... | [
"function",
"(",
"nMsec",
",",
"oRequest",
",",
"oCallback",
",",
"oCaller",
")",
"{",
"if",
"(",
"lang",
".",
"isNumber",
"(",
"nMsec",
")",
"&&",
"(",
"nMsec",
">=",
"0",
")",
")",
"{",
"YAHOO",
".",
"log",
"(",
"\"Enabling polling to live data for \\\... | Sets up a polling mechanism to send requests at set intervals and forward
responses to given callback.
@method setInterval
@param nMsec {Number} Length of interval in milliseconds.
@param oRequest {Object} Request object.
@param oCallback {Function} Handler function to receive the response.
@param oCaller {Object} (de... | [
"Sets",
"up",
"a",
"polling",
"mechanism",
"to",
"send",
"requests",
"at",
"set",
"intervals",
"and",
"forward",
"responses",
"to",
"given",
"callback",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L798-L811 | train | |
neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(nId) {
// Remove from tracker if there
var tracker = this._aIntervals || [];
for(var i=tracker.length-1; i>-1; i--) {
if(tracker[i] === nId) {
tracker.splice(i,1);
clearInterval(nId);
}
}
} | javascript | function(nId) {
// Remove from tracker if there
var tracker = this._aIntervals || [];
for(var i=tracker.length-1; i>-1; i--) {
if(tracker[i] === nId) {
tracker.splice(i,1);
clearInterval(nId);
}
}
} | [
"function",
"(",
"nId",
")",
"{",
"// Remove from tracker if there",
"var",
"tracker",
"=",
"this",
".",
"_aIntervals",
"||",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"tracker",
".",
"length",
"-",
"1",
";",
"i",
">",
"-",
"1",
";",
"i",
"--",
"... | Disables polling mechanism associated with the given interval ID.
@method clearInterval
@param nId {Number} Interval ID. | [
"Disables",
"polling",
"mechanism",
"associated",
"with",
"the",
"given",
"interval",
"ID",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L819-L828 | train |
Subsets and Splits
SQL Console for semeru/code-text-javascript
Retrieves 20,000 non-null code samples labeled as JavaScript, providing a basic overview of the dataset.