id int32 0 58k | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
42,200 | 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 | |
42,201 | 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 | |
42,202 | 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 | |
42,203 | 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 | |
42,204 | 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 | |
42,205 | 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 | |
42,206 | 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 | |
42,207 | 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 | |
42,208 | 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 | |
42,209 | 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 | |
42,210 | 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 | |
42,211 | 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 | |
42,212 | 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 | |
42,213 | 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 | |
42,214 | 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 | |
42,215 | 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 | |
42,216 | 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 | |
42,217 | 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 | |
42,218 | 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 | |
42,219 | 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 | |
42,220 | 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 | |
42,221 | 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 | |
42,222 | 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 | |
42,223 | 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 | |
42,224 | 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 | |
42,225 | 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 | |
42,226 | 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 | |
42,227 | 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 | |
42,228 | 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 | |
42,229 | 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 | |
42,230 | 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 | |
42,231 | 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 | |
42,232 | 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 | |
42,233 | 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 | |
42,234 | 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 | |
42,235 | 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 | |
42,236 | 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 | |
42,237 | 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 | |
42,238 | 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 | |
42,239 | 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 | |
42,240 | 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 | |
42,241 | 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 | |
42,242 | 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 | |
42,243 | 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 | |
42,244 | 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 | |
42,245 | 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 | |
42,246 | 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 | |
42,247 | 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 | |
42,248 | 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 | |
42,249 | 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 | |
42,250 | 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 | |
42,251 | 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 | |
42,252 | 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 | |
42,253 | 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 | |
42,254 | 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 | |
42,255 | 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 | |
42,256 | 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 | |
42,257 | 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 | |
42,258 | 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 | |
42,259 | 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 | |
42,260 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(oRequest, oCallback, oCaller) {
var tId = DS._nTransactionId++;
this.fireEvent("requestEvent", {tId:tId, request:oRequest,callback:oCallback,caller:oCaller});
/* accounts for the following cases:
YAHOO.util.DataSourceBase.TYPE_UNKNOWN
YAHOO.util.DataSourceBase.TYPE_JSARRAY
YAHOO.util.D... | javascript | function(oRequest, oCallback, oCaller) {
var tId = DS._nTransactionId++;
this.fireEvent("requestEvent", {tId:tId, request:oRequest,callback:oCallback,caller:oCaller});
/* accounts for the following cases:
YAHOO.util.DataSourceBase.TYPE_UNKNOWN
YAHOO.util.DataSourceBase.TYPE_JSARRAY
YAHOO.util.D... | [
"function",
"(",
"oRequest",
",",
"oCallback",
",",
"oCaller",
")",
"{",
"var",
"tId",
"=",
"DS",
".",
"_nTransactionId",
"++",
";",
"this",
".",
"fireEvent",
"(",
"\"requestEvent\"",
",",
"{",
"tId",
":",
"tId",
",",
"request",
":",
"oRequest",
",",
"... | Overridable default method generates a unique transaction ID and passes
the live data reference directly to the handleResponse function. This
method should be implemented by subclasses to achieve more complex behavior
or to access remote data.
@method makeConnection
@param oRequest {Object} Request object.
@param oCa... | [
"Overridable",
"default",
"method",
"generates",
"a",
"unique",
"transaction",
"ID",
"and",
"passes",
"the",
"live",
"data",
"reference",
"directly",
"to",
"the",
"handleResponse",
"function",
".",
"This",
"method",
"should",
"be",
"implemented",
"by",
"subclasses... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L909-L925 | |
42,261 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(oRequest, oFullResponse) {
if(lang.isValue(oFullResponse)) {
var oParsedResponse = {results:oFullResponse,meta:{}};
YAHOO.log("Parsed generic data is " +
lang.dump(oParsedResponse), "info", this.toString());
return oParsedResponse;
}
YAHOO.log("Generic data ... | javascript | function(oRequest, oFullResponse) {
if(lang.isValue(oFullResponse)) {
var oParsedResponse = {results:oFullResponse,meta:{}};
YAHOO.log("Parsed generic data is " +
lang.dump(oParsedResponse), "info", this.toString());
return oParsedResponse;
}
YAHOO.log("Generic data ... | [
"function",
"(",
"oRequest",
",",
"oFullResponse",
")",
"{",
"if",
"(",
"lang",
".",
"isValue",
"(",
"oFullResponse",
")",
")",
"{",
"var",
"oParsedResponse",
"=",
"{",
"results",
":",
"oFullResponse",
",",
"meta",
":",
"{",
"}",
"}",
";",
"YAHOO",
"."... | Overridable method parses data of generic RESPONSE_TYPE into a response object.
@method parseData
@param oRequest {Object} Request object.
@param oFullResponse {Object} The full Array from the live database.
@return {Object} Parsed response object with the following properties:<br>
- results {Array} Array of parsed da... | [
"Overridable",
"method",
"parses",
"data",
"of",
"generic",
"RESPONSE_TYPE",
"into",
"a",
"response",
"object",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L1196-L1207 | |
42,262 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(result) {
var oResult = {},
schema = this.responseSchema;
try {
// Loop through each data field in each result using the schema
for(var m = schema.fields.length-1; m >= 0 ; m--) {
var field = schema.fields[m];
var key = (lang.isValue(field.key)) ... | javascript | function(result) {
var oResult = {},
schema = this.responseSchema;
try {
// Loop through each data field in each result using the schema
for(var m = schema.fields.length-1; m >= 0 ; m--) {
var field = schema.fields[m];
var key = (lang.isValue(field.key)) ... | [
"function",
"(",
"result",
")",
"{",
"var",
"oResult",
"=",
"{",
"}",
",",
"schema",
"=",
"this",
".",
"responseSchema",
";",
"try",
"{",
"// Loop through each data field in each result using the schema",
"for",
"(",
"var",
"m",
"=",
"schema",
".",
"fields",
"... | Overridable method parses XML data for one result into an object literal.
@method parseXMLResult
@param result {XML} XML for one result.
@return {Object} Object literal of data for one result. | [
"Overridable",
"method",
"parses",
"XML",
"data",
"for",
"one",
"result",
"into",
"an",
"object",
"literal",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L1407-L1479 | |
42,263 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(oRequest, oFullResponse) {
var bError = false,
schema = this.responseSchema,
oParsedResponse = {meta:{}},
xmlList = null,
metaNode = schema.metaNode,
metaLocators = schema.metaFields || {},
i,k,loc,v;
// In case oFullResponse is something funky
... | javascript | function(oRequest, oFullResponse) {
var bError = false,
schema = this.responseSchema,
oParsedResponse = {meta:{}},
xmlList = null,
metaNode = schema.metaNode,
metaLocators = schema.metaFields || {},
i,k,loc,v;
// In case oFullResponse is something funky
... | [
"function",
"(",
"oRequest",
",",
"oFullResponse",
")",
"{",
"var",
"bError",
"=",
"false",
",",
"schema",
"=",
"this",
".",
"responseSchema",
",",
"oParsedResponse",
"=",
"{",
"meta",
":",
"{",
"}",
"}",
",",
"xmlList",
"=",
"null",
",",
"metaNode",
"... | Overridable method parses XML data into a response object.
@method parseXMLData
@param oRequest {Object} Request object.
@param oFullResponse {Object} The full XML response from the live database.
@return {Object} Parsed response object with the following properties<br>
- results (Array) Array of parsed data results<b... | [
"Overridable",
"method",
"parses",
"XML",
"data",
"into",
"a",
"response",
"object",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L1493-L1569 | |
42,264 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(oResponse) {
// If response ID does not match last made request ID,
// silently fail and wait for the next response
if(oResponse && (this.connXhrMode == "ignoreStaleResponses") &&
(oResponse.tId != oQueue.conn.tId)) {
YAHOO.log("Ignored stale response", "warn... | javascript | function(oResponse) {
// If response ID does not match last made request ID,
// silently fail and wait for the next response
if(oResponse && (this.connXhrMode == "ignoreStaleResponses") &&
(oResponse.tId != oQueue.conn.tId)) {
YAHOO.log("Ignored stale response", "warn... | [
"function",
"(",
"oResponse",
")",
"{",
"// If response ID does not match last made request ID,",
"// silently fail and wait for the next response",
"if",
"(",
"oResponse",
"&&",
"(",
"this",
".",
"connXhrMode",
"==",
"\"ignoreStaleResponses\"",
")",
"&&",
"(",
"oResponse",
... | Define Connection Manager success handler
@method _xhrSuccess
@param oResponse {Object} HTTPXMLRequest object
@private | [
"Define",
"Connection",
"Manager",
"success",
"handler"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L2347-L2387 | |
42,265 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function(oResponse) {
this.fireEvent("dataErrorEvent", {request:oRequest, response: oResponse,
callback:oCallback, caller:oCaller,
message:DS.ERROR_DATAINVALID});
YAHOO.log(DS.ERROR_DATAINVALID + ": " +
oResponse.statusText, "error", this.toString());
... | javascript | function(oResponse) {
this.fireEvent("dataErrorEvent", {request:oRequest, response: oResponse,
callback:oCallback, caller:oCaller,
message:DS.ERROR_DATAINVALID});
YAHOO.log(DS.ERROR_DATAINVALID + ": " +
oResponse.statusText, "error", this.toString());
... | [
"function",
"(",
"oResponse",
")",
"{",
"this",
".",
"fireEvent",
"(",
"\"dataErrorEvent\"",
",",
"{",
"request",
":",
"oRequest",
",",
"response",
":",
"oResponse",
",",
"callback",
":",
"oCallback",
",",
"caller",
":",
"oCaller",
",",
"message",
":",
"DS... | Define Connection Manager failure handler
@method _xhrFailure
@param oResponse {Object} HTTPXMLRequest object
@private | [
"Define",
"Connection",
"Manager",
"failure",
"handler"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L2396-L2418 | |
42,266 | neyric/webhookit | public/javascripts/yui/datasource/datasource-debug.js | function (oDate, oConfig, sLocale) {
oConfig = oConfig || {};
if(!(oDate instanceof Date)) {
return YAHOO.lang.isValue(oDate) ? oDate : "";
}
var format = oConfig.format || "%m/%d/%Y";
// Be backwards compatible, support strings that are
// exactly ... | javascript | function (oDate, oConfig, sLocale) {
oConfig = oConfig || {};
if(!(oDate instanceof Date)) {
return YAHOO.lang.isValue(oDate) ? oDate : "";
}
var format = oConfig.format || "%m/%d/%Y";
// Be backwards compatible, support strings that are
// exactly ... | [
"function",
"(",
"oDate",
",",
"oConfig",
",",
"sLocale",
")",
"{",
"oConfig",
"=",
"oConfig",
"||",
"{",
"}",
";",
"if",
"(",
"!",
"(",
"oDate",
"instanceof",
"Date",
")",
")",
"{",
"return",
"YAHOO",
".",
"lang",
".",
"isValue",
"(",
"oDate",
")"... | Takes a native JavaScript Date and formats to string for display to user.
@method format
@param oDate {Date} Date.
@param oConfig {Object} (Optional) Object literal of configuration values:
<dl>
<dt>format <String></dt>
<dd>
<p>
Any strftime string is supported, such as "%I:%M:%S %p". strftime has several format... | [
"Takes",
"a",
"native",
"JavaScript",
"Date",
"and",
"formats",
"to",
"string",
"for",
"display",
"to",
"user",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/datasource/datasource-debug.js#L2906-L2968 | |
42,267 | kurko/ember-json-api | dist/ember-json-api.js | function(typeName, id, snapshot) {
// FIXME If there is a record, try and look up the self link
// - Need to use the function from the serializer to build the self key
// TODO: this basically only works in the simplest of scenarios
var route = this.getRoute(typeName, id, snapshot);
... | javascript | function(typeName, id, snapshot) {
// FIXME If there is a record, try and look up the self link
// - Need to use the function from the serializer to build the self key
// TODO: this basically only works in the simplest of scenarios
var route = this.getRoute(typeName, id, snapshot);
... | [
"function",
"(",
"typeName",
",",
"id",
",",
"snapshot",
")",
"{",
"// FIXME If there is a record, try and look up the self link",
"// - Need to use the function from the serializer to build the self key",
"// TODO: this basically only works in the simplest of scenarios",
"var",
"route",
... | Look up routes based on top-level links. | [
"Look",
"up",
"routes",
"based",
"on",
"top",
"-",
"level",
"links",
"."
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L44-L79 | |
42,268 | kurko/ember-json-api | dist/ember-json-api.js | function(store, type, ids, snapshots) {
return this.ajax(this.buildURL(type.modelName, ids.join(','), snapshots, 'findMany'), 'GET');
} | javascript | function(store, type, ids, snapshots) {
return this.ajax(this.buildURL(type.modelName, ids.join(','), snapshots, 'findMany'), 'GET');
} | [
"function",
"(",
"store",
",",
"type",
",",
"ids",
",",
"snapshots",
")",
"{",
"return",
"this",
".",
"ajax",
"(",
"this",
".",
"buildURL",
"(",
"type",
".",
"modelName",
",",
"ids",
".",
"join",
"(",
"','",
")",
",",
"snapshots",
",",
"'findMany'",
... | Fix query URL. | [
"Fix",
"query",
"URL",
"."
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L84-L86 | |
42,269 | kurko/ember-json-api | dist/ember-json-api.js | function(payload) {
if(!payload) {
return {};
}
var data = payload[this.primaryRecordKey];
if (data) {
if (Ember.isArray(data)) {
this.extractArrayData(data, payload);
} else {
this.extractSingleData(data, payload);
}
... | javascript | function(payload) {
if(!payload) {
return {};
}
var data = payload[this.primaryRecordKey];
if (data) {
if (Ember.isArray(data)) {
this.extractArrayData(data, payload);
} else {
this.extractSingleData(data, payload);
}
... | [
"function",
"(",
"payload",
")",
"{",
"if",
"(",
"!",
"payload",
")",
"{",
"return",
"{",
"}",
";",
"}",
"var",
"data",
"=",
"payload",
"[",
"this",
".",
"primaryRecordKey",
"]",
";",
"if",
"(",
"data",
")",
"{",
"if",
"(",
"Ember",
".",
"isArray... | Extract top-level "meta" & "links" before normalizing. | [
"Extract",
"top",
"-",
"level",
"meta",
"&",
"links",
"before",
"normalizing",
"."
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L270-L298 | |
42,270 | kurko/ember-json-api | dist/ember-json-api.js | function(sideloaded) {
var store = get(this, 'store');
var models = {};
var serializer = this;
sideloaded.forEach(function(link) {
var type = link.type;
if (link.relationships) {
serializer.extractRelationships(link.relationships, link);
}
... | javascript | function(sideloaded) {
var store = get(this, 'store');
var models = {};
var serializer = this;
sideloaded.forEach(function(link) {
var type = link.type;
if (link.relationships) {
serializer.extractRelationships(link.relationships, link);
}
... | [
"function",
"(",
"sideloaded",
")",
"{",
"var",
"store",
"=",
"get",
"(",
"this",
",",
"'store'",
")",
";",
"var",
"models",
"=",
"{",
"}",
";",
"var",
"serializer",
"=",
"this",
";",
"sideloaded",
".",
"forEach",
"(",
"function",
"(",
"link",
")",
... | Extract top-level "included" containing associated objects | [
"Extract",
"top",
"-",
"level",
"included",
"containing",
"associated",
"objects"
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L336-L354 | |
42,271 | kurko/ember-json-api | dist/ember-json-api.js | function(links, resource) {
var link, association, id, route, relationshipLink, cleanedRoute;
// Clear the old format
resource.links = {};
for (link in links) {
association = links[link];
link = Ember.String.camelize(link.split('.').pop());
if(!associatio... | javascript | function(links, resource) {
var link, association, id, route, relationshipLink, cleanedRoute;
// Clear the old format
resource.links = {};
for (link in links) {
association = links[link];
link = Ember.String.camelize(link.split('.').pop());
if(!associatio... | [
"function",
"(",
"links",
",",
"resource",
")",
"{",
"var",
"link",
",",
"association",
",",
"id",
",",
"route",
",",
"relationshipLink",
",",
"cleanedRoute",
";",
"// Clear the old format",
"resource",
".",
"links",
"=",
"{",
"}",
";",
"for",
"(",
"link",... | Parse the top-level "links" object. | [
"Parse",
"the",
"top",
"-",
"level",
"links",
"object",
"."
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L359-L404 | |
42,272 | kurko/ember-json-api | dist/ember-json-api.js | function(record, json, relationship) {
var attr = relationship.key;
var belongsTo = record.belongsTo(attr);
var type, key;
if (isNone(belongsTo)) {
return;
}
type = this.keyForSnapshot(belongsTo);
key = this.keyForRelationship(attr);
if (!json... | javascript | function(record, json, relationship) {
var attr = relationship.key;
var belongsTo = record.belongsTo(attr);
var type, key;
if (isNone(belongsTo)) {
return;
}
type = this.keyForSnapshot(belongsTo);
key = this.keyForRelationship(attr);
if (!json... | [
"function",
"(",
"record",
",",
"json",
",",
"relationship",
")",
"{",
"var",
"attr",
"=",
"relationship",
".",
"key",
";",
"var",
"belongsTo",
"=",
"record",
".",
"belongsTo",
"(",
"attr",
")",
";",
"var",
"type",
",",
"key",
";",
"if",
"(",
"isNone... | Use "links" key, remove support for polymorphic type | [
"Use",
"links",
"key",
"remove",
"support",
"for",
"polymorphic",
"type"
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L463-L479 | |
42,273 | kurko/ember-json-api | dist/ember-json-api.js | function(record, json, relationship) {
var attr = relationship.key;
var type = this.keyForRelationship(relationship.type);
var key = this.keyForRelationship(attr);
if (relationship.kind === 'hasMany') {
json.relationships = json.relationships || {};
json.relationship... | javascript | function(record, json, relationship) {
var attr = relationship.key;
var type = this.keyForRelationship(relationship.type);
var key = this.keyForRelationship(attr);
if (relationship.kind === 'hasMany') {
json.relationships = json.relationships || {};
json.relationship... | [
"function",
"(",
"record",
",",
"json",
",",
"relationship",
")",
"{",
"var",
"attr",
"=",
"relationship",
".",
"key",
";",
"var",
"type",
"=",
"this",
".",
"keyForRelationship",
"(",
"relationship",
".",
"type",
")",
";",
"var",
"key",
"=",
"this",
".... | Use "links" key | [
"Use",
"links",
"key"
] | 752003a26df5e5cb6ddfcce3526f9925d7cdb3d9 | https://github.com/kurko/ember-json-api/blob/752003a26df5e5cb6ddfcce3526f9925d7cdb3d9/dist/ember-json-api.js#L484-L493 | |
42,274 | bengfarrell/nuimotion | quickstart/websocketquickstart.js | onSkeletonUpdate | function onSkeletonUpdate(skeleton) {
for (var c in connections) {
connections[c].sendUTF(JSON.stringify(skeleton));
}
} | javascript | function onSkeletonUpdate(skeleton) {
for (var c in connections) {
connections[c].sendUTF(JSON.stringify(skeleton));
}
} | [
"function",
"onSkeletonUpdate",
"(",
"skeleton",
")",
"{",
"for",
"(",
"var",
"c",
"in",
"connections",
")",
"{",
"connections",
"[",
"c",
"]",
".",
"sendUTF",
"(",
"JSON",
".",
"stringify",
"(",
"skeleton",
")",
")",
";",
"}",
"}"
] | skeleton update callback
@param skeleton | [
"skeleton",
"update",
"callback"
] | 7117c251389b68e2e5d1b8fb8fb1ccd0550b5a77 | https://github.com/bengfarrell/nuimotion/blob/7117c251389b68e2e5d1b8fb8fb1ccd0550b5a77/quickstart/websocketquickstart.js#L30-L34 |
42,275 | bengfarrell/nuimotion | quickstart/websocketquickstart.js | onMessage | function onMessage(data) {
if (data.type == "utf8") {
message = JSON.parse(data.utf8Data);
switch (message.command) {
case "setJoints":
console.log("Client has request to add joints: " + message.data);
nuimotion.jointsTracking = message.data;
... | javascript | function onMessage(data) {
if (data.type == "utf8") {
message = JSON.parse(data.utf8Data);
switch (message.command) {
case "setJoints":
console.log("Client has request to add joints: " + message.data);
nuimotion.jointsTracking = message.data;
... | [
"function",
"onMessage",
"(",
"data",
")",
"{",
"if",
"(",
"data",
".",
"type",
"==",
"\"utf8\"",
")",
"{",
"message",
"=",
"JSON",
".",
"parse",
"(",
"data",
".",
"utf8Data",
")",
";",
"switch",
"(",
"message",
".",
"command",
")",
"{",
"case",
"\... | on message recieved from client
@param data | [
"on",
"message",
"recieved",
"from",
"client"
] | 7117c251389b68e2e5d1b8fb8fb1ccd0550b5a77 | https://github.com/bengfarrell/nuimotion/blob/7117c251389b68e2e5d1b8fb8fb1ccd0550b5a77/quickstart/websocketquickstart.js#L55-L79 |
42,276 | neyric/webhookit | public/javascripts/WireIt/plugins/grouping/examples/sawire/xslt.js | xsltChildNodes | function xsltChildNodes(input, template, output) {
// Clone input context to keep variables declared here local to the
// siblings of the children.
var context = input.clone();
for (var i = 0; i < template.childNodes.length; ++i) {
xsltProcessContext(context, template.childNodes[i], output);
}
} | javascript | function xsltChildNodes(input, template, output) {
// Clone input context to keep variables declared here local to the
// siblings of the children.
var context = input.clone();
for (var i = 0; i < template.childNodes.length; ++i) {
xsltProcessContext(context, template.childNodes[i], output);
}
} | [
"function",
"xsltChildNodes",
"(",
"input",
",",
"template",
",",
"output",
")",
"{",
"// Clone input context to keep variables declared here local to the",
"// siblings of the children.",
"var",
"context",
"=",
"input",
".",
"clone",
"(",
")",
";",
"for",
"(",
"var",
... | Traverses the template node tree. Calls the main processing function with the current input context for every child node of the current template node. | [
"Traverses",
"the",
"template",
"node",
"tree",
".",
"Calls",
"the",
"main",
"processing",
"function",
"with",
"the",
"current",
"input",
"context",
"for",
"every",
"child",
"node",
"of",
"the",
"current",
"template",
"node",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/plugins/grouping/examples/sawire/xslt.js#L406-L413 |
42,277 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function() {
// Make sure pending changes have been committed.
this.commit();
if (this.history.length) {
// Take the top diff from the history, apply it, and store its
// shadow in the redo history.
var item = this.history.pop();
this.redoHistory.push(this.updateTo(item, "applyChain... | javascript | function() {
// Make sure pending changes have been committed.
this.commit();
if (this.history.length) {
// Take the top diff from the history, apply it, and store its
// shadow in the redo history.
var item = this.history.pop();
this.redoHistory.push(this.updateTo(item, "applyChain... | [
"function",
"(",
")",
"{",
"// Make sure pending changes have been committed.",
"this",
".",
"commit",
"(",
")",
";",
"if",
"(",
"this",
".",
"history",
".",
"length",
")",
"{",
"// Take the top diff from the history, apply it, and store its",
"// shadow in the redo history... | Undo the last change. | [
"Undo",
"the",
"last",
"change",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L66-L78 | |
42,278 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function() {
this.commit();
if (this.redoHistory.length) {
// The inverse of undo, basically.
var item = this.redoHistory.pop();
this.addUndoLevel(this.updateTo(item, "applyChain"));
this.notifyEnvironment();
return this.chainNode(item);
}
} | javascript | function() {
this.commit();
if (this.redoHistory.length) {
// The inverse of undo, basically.
var item = this.redoHistory.pop();
this.addUndoLevel(this.updateTo(item, "applyChain"));
this.notifyEnvironment();
return this.chainNode(item);
}
} | [
"function",
"(",
")",
"{",
"this",
".",
"commit",
"(",
")",
";",
"if",
"(",
"this",
".",
"redoHistory",
".",
"length",
")",
"{",
"// The inverse of undo, basically.",
"var",
"item",
"=",
"this",
".",
"redoHistory",
".",
"pop",
"(",
")",
";",
"this",
".... | Redo the last undone change. | [
"Redo",
"the",
"last",
"undone",
"change",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L81-L90 | |
42,279 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function(from, to, lines) {
var chain = [];
for (var i = 0; i < lines.length; i++) {
var end = (i == lines.length - 1) ? to : this.container.ownerDocument.createElement("BR");
chain.push({from: from, to: end, text: cleanText(lines[i])});
from = end;
}
this.pushChains([chain], from == n... | javascript | function(from, to, lines) {
var chain = [];
for (var i = 0; i < lines.length; i++) {
var end = (i == lines.length - 1) ? to : this.container.ownerDocument.createElement("BR");
chain.push({from: from, to: end, text: cleanText(lines[i])});
from = end;
}
this.pushChains([chain], from == n... | [
"function",
"(",
"from",
",",
"to",
",",
"lines",
")",
"{",
"var",
"chain",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"lines",
".",
"length",
";",
"i",
"++",
")",
"{",
"var",
"end",
"=",
"(",
"i",
"==",
"lines",
... | Push a changeset into the document. | [
"Push",
"a",
"changeset",
"into",
"the",
"document",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L103-L112 | |
42,280 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function(doNotHighlight) {
this.parent.clearTimeout(this.commitTimeout);
// Make sure there are no pending dirty nodes.
if (!doNotHighlight) this.editor.highlightDirty(true);
// Build set of chains.
var chains = this.touchedChains(), self = this;
if (chains.length) {
this.addUndoLevel(thi... | javascript | function(doNotHighlight) {
this.parent.clearTimeout(this.commitTimeout);
// Make sure there are no pending dirty nodes.
if (!doNotHighlight) this.editor.highlightDirty(true);
// Build set of chains.
var chains = this.touchedChains(), self = this;
if (chains.length) {
this.addUndoLevel(thi... | [
"function",
"(",
"doNotHighlight",
")",
"{",
"this",
".",
"parent",
".",
"clearTimeout",
"(",
"this",
".",
"commitTimeout",
")",
";",
"// Make sure there are no pending dirty nodes.",
"if",
"(",
"!",
"doNotHighlight",
")",
"this",
".",
"editor",
".",
"highlightDir... | Check whether the touched nodes hold any changes, if so, commit them. | [
"Check",
"whether",
"the",
"touched",
"nodes",
"hold",
"any",
"changes",
"if",
"so",
"commit",
"them",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L155-L167 | |
42,281 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function(chains, updateFunc) {
var shadows = [], dirty = [];
for (var i = 0; i < chains.length; i++) {
shadows.push(this.shadowChain(chains[i]));
dirty.push(this[updateFunc](chains[i]));
}
if (updateFunc == "applyChain")
this.notifyDirty(dirty);
return shadows;
} | javascript | function(chains, updateFunc) {
var shadows = [], dirty = [];
for (var i = 0; i < chains.length; i++) {
shadows.push(this.shadowChain(chains[i]));
dirty.push(this[updateFunc](chains[i]));
}
if (updateFunc == "applyChain")
this.notifyDirty(dirty);
return shadows;
} | [
"function",
"(",
"chains",
",",
"updateFunc",
")",
"{",
"var",
"shadows",
"=",
"[",
"]",
",",
"dirty",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"chains",
".",
"length",
";",
"i",
"++",
")",
"{",
"shadows",
".",
"pu... | Update the document with a given set of chains, return its shadow. updateFunc should be "applyChain" or "linkChain". In the second case, the chains are taken to correspond the the current document, and only the state of the line data is updated. In the first case, the content of the chains is also pushed iinto the docu... | [
"Update",
"the",
"document",
"with",
"a",
"given",
"set",
"of",
"chains",
"return",
"its",
"shadow",
".",
"updateFunc",
"should",
"be",
"applyChain",
"or",
"linkChain",
".",
"In",
"the",
"second",
"case",
"the",
"chains",
"are",
"taken",
"to",
"correspond",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L177-L186 | |
42,282 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function(node) {
if (node) {
if (!node.historyTouched) {
this.touched.push(node);
node.historyTouched = true;
}
}
else {
this.firstTouched = true;
}
} | javascript | function(node) {
if (node) {
if (!node.historyTouched) {
this.touched.push(node);
node.historyTouched = true;
}
}
else {
this.firstTouched = true;
}
} | [
"function",
"(",
"node",
")",
"{",
"if",
"(",
"node",
")",
"{",
"if",
"(",
"!",
"node",
".",
"historyTouched",
")",
"{",
"this",
".",
"touched",
".",
"push",
"(",
"node",
")",
";",
"node",
".",
"historyTouched",
"=",
"true",
";",
"}",
"}",
"else"... | Mark a node as touched if it has not already been marked. | [
"Mark",
"a",
"node",
"as",
"touched",
"if",
"it",
"has",
"not",
"already",
"been",
"marked",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L222-L232 | |
42,283 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function(chain) {
var shadows = [], next = this.after(chain[0].from), end = chain[chain.length - 1].to;
while (true) {
shadows.push(next);
var nextNode = next.to;
if (!nextNode || nextNode == end)
break;
else
next = nextNode.historyAfter || this.before(end);
// (The... | javascript | function(chain) {
var shadows = [], next = this.after(chain[0].from), end = chain[chain.length - 1].to;
while (true) {
shadows.push(next);
var nextNode = next.to;
if (!nextNode || nextNode == end)
break;
else
next = nextNode.historyAfter || this.before(end);
// (The... | [
"function",
"(",
"chain",
")",
"{",
"var",
"shadows",
"=",
"[",
"]",
",",
"next",
"=",
"this",
".",
"after",
"(",
"chain",
"[",
"0",
"]",
".",
"from",
")",
",",
"end",
"=",
"chain",
"[",
"chain",
".",
"length",
"-",
"1",
"]",
".",
"to",
";",
... | Find the 'shadow' of a given chain by following the links in the DOM nodes at its start and end. | [
"Find",
"the",
"shadow",
"of",
"a",
"given",
"chain",
"by",
"following",
"the",
"links",
"in",
"the",
"DOM",
"nodes",
"at",
"its",
"start",
"and",
"end",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L335-L349 | |
42,284 | neyric/webhookit | public/javascripts/codemirror/js/undo.js | function(chain) {
// Some attempt is made to prevent the cursor from jumping
// randomly when an undo or redo happens. It still behaves a bit
// strange sometimes.
var cursor = select.cursorPos(this.container, false), self = this;
// Remove all nodes in the DOM tree between from and to (null for
... | javascript | function(chain) {
// Some attempt is made to prevent the cursor from jumping
// randomly when an undo or redo happens. It still behaves a bit
// strange sometimes.
var cursor = select.cursorPos(this.container, false), self = this;
// Remove all nodes in the DOM tree between from and to (null for
... | [
"function",
"(",
"chain",
")",
"{",
"// Some attempt is made to prevent the cursor from jumping",
"// randomly when an undo or redo happens. It still behaves a bit",
"// strange sometimes.",
"var",
"cursor",
"=",
"select",
".",
"cursorPos",
"(",
"this",
".",
"container",
",",
"... | Update the DOM tree to contain the lines specified in a given chain, link this chain into the DOM nodes. | [
"Update",
"the",
"DOM",
"tree",
"to",
"contain",
"the",
"lines",
"specified",
"in",
"a",
"given",
"chain",
"link",
"this",
"chain",
"into",
"the",
"DOM",
"nodes",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/codemirror/js/undo.js#L353-L409 | |
42,285 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (hash /*:Object*/) /*:String*/ {
//shortcuts
var lang = YAHOO.lang;
if (!lang.isObject(hash)){
throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");
}
var text /*:Array*/ = [];
for (v... | javascript | function (hash /*:Object*/) /*:String*/ {
//shortcuts
var lang = YAHOO.lang;
if (!lang.isObject(hash)){
throw new TypeError("Cookie._createCookieHashString(): Argument must be an object.");
}
var text /*:Array*/ = [];
for (v... | [
"function",
"(",
"hash",
"/*:Object*/",
")",
"/*:String*/",
"{",
"//shortcuts",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
";",
"if",
"(",
"!",
"lang",
".",
"isObject",
"(",
"hash",
")",
")",
"{",
"throw",
"new",
"TypeError",
"(",
"\"Cookie._createCookieHas... | Formats a cookie value for an object containing multiple values.
@param {Object} hash An object of key-value pairs to create a string for.
@return {String} A string suitable for use as a cookie value.
@method _createCookieHashString
@private
@static | [
"Formats",
"a",
"cookie",
"value",
"for",
"an",
"object",
"containing",
"multiple",
"values",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L76-L94 | |
42,286 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (text /*:String*/) /*:Object*/ {
var hashParts /*:Array*/ = text.split("&"),
hashPart /*:Array*/ = null,
hash /*:Object*/ = {};
if (text.length > 0){
for (var i=0, len=hashParts.length; i < len; i++){
hashPart = hashParts[i].... | javascript | function (text /*:String*/) /*:Object*/ {
var hashParts /*:Array*/ = text.split("&"),
hashPart /*:Array*/ = null,
hash /*:Object*/ = {};
if (text.length > 0){
for (var i=0, len=hashParts.length; i < len; i++){
hashPart = hashParts[i].... | [
"function",
"(",
"text",
"/*:String*/",
")",
"/*:Object*/",
"{",
"var",
"hashParts",
"/*:Array*/",
"=",
"text",
".",
"split",
"(",
"\"&\"",
")",
",",
"hashPart",
"/*:Array*/",
"=",
"null",
",",
"hash",
"/*:Object*/",
"=",
"{",
"}",
";",
"if",
"(",
"text"... | Parses a cookie hash string into an object.
@param {String} text The cookie hash string to parse. The string should already be URL-decoded.
@return {Object} An object containing entries for each cookie value.
@method _parseCookieHash
@private
@static | [
"Parses",
"a",
"cookie",
"hash",
"string",
"into",
"an",
"object",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L104-L118 | |
42,287 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (text /*:String*/, decode /*:Boolean*/) /*:Object*/ {
var cookies /*:Object*/ = {};
if (YAHOO.lang.isString(text) && text.length > 0) {
var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
//if (/... | javascript | function (text /*:String*/, decode /*:Boolean*/) /*:Object*/ {
var cookies /*:Object*/ = {};
if (YAHOO.lang.isString(text) && text.length > 0) {
var decodeValue = (decode === false ? function(s){return s;} : decodeURIComponent);
//if (/... | [
"function",
"(",
"text",
"/*:String*/",
",",
"decode",
"/*:Boolean*/",
")",
"/*:Object*/",
"{",
"var",
"cookies",
"/*:Object*/",
"=",
"{",
"}",
";",
"if",
"(",
"YAHOO",
".",
"lang",
".",
"isString",
"(",
"text",
")",
"&&",
"text",
".",
"length",
">",
"... | Parses a cookie string into an object representing all accessible cookies.
@param {String} text The cookie string to parse.
@param {Boolean} decode (Optional) Indicates if the cookie values should be decoded or not. Default is true.
@return {Object} An object containing entries for each accessible cookie.
@method _pars... | [
"Parses",
"a",
"cookie",
"string",
"into",
"an",
"object",
"representing",
"all",
"accessible",
"cookies",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L129-L165 | |
42,288 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name /*:String*/, options /*:Variant*/) /*:Variant*/{
var lang = YAHOO.lang,
converter;
if (lang.isFunction(options)) {
converter = options;
options = {};
} else if (lang.isObject(options)) {
converter = options.converte... | javascript | function (name /*:String*/, options /*:Variant*/) /*:Variant*/{
var lang = YAHOO.lang,
converter;
if (lang.isFunction(options)) {
converter = options;
options = {};
} else if (lang.isObject(options)) {
converter = options.converte... | [
"function",
"(",
"name",
"/*:String*/",
",",
"options",
"/*:Variant*/",
")",
"/*:Variant*/",
"{",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
",",
"converter",
";",
"if",
"(",
"lang",
".",
"isFunction",
"(",
"options",
")",
")",
"{",
"converter",
"=",
"opt... | Returns the cookie value for the given name.
@param {String} name The name of the cookie to retrieve.
@param {Object|Function} options (Optional) An object containing one or more
cookie options: raw (true/false) and converter (a function).
The converter function is run on the value before returning it. The
function is ... | [
"Returns",
"the",
"cookie",
"value",
"for",
"the",
"given",
"name",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L204-L233 | |
42,289 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name, subName, converter) {
var lang = YAHOO.lang,
hash = this.getSubs(name);
if (hash !== null) {
if (!lang.isString(subName) || subName === ""){
throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty str... | javascript | function (name, subName, converter) {
var lang = YAHOO.lang,
hash = this.getSubs(name);
if (hash !== null) {
if (!lang.isString(subName) || subName === ""){
throw new TypeError("Cookie.getSub(): Subcookie name must be a non-empty str... | [
"function",
"(",
"name",
",",
"subName",
",",
"converter",
")",
"{",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
",",
"hash",
"=",
"this",
".",
"getSubs",
"(",
"name",
")",
";",
"if",
"(",
"hash",
"!==",
"null",
")",
"{",
"if",
"(",
"!",
"lang",
... | Returns the value of a subcookie.
@param {String} name The name of the cookie to retrieve.
@param {String} subName The name of the subcookie to retrieve.
@param {Function} converter (Optional) A function to run on the value before returning
it. The function is not used if the cookie doesn't exist.
@return {Variant} If ... | [
"Returns",
"the",
"value",
"of",
"a",
"subcookie",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L248-L272 | |
42,290 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name /*:String*/) /*:Object*/ {
var isString = YAHOO.lang.isString;
//check cookie name
if (!isString(name) || name === ""){
throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
}
var cookies = this._parseC... | javascript | function (name /*:String*/) /*:Object*/ {
var isString = YAHOO.lang.isString;
//check cookie name
if (!isString(name) || name === ""){
throw new TypeError("Cookie.getSubs(): Cookie name must be a non-empty string.");
}
var cookies = this._parseC... | [
"function",
"(",
"name",
"/*:String*/",
")",
"/*:Object*/",
"{",
"var",
"isString",
"=",
"YAHOO",
".",
"lang",
".",
"isString",
";",
"//check cookie name",
"if",
"(",
"!",
"isString",
"(",
"name",
")",
"||",
"name",
"===",
"\"\"",
")",
"{",
"throw",
"new... | Returns an object containing name-value pairs stored in the cookie with the given name.
@param {String} name The name of the cookie to retrieve.
@return {Object} An object of name-value pairs if the cookie with the given name
exists, null if it does not.
@method getSubs
@static | [
"Returns",
"an",
"object",
"containing",
"name",
"-",
"value",
"pairs",
"stored",
"in",
"the",
"cookie",
"with",
"the",
"given",
"name",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L282-L296 | |
42,291 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name /*:String*/, options /*:Object*/) /*:String*/ {
//check cookie name
if (!YAHOO.lang.isString(name) || name === ""){
throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");
}
//set options - clone options so the origina... | javascript | function (name /*:String*/, options /*:Object*/) /*:String*/ {
//check cookie name
if (!YAHOO.lang.isString(name) || name === ""){
throw new TypeError("Cookie.remove(): Cookie name must be a non-empty string.");
}
//set options - clone options so the origina... | [
"function",
"(",
"name",
"/*:String*/",
",",
"options",
"/*:Object*/",
")",
"/*:String*/",
"{",
"//check cookie name",
"if",
"(",
"!",
"YAHOO",
".",
"lang",
".",
"isString",
"(",
"name",
")",
"||",
"name",
"===",
"\"\"",
")",
"{",
"throw",
"new",
"TypeErro... | Removes a cookie from the machine by setting its expiration date to
sometime in the past.
@param {String} name The name of the cookie to remove.
@param {Object} options (Optional) An object containing one or more
cookie options: path (a string), domain (a string),
and secure (true/false). The expires option will be ove... | [
"Removes",
"a",
"cookie",
"from",
"the",
"machine",
"by",
"setting",
"its",
"expiration",
"date",
"to",
"sometime",
"in",
"the",
"past",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L310-L324 | |
42,292 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function(name /*:String*/, subName /*:String*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
options = options || {};
//check cookie name
if (!lang.isString(name) || name === ""){
throw new TypeError("Cookie.removeSub(): Cookie name mus... | javascript | function(name /*:String*/, subName /*:String*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
options = options || {};
//check cookie name
if (!lang.isString(name) || name === ""){
throw new TypeError("Cookie.removeSub(): Cookie name mus... | [
"function",
"(",
"name",
"/*:String*/",
",",
"subName",
"/*:String*/",
",",
"options",
"/*:Object*/",
")",
"/*:String*/",
"{",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
";",
"options",
"=",
"options",
"||",
"{",
"}",
";",
"//check cookie name",
"if",
"(",
... | Removes a subcookie with a given name. Removing the last subcookie
won't remove the entire cookie unless options.removeIfEmpty is true.
@param {String} name The name of the cookie in which the subcookie exists.
@param {String} subName The name of the subcookie to remove.
@param {Object} options (Optional) An object con... | [
"Removes",
"a",
"subcookie",
"with",
"a",
"given",
"name",
".",
"Removing",
"the",
"last",
"subcookie",
"won",
"t",
"remove",
"the",
"entire",
"cookie",
"unless",
"options",
".",
"removeIfEmpty",
"is",
"true",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L339-L380 | |
42,293 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
options = options || {};
if (!lang.isString(name)){
throw new TypeError("Cookie.set(): Cookie name must be a string.");
}
if (... | javascript | function (name /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
options = options || {};
if (!lang.isString(name)){
throw new TypeError("Cookie.set(): Cookie name must be a string.");
}
if (... | [
"function",
"(",
"name",
"/*:String*/",
",",
"value",
"/*:Variant*/",
",",
"options",
"/*:Object*/",
")",
"/*:String*/",
"{",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
";",
"options",
"=",
"options",
"||",
"{",
"}",
";",
"if",
"(",
"!",
"lang",
".",
"i... | Sets a cookie with a given name and value.
@param {String} name The name of the cookie to set.
@param {Variant} value The value to set for the cookie.
@param {Object} options (Optional) An object containing one or more
cookie options: path (a string), domain (a string), expires (a Date object),
raw (true/false), and se... | [
"Sets",
"a",
"cookie",
"with",
"a",
"given",
"name",
"and",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L393-L410 | |
42,294 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name /*:String*/, subName /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
if (!lang.isString(name) || name === ""){
throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");
}
... | javascript | function (name /*:String*/, subName /*:String*/, value /*:Variant*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
if (!lang.isString(name) || name === ""){
throw new TypeError("Cookie.setSub(): Cookie name must be a non-empty string.");
}
... | [
"function",
"(",
"name",
"/*:String*/",
",",
"subName",
"/*:String*/",
",",
"value",
"/*:Variant*/",
",",
"options",
"/*:Object*/",
")",
"/*:String*/",
"{",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
";",
"if",
"(",
"!",
"lang",
".",
"isString",
"(",
"name"... | Sets a sub cookie with a given name to a particular value.
@param {String} name The name of the cookie to set.
@param {String} subName The name of the subcookie to set.
@param {Variant} value The value to set.
@param {Object} options (Optional) An object containing one or more
cookie options: path (a string), domain (a... | [
"Sets",
"a",
"sub",
"cookie",
"with",
"a",
"given",
"name",
"to",
"a",
"particular",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L424-L450 | |
42,295 | neyric/webhookit | public/javascripts/yui/cookie/cookie.js | function (name /*:String*/, value /*:Object*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
if (!lang.isString(name)){
throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");
}
if (!lang.isObject(value)){
thr... | javascript | function (name /*:String*/, value /*:Object*/, options /*:Object*/) /*:String*/ {
var lang = YAHOO.lang;
if (!lang.isString(name)){
throw new TypeError("Cookie.setSubs(): Cookie name must be a string.");
}
if (!lang.isObject(value)){
thr... | [
"function",
"(",
"name",
"/*:String*/",
",",
"value",
"/*:Object*/",
",",
"options",
"/*:Object*/",
")",
"/*:String*/",
"{",
"var",
"lang",
"=",
"YAHOO",
".",
"lang",
";",
"if",
"(",
"!",
"lang",
".",
"isString",
"(",
"name",
")",
")",
"{",
"throw",
"n... | Sets a cookie with a given name to contain a hash of name-value pairs.
@param {String} name The name of the cookie to set.
@param {Object} value An object containing name-value pairs.
@param {Object} options (Optional) An object containing one or more
cookie options: path (a string), domain (a string), expires (a Date ... | [
"Sets",
"a",
"cookie",
"with",
"a",
"given",
"name",
"to",
"contain",
"a",
"hash",
"of",
"name",
"-",
"value",
"pairs",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/cookie/cookie.js#L463-L478 | |
42,296 | neyric/webhookit | public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js | function(el,style) {
var sStyle = YAHOO.util.Dom.getStyle(el, style);
return parseInt(sStyle.substr(0, sStyle.length-2), 10);
} | javascript | function(el,style) {
var sStyle = YAHOO.util.Dom.getStyle(el, style);
return parseInt(sStyle.substr(0, sStyle.length-2), 10);
} | [
"function",
"(",
"el",
",",
"style",
")",
"{",
"var",
"sStyle",
"=",
"YAHOO",
".",
"util",
".",
"Dom",
".",
"getStyle",
"(",
"el",
",",
"style",
")",
";",
"return",
"parseInt",
"(",
"sStyle",
".",
"substr",
"(",
"0",
",",
"sStyle",
".",
"length",
... | Get a css property in pixels and convert it to an integer
@method getIntStyle
@namespace WireIt
@static
@param {HTMLElement} el The element
@param {String} style css-property to get
@return {Integer} integer size | [
"Get",
"a",
"css",
"property",
"in",
"pixels",
"and",
"convert",
"it",
"to",
"an",
"integer"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js#L64-L67 | |
42,297 | neyric/webhookit | public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js | function() {
// Remove the canvas from the dom
this.parentEl.removeChild(this.element);
// Remove the wire reference from the connected terminals
if(this.terminal1 && this.terminal1.removeWire) {
this.terminal1.removeWire(this);
}
if(this.terminal2 && this.terminal2.removeWir... | javascript | function() {
// Remove the canvas from the dom
this.parentEl.removeChild(this.element);
// Remove the wire reference from the connected terminals
if(this.terminal1 && this.terminal1.removeWire) {
this.terminal1.removeWire(this);
}
if(this.terminal2 && this.terminal2.removeWir... | [
"function",
"(",
")",
"{",
"// Remove the canvas from the dom",
"this",
".",
"parentEl",
".",
"removeChild",
"(",
"this",
".",
"element",
")",
";",
"// Remove the wire reference from the connected terminals",
"if",
"(",
"this",
".",
"terminal1",
"&&",
"this",
".",
"... | Remove a Wire from the Dom
@method remove | [
"Remove",
"a",
"Wire",
"from",
"the",
"Dom"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js#L463-L487 | |
42,298 | neyric/webhookit | public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js | function() {
var self=this, body=document.body;
if (!body || !body.firstChild) {
window.setTimeout( function() { self.createFrame(); }, 50 );
return;
}
var div=this.getDragEl(), Dom=YAHOO.util.Dom;
if (!div) {
div = document.createElement("div");
div.id =... | javascript | function() {
var self=this, body=document.body;
if (!body || !body.firstChild) {
window.setTimeout( function() { self.createFrame(); }, 50 );
return;
}
var div=this.getDragEl(), Dom=YAHOO.util.Dom;
if (!div) {
div = document.createElement("div");
div.id =... | [
"function",
"(",
")",
"{",
"var",
"self",
"=",
"this",
",",
"body",
"=",
"document",
".",
"body",
";",
"if",
"(",
"!",
"body",
"||",
"!",
"body",
".",
"firstChild",
")",
"{",
"window",
".",
"setTimeout",
"(",
"function",
"(",
")",
"{",
"self",
".... | Took this method from the YAHOO.util.DDProxy class
to overwrite the creation of the proxy Element with our custom size
@method createFrame | [
"Took",
"this",
"method",
"from",
"the",
"YAHOO",
".",
"util",
".",
"DDProxy",
"class",
"to",
"overwrite",
"the",
"creation",
"of",
"the",
"proxy",
"Element",
"with",
"our",
"custom",
"size"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js#L1342-L1369 | |
42,299 | neyric/webhookit | public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js | function() {
// Display the cut button
this.hideNow();
this.addClass(CSS_PREFIX+"Wire-scissors");
// The scissors are within the terminal element
this.appendTo(this._terminal.container ? this._terminal.container.layer.el : this._terminal.el.parentNode.parentNode);
// A... | javascript | function() {
// Display the cut button
this.hideNow();
this.addClass(CSS_PREFIX+"Wire-scissors");
// The scissors are within the terminal element
this.appendTo(this._terminal.container ? this._terminal.container.layer.el : this._terminal.el.parentNode.parentNode);
// A... | [
"function",
"(",
")",
"{",
"// Display the cut button",
"this",
".",
"hideNow",
"(",
")",
";",
"this",
".",
"addClass",
"(",
"CSS_PREFIX",
"+",
"\"Wire-scissors\"",
")",
";",
"// The scissors are within the terminal element",
"this",
".",
"appendTo",
"(",
"this",
... | Init the scissors
@method initScissors | [
"Init",
"the",
"scissors"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/WireIt/build/wireit-inputex-editor-grouping.js#L1650-L1667 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.