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,700 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function () {
var i, length, radioInput;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
radioInput = this.choicesList[i].node.firstChild;
if (radioInput.checked) {
// if "any" option checked
if (this.radioAny && this.radioAny == radioInput) {
... | javascript | function () {
var i, length, radioInput;
for (i = 0, length = this.choicesList.length ; i < length ; i += 1) {
radioInput = this.choicesList[i].node.firstChild;
if (radioInput.checked) {
// if "any" option checked
if (this.radioAny && this.radioAny == radioInput) {
... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"length",
",",
"radioInput",
";",
"for",
"(",
"i",
"=",
"0",
",",
"length",
"=",
"this",
".",
"choicesList",
".",
"length",
";",
"i",
"<",
"length",
";",
"i",
"+=",
"1",
")",
"{",
"radioInput",
"=",
"... | Should return true if empty | [
"Should",
"return",
"true",
"if",
"empty"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L5986-L6011 | |
42,701 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function () {
var i, length;
for (i = 0, length = this.choicesList.length; i < length; i += 1) {
this.disableChoice(this.choicesList[i], false);
}
} | javascript | function () {
var i, length;
for (i = 0, length = this.choicesList.length; i < length; i += 1) {
this.disableChoice(this.choicesList[i], false);
}
} | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"length",
";",
"for",
"(",
"i",
"=",
"0",
",",
"length",
"=",
"this",
".",
"choicesList",
".",
"length",
";",
"i",
"<",
"length",
";",
"i",
"+=",
"1",
")",
"{",
"this",
".",
"disableChoice",
"(",
"thi... | Disable the field | [
"Disable",
"the",
"field"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6040-L6048 | |
42,702 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function () {
var i, length;
for (i = 0, length = this.choicesList.length; i < length; i += 1) {
this.enableChoice(this.choicesList[i]);
}
} | javascript | function () {
var i, length;
for (i = 0, length = this.choicesList.length; i < length; i += 1) {
this.enableChoice(this.choicesList[i]);
}
} | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"length",
";",
"for",
"(",
"i",
"=",
"0",
",",
"length",
"=",
"this",
".",
"choicesList",
".",
"length",
";",
"i",
"<",
"length",
";",
"i",
"+=",
"1",
")",
"{",
"this",
".",
"enableChoice",
"(",
"this... | Enable the field | [
"Enable",
"the",
"field"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6053-L6061 | |
42,703 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(val, sendUpdatedEvt) {
this.value = val;
inputEx.renderVisu(this.options.visu, val, this.fieldContainer);
inputEx.UneditableField.superclass.setValue.call(this, val, sendUpdatedEvt);
} | javascript | function(val, sendUpdatedEvt) {
this.value = val;
inputEx.renderVisu(this.options.visu, val, this.fieldContainer);
inputEx.UneditableField.superclass.setValue.call(this, val, sendUpdatedEvt);
} | [
"function",
"(",
"val",
",",
"sendUpdatedEvt",
")",
"{",
"this",
".",
"value",
"=",
"val",
";",
"inputEx",
".",
"renderVisu",
"(",
"this",
".",
"options",
".",
"visu",
",",
"val",
",",
"this",
".",
"fieldContainer",
")",
";",
"inputEx",
".",
"Uneditabl... | Store the value and update the visu
@param {Any} val The value that will be sent to the visu
@param {boolean} [sendUpdatedEvt] (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event) | [
"Store",
"the",
"value",
"and",
"update",
"the",
"visu"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6834-L6840 | |
42,704 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(x, y) {
// make the proxy look like the source element
var dragEl = this.getDragEl();
var clickEl = this.getEl();
Dom.setStyle(clickEl, "visibility", "hidden");
this._originalIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes);
dragEl.className = clic... | javascript | function(x, y) {
// make the proxy look like the source element
var dragEl = this.getDragEl();
var clickEl = this.getEl();
Dom.setStyle(clickEl, "visibility", "hidden");
this._originalIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes);
dragEl.className = clic... | [
"function",
"(",
"x",
",",
"y",
")",
"{",
"// make the proxy look like the source element",
"var",
"dragEl",
"=",
"this",
".",
"getDragEl",
"(",
")",
";",
"var",
"clickEl",
"=",
"this",
".",
"getEl",
"(",
")",
";",
"Dom",
".",
"setStyle",
"(",
"clickEl",
... | Create the proxy element | [
"Create",
"the",
"proxy",
"element"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6984-L6992 | |
42,705 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
Dom.setStyle(this.id, "visibility", "");
// Fire the reordered event if position in list has changed
var clickEl = this.getEl();
var newIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes);
if(this._originalIndex != newIndex) {
this._l... | javascript | function(e) {
Dom.setStyle(this.id, "visibility", "");
// Fire the reordered event if position in list has changed
var clickEl = this.getEl();
var newIndex = inputEx.indexOf(clickEl ,clickEl.parentNode.childNodes);
if(this._originalIndex != newIndex) {
this._l... | [
"function",
"(",
"e",
")",
"{",
"Dom",
".",
"setStyle",
"(",
"this",
".",
"id",
",",
"\"visibility\"",
",",
"\"\"",
")",
";",
"// Fire the reordered event if position in list has changed",
"var",
"clickEl",
"=",
"this",
".",
"getEl",
"(",
")",
";",
"var",
"n... | Handle the endDrag and eventually fire the listReordered event | [
"Handle",
"the",
"endDrag",
"and",
"eventually",
"fire",
"the",
"listReordered",
"event"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L6997-L7006 | |
42,706 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(e) {
var y = Event.getPageY(e);
if (y < this.lastY) {
this.goingUp = true;
} else if (y > this.lastY) {
this.goingUp = false;
}
this.lastY = y;
} | javascript | function(e) {
var y = Event.getPageY(e);
if (y < this.lastY) {
this.goingUp = true;
} else if (y > this.lastY) {
this.goingUp = false;
}
this.lastY = y;
} | [
"function",
"(",
"e",
")",
"{",
"var",
"y",
"=",
"Event",
".",
"getPageY",
"(",
"e",
")",
";",
"if",
"(",
"y",
"<",
"this",
".",
"lastY",
")",
"{",
"this",
".",
"goingUp",
"=",
"true",
";",
"}",
"else",
"if",
"(",
"y",
">",
"this",
".",
"la... | Keep track of the direction of the drag for use during onDragOver | [
"Keep",
"track",
"of",
"the",
"direction",
"of",
"the",
"drag",
"for",
"use",
"during",
"onDragOver"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7042-L7052 | |
42,707 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(i) {
var itemValue = this.items[i];
this.ul.removeChild(this.ul.childNodes[i]);
this.items[i] = null;
this.items = inputEx.compactArray(this.items);
return itemValue;
} | javascript | function(i) {
var itemValue = this.items[i];
this.ul.removeChild(this.ul.childNodes[i]);
this.items[i] = null;
this.items = inputEx.compactArray(this.items);
return itemValue;
} | [
"function",
"(",
"i",
")",
"{",
"var",
"itemValue",
"=",
"this",
".",
"items",
"[",
"i",
"]",
";",
"this",
".",
"ul",
".",
"removeChild",
"(",
"this",
".",
"ul",
".",
"childNodes",
"[",
"i",
"]",
")",
";",
"this",
".",
"items",
"[",
"i",
"]",
... | private method to remove an item
@param {Integer} index index of item to be removed
@private | [
"private",
"method",
"to",
"remove",
"an",
"item"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7173-L7183 | |
42,708 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(originalIndex, newIndex) {
if(originalIndex < newIndex) {
this.items.splice(newIndex+1,0, this.items[originalIndex]);
this.items[originalIndex] = null;
}
else {
this.items.splice(newIndex,0, this.items[originalIndex]);
this.items[originalIndex+1] = null;
... | javascript | function(originalIndex, newIndex) {
if(originalIndex < newIndex) {
this.items.splice(newIndex+1,0, this.items[originalIndex]);
this.items[originalIndex] = null;
}
else {
this.items.splice(newIndex,0, this.items[originalIndex]);
this.items[originalIndex+1] = null;
... | [
"function",
"(",
"originalIndex",
",",
"newIndex",
")",
"{",
"if",
"(",
"originalIndex",
"<",
"newIndex",
")",
"{",
"this",
".",
"items",
".",
"splice",
"(",
"newIndex",
"+",
"1",
",",
"0",
",",
"this",
".",
"items",
"[",
"originalIndex",
"]",
")",
"... | Called by the DDListItem when an item as been moved | [
"Called",
"by",
"the",
"DDListItem",
"when",
"an",
"item",
"as",
"been",
"moved"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7199-L7211 | |
42,709 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(index, item) {
this.items[index] = (typeof item == "object") ? item.value : item;
this.ul.childNodes[index].childNodes[0].innerHTML = (typeof item == "object") ? item.label : item;
} | javascript | function(index, item) {
this.items[index] = (typeof item == "object") ? item.value : item;
this.ul.childNodes[index].childNodes[0].innerHTML = (typeof item == "object") ? item.label : item;
} | [
"function",
"(",
"index",
",",
"item",
")",
"{",
"this",
".",
"items",
"[",
"index",
"]",
"=",
"(",
"typeof",
"item",
"==",
"\"object\"",
")",
"?",
"item",
".",
"value",
":",
"item",
";",
"this",
".",
"ul",
".",
"childNodes",
"[",
"index",
"]",
"... | Update the value of a given item
@param {Integer} index Item index
@param {Any} value New value | [
"Update",
"the",
"value",
"of",
"a",
"given",
"item"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7226-L7229 | |
42,710 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var value, position, choice;
if (this.el.selectedIndex !== 0) {
// Get the selector value
value = inputEx.MultiSelectField.superclass.getValue.call(this);
position = this.getChoicePosition({ value : value });
choice = this.choicesList[position];
this.ddlist.... | javascript | function() {
var value, position, choice;
if (this.el.selectedIndex !== 0) {
// Get the selector value
value = inputEx.MultiSelectField.superclass.getValue.call(this);
position = this.getChoicePosition({ value : value });
choice = this.choicesList[position];
this.ddlist.... | [
"function",
"(",
")",
"{",
"var",
"value",
",",
"position",
",",
"choice",
";",
"if",
"(",
"this",
".",
"el",
".",
"selectedIndex",
"!==",
"0",
")",
"{",
"// Get the selector value",
"value",
"=",
"inputEx",
".",
"MultiSelectField",
".",
"superclass",
".",... | Add an item to the list when the select changed | [
"Add",
"an",
"item",
"to",
"the",
"list",
"when",
"the",
"select",
"changed"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7315-L7336 | |
42,711 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(sType, aArgs) {
var aData = aArgs[2];
var value = lang.isFunction(this.options.returnValue) ? this.options.returnValue(aData) : aData[0];
var label = lang.isFunction(this.options.returnLabel) ? this.options.returnLabel(aData) : value;
this.ddlist.addItem({label: label, value: value});
t... | javascript | function(sType, aArgs) {
var aData = aArgs[2];
var value = lang.isFunction(this.options.returnValue) ? this.options.returnValue(aData) : aData[0];
var label = lang.isFunction(this.options.returnLabel) ? this.options.returnLabel(aData) : value;
this.ddlist.addItem({label: label, value: value});
t... | [
"function",
"(",
"sType",
",",
"aArgs",
")",
"{",
"var",
"aData",
"=",
"aArgs",
"[",
"2",
"]",
";",
"var",
"value",
"=",
"lang",
".",
"isFunction",
"(",
"this",
".",
"options",
".",
"returnValue",
")",
"?",
"this",
".",
"options",
".",
"returnValue",... | Handle item selection in the autocompleter to add it to the list | [
"Handle",
"item",
"selection",
"in",
"the",
"autocompleter",
"to",
"add",
"it",
"to",
"the",
"list"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7632-L7639 | |
42,712 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function(options) {
inputEx.SliderField.superclass.setOptions.call(this, options);
this.options.className = options.className ? options.className : 'inputEx-SliderField';
this.options.minValue = lang.isUndefined(options.minValue) ? 0 : options.minValue;
this.options.maxValue = lan... | javascript | function(options) {
inputEx.SliderField.superclass.setOptions.call(this, options);
this.options.className = options.className ? options.className : 'inputEx-SliderField';
this.options.minValue = lang.isUndefined(options.minValue) ? 0 : options.minValue;
this.options.maxValue = lan... | [
"function",
"(",
"options",
")",
"{",
"inputEx",
".",
"SliderField",
".",
"superclass",
".",
"setOptions",
".",
"call",
"(",
"this",
",",
"options",
")",
";",
"this",
".",
"options",
".",
"className",
"=",
"options",
".",
"className",
"?",
"options",
"."... | Set the classname to 'inputEx-SliderField'
@param {Object} options Options object as passed to the constructor | [
"Set",
"the",
"classname",
"to",
"inputEx",
"-",
"SliderField"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7773-L7782 | |
42,713 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
this.sliderbg = inputEx.cn('div', {id: YAHOO.util.Dom.generateId(), className: 'inputEx-SliderField-bg'});
this.sliderthumb = inputEx.cn('div', {className: 'inputEx-SliderField-thumb'} );
this.sliderbg.appendChild(this.sliderthumb);
this.fieldContainer.appendChild... | javascript | function() {
this.sliderbg = inputEx.cn('div', {id: YAHOO.util.Dom.generateId(), className: 'inputEx-SliderField-bg'});
this.sliderthumb = inputEx.cn('div', {className: 'inputEx-SliderField-thumb'} );
this.sliderbg.appendChild(this.sliderthumb);
this.fieldContainer.appendChild... | [
"function",
"(",
")",
"{",
"this",
".",
"sliderbg",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"id",
":",
"YAHOO",
".",
"util",
".",
"Dom",
".",
"generateId",
"(",
")",
",",
"className",
":",
"'inputEx-SliderField-bg'",
"}",
")",
";",
"this",... | render a slider widget | [
"render",
"a",
"slider",
"widget"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7787-L7802 | |
42,714 | neyric/webhookit | public/javascripts/inputex/build/inputex.js | function() {
var val = Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100);
return val;
} | javascript | function() {
var val = Math.floor(this.options.minValue+(this.options.maxValue-this.options.minValue)*this.slider.getValue()/100);
return val;
} | [
"function",
"(",
")",
"{",
"var",
"val",
"=",
"Math",
".",
"floor",
"(",
"this",
".",
"options",
".",
"minValue",
"+",
"(",
"this",
".",
"options",
".",
"maxValue",
"-",
"this",
".",
"options",
".",
"minValue",
")",
"*",
"this",
".",
"slider",
".",... | Get the value from the slider
@return {int} The integer value | [
"Get",
"the",
"value",
"from",
"the",
"slider"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/build/inputex.js#L7845-L7848 | |
42,715 | neyric/webhookit | public/javascripts/yui/tabview/tabview.js | function(attr) {
TabView.superclass.initAttributes.call(this, attr);
if (!attr.orientation) {
attr.orientation = 'top';
}
var el = this.get(ELEMENT);
if (!Dom.hasClass(el, this.CLASSNAME)) {
Dom.addCla... | javascript | function(attr) {
TabView.superclass.initAttributes.call(this, attr);
if (!attr.orientation) {
attr.orientation = 'top';
}
var el = this.get(ELEMENT);
if (!Dom.hasClass(el, this.CLASSNAME)) {
Dom.addCla... | [
"function",
"(",
"attr",
")",
"{",
"TabView",
".",
"superclass",
".",
"initAttributes",
".",
"call",
"(",
"this",
",",
"attr",
")",
";",
"if",
"(",
"!",
"attr",
".",
"orientation",
")",
"{",
"attr",
".",
"orientation",
"=",
"'top'",
";",
"}",
"var",
... | setAttributeConfigs TabView specific properties.
@method initAttributes
@param {Object} attr Hash of initial attributes | [
"setAttributeConfigs",
"TabView",
"specific",
"properties",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/tabview/tabview.js#L260-L392 | |
42,716 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function() {
var el = this.getEl() || {};
var id = el.id || el.tagName;
return (this.constructor.NAME + ': ' + id);
} | javascript | function() {
var el = this.getEl() || {};
var id = el.id || el.tagName;
return (this.constructor.NAME + ': ' + id);
} | [
"function",
"(",
")",
"{",
"var",
"el",
"=",
"this",
".",
"getEl",
"(",
")",
"||",
"{",
"}",
";",
"var",
"id",
"=",
"el",
".",
"id",
"||",
"el",
".",
"tagName",
";",
"return",
"(",
"this",
".",
"constructor",
".",
"NAME",
"+",
"': '",
"+",
"i... | Provides a readable name for the Anim instance.
@method toString
@return {String} | [
"Provides",
"a",
"readable",
"name",
"for",
"the",
"Anim",
"instance",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L59-L63 | |
42,717 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function(attr, val, unit) {
var el = this.getEl();
if ( this.patterns.noNegatives.test(attr) ) {
val = (val > 0) ? val : 0;
}
if (attr in el && !('style' in el && attr in el.style)) {
el[attr] = val;
} else {
Y.Dom.setStyle(el, attr, val + uni... | javascript | function(attr, val, unit) {
var el = this.getEl();
if ( this.patterns.noNegatives.test(attr) ) {
val = (val > 0) ? val : 0;
}
if (attr in el && !('style' in el && attr in el.style)) {
el[attr] = val;
} else {
Y.Dom.setStyle(el, attr, val + uni... | [
"function",
"(",
"attr",
",",
"val",
",",
"unit",
")",
"{",
"var",
"el",
"=",
"this",
".",
"getEl",
"(",
")",
";",
"if",
"(",
"this",
".",
"patterns",
".",
"noNegatives",
".",
"test",
"(",
"attr",
")",
")",
"{",
"val",
"=",
"(",
"val",
">",
"... | Applies a value to an attribute.
@method setAttribute
@param {String} attr The name of the attribute.
@param {Number} val The value to be applied to the attribute.
@param {String} unit The unit ('px', '%', etc.) of the value. | [
"Applies",
"a",
"value",
"to",
"an",
"attribute",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L91-L102 | |
42,718 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function(attr) {
var el = this.getEl();
var val = Y.Dom.getStyle(el, attr);
if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) {
return parseFloat(val);
}
var a = this.patterns.offsetAttribute.exec(attr) || [];
var pos = !!( a[3] ); // top or... | javascript | function(attr) {
var el = this.getEl();
var val = Y.Dom.getStyle(el, attr);
if (val !== 'auto' && !this.patterns.offsetUnit.test(val)) {
return parseFloat(val);
}
var a = this.patterns.offsetAttribute.exec(attr) || [];
var pos = !!( a[3] ); // top or... | [
"function",
"(",
"attr",
")",
"{",
"var",
"el",
"=",
"this",
".",
"getEl",
"(",
")",
";",
"var",
"val",
"=",
"Y",
".",
"Dom",
".",
"getStyle",
"(",
"el",
",",
"attr",
")",
";",
"if",
"(",
"val",
"!==",
"'auto'",
"&&",
"!",
"this",
".",
"patte... | Returns current value of the attribute.
@method getAttribute
@param {String} attr The name of the attribute.
@return {Number} val The current value of the attribute. | [
"Returns",
"current",
"value",
"of",
"the",
"attribute",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L110-L134 | |
42,719 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function(attr) {
var start;
var end;
var attributes = this.attributes;
this.runtimeAttributes[attr] = {};
var isset = function(prop) {
return (typeof prop !== 'undefined');
};
if ( !isset(attributes[attr]['to']) && !isset(attributes[... | javascript | function(attr) {
var start;
var end;
var attributes = this.attributes;
this.runtimeAttributes[attr] = {};
var isset = function(prop) {
return (typeof prop !== 'undefined');
};
if ( !isset(attributes[attr]['to']) && !isset(attributes[... | [
"function",
"(",
"attr",
")",
"{",
"var",
"start",
";",
"var",
"end",
";",
"var",
"attributes",
"=",
"this",
".",
"attributes",
";",
"this",
".",
"runtimeAttributes",
"[",
"attr",
"]",
"=",
"{",
"}",
";",
"var",
"isset",
"=",
"function",
"(",
"prop",... | Sets the actual values to be used during the animation. Should only be needed for subclass use.
@method setRuntimeAttribute
@param {Object} attr The attribute object
@private | [
"Sets",
"the",
"actual",
"values",
"to",
"be",
"used",
"during",
"the",
"animation",
".",
"Should",
"only",
"be",
"needed",
"for",
"subclass",
"use",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L156-L194 | |
42,720 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function(tween) {
var frames = tween.totalFrames;
var frame = tween.currentFrame;
var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames);
var elapsed = (new Date() - tween.getStartTime());
var tweak = 0;
if (elapsed < tween.duration * 100... | javascript | function(tween) {
var frames = tween.totalFrames;
var frame = tween.currentFrame;
var expected = (tween.currentFrame * tween.duration * 1000 / tween.totalFrames);
var elapsed = (new Date() - tween.getStartTime());
var tweak = 0;
if (elapsed < tween.duration * 100... | [
"function",
"(",
"tween",
")",
"{",
"var",
"frames",
"=",
"tween",
".",
"totalFrames",
";",
"var",
"frame",
"=",
"tween",
".",
"currentFrame",
";",
"var",
"expected",
"=",
"(",
"tween",
".",
"currentFrame",
"*",
"tween",
".",
"duration",
"*",
"1000",
"... | On the fly frame correction to keep animation on time.
@method correctFrame
@private
@param {Object} tween The Anim instance being corrected. | [
"On",
"the",
"fly",
"frame",
"correction",
"to",
"keep",
"animation",
"on",
"time",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L635-L654 | |
42,721 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function (t, b, c, d) {
return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b;
} | javascript | function (t, b, c, d) {
return c - YAHOO.util.Easing.bounceOut(d-t, 0, c, d) + b;
} | [
"function",
"(",
"t",
",",
"b",
",",
"c",
",",
"d",
")",
"{",
"return",
"c",
"-",
"YAHOO",
".",
"util",
".",
"Easing",
".",
"bounceOut",
"(",
"d",
"-",
"t",
",",
"0",
",",
"c",
",",
"d",
")",
"+",
"b",
";",
"}"
] | Bounce off of start.
@method bounceIn
@param {Number} t Time value used to compute current value
@param {Number} b Starting value
@param {Number} c Delta between start and end values
@param {Number} d Total length of animation
@return {Number} The computed value for the current animation frame | [
"Bounce",
"off",
"of",
"start",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L1124-L1126 | |
42,722 | neyric/webhookit | public/javascripts/yui/animation/animation-debug.js | function (t, b, c, d) {
if (t < d/2) {
return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b;
}
return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b;
} | javascript | function (t, b, c, d) {
if (t < d/2) {
return YAHOO.util.Easing.bounceIn(t*2, 0, c, d) * .5 + b;
}
return YAHOO.util.Easing.bounceOut(t*2-d, 0, c, d) * .5 + c*.5 + b;
} | [
"function",
"(",
"t",
",",
"b",
",",
"c",
",",
"d",
")",
"{",
"if",
"(",
"t",
"<",
"d",
"/",
"2",
")",
"{",
"return",
"YAHOO",
".",
"util",
".",
"Easing",
".",
"bounceIn",
"(",
"t",
"*",
"2",
",",
"0",
",",
"c",
",",
"d",
")",
"*",
".5"... | Bounces off start and end.
@method bounceBoth
@param {Number} t Time value used to compute current value
@param {Number} b Starting value
@param {Number} c Delta between start and end values
@param {Number} d Total length of animation
@return {Number} The computed value for the current animation frame | [
"Bounces",
"off",
"start",
"and",
"end",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/animation/animation-debug.js#L1157-L1162 | |
42,723 | neyric/webhookit | public/javascripts/yui/profilerviewer/profilerviewer.js | function(n) {
var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000;
return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);
} | javascript | function(n) {
var a = (n === Math.floor(n)) ? n : (Math.round(n*1000))/1000;
return (a + " " + YAHOO.widget.ProfilerViewer.STRINGS.millisecondsAbbrev);
} | [
"function",
"(",
"n",
")",
"{",
"var",
"a",
"=",
"(",
"n",
"===",
"Math",
".",
"floor",
"(",
"n",
")",
")",
"?",
"n",
":",
"(",
"Math",
".",
"round",
"(",
"n",
"*",
"1000",
")",
")",
"/",
"1000",
";",
"return",
"(",
"a",
"+",
"\" \"",
"+"... | Function used to format numbers in milliseconds
for chart; must be publicly accessible, per Charts spec.
@static
@property timeAxisLabelFunction
@type function
@private | [
"Function",
"used",
"to",
"format",
"numbers",
"in",
"milliseconds",
"for",
"chart",
";",
"must",
"be",
"publicly",
"accessible",
"per",
"Charts",
"spec",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L169-L172 | |
42,724 | neyric/webhookit | public/javascripts/yui/profilerviewer/profilerviewer.js | function(n) {
var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100;
return (a + "%");
} | javascript | function(n) {
var a = (n === Math.floor(n)) ? n : (Math.round(n*100))/100;
return (a + "%");
} | [
"function",
"(",
"n",
")",
"{",
"var",
"a",
"=",
"(",
"n",
"===",
"Math",
".",
"floor",
"(",
"n",
")",
")",
"?",
"n",
":",
"(",
"Math",
".",
"round",
"(",
"n",
"*",
"100",
")",
")",
"/",
"100",
";",
"return",
"(",
"a",
"+",
"\"%\"",
")",
... | Function used to format percent numbers for chart; must
be publicly accessible, per Charts spec.
@static
@property percentAxisLabelFunction
@type function
@private | [
"Function",
"used",
"to",
"format",
"percent",
"numbers",
"for",
"chart",
";",
"must",
"be",
"publicly",
"accessible",
"per",
"Charts",
"spec",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L182-L185 | |
42,725 | neyric/webhookit | public/javascripts/yui/profilerviewer/profilerviewer.js | function(arr){
var ct = 0;
for(var i = 0; i < arr.length; ct+=arr[i++]){}
return ct;
} | javascript | function(arr){
var ct = 0;
for(var i = 0; i < arr.length; ct+=arr[i++]){}
return ct;
} | [
"function",
"(",
"arr",
")",
"{",
"var",
"ct",
"=",
"0",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"arr",
".",
"length",
";",
"ct",
"+=",
"arr",
"[",
"i",
"++",
"]",
")",
"{",
"}",
"return",
"ct",
";",
"}"
] | Utility function for array sums.
@method _arraySum
@private | [
"Utility",
"function",
"for",
"array",
"sums",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L599-L603 | |
42,726 | neyric/webhookit | public/javascripts/yui/profilerviewer/profilerviewer.js | function(elCell, oRecord, oColumn, oData) {
var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000;
elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev;
} | javascript | function(elCell, oRecord, oColumn, oData) {
var a = (oData === Math.floor(oData)) ? oData : (Math.round(oData*1000))/1000;
elCell.innerHTML = a + " " + PV.STRINGS.millisecondsAbbrev;
} | [
"function",
"(",
"elCell",
",",
"oRecord",
",",
"oColumn",
",",
"oData",
")",
"{",
"var",
"a",
"=",
"(",
"oData",
"===",
"Math",
".",
"floor",
"(",
"oData",
")",
")",
"?",
"oData",
":",
"(",
"Math",
".",
"round",
"(",
"oData",
"*",
"1000",
")",
... | Set up the DataTable. | [
"Set",
"up",
"the",
"DataTable",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profilerviewer/profilerviewer.js#L680-L683 | |
42,727 | neyric/webhookit | public/javascripts/inputex/js/rpc/yql.js | function(yql, callback) {
var ud = 'yqlexecuteconsole'+(inputEx.YQL.query_index)++,
API = 'http://query.yahooapis.com/v1/public/yql?q=',
url = API + window.encodeURIComponent(yql) + '&format=json&diagnostics=true&callback=' + ud;
window[ud]= function(o){ callback && callback(o); };
document.b... | javascript | function(yql, callback) {
var ud = 'yqlexecuteconsole'+(inputEx.YQL.query_index)++,
API = 'http://query.yahooapis.com/v1/public/yql?q=',
url = API + window.encodeURIComponent(yql) + '&format=json&diagnostics=true&callback=' + ud;
window[ud]= function(o){ callback && callback(o); };
document.b... | [
"function",
"(",
"yql",
",",
"callback",
")",
"{",
"var",
"ud",
"=",
"'yqlexecuteconsole'",
"+",
"(",
"inputEx",
".",
"YQL",
".",
"query_index",
")",
"++",
",",
"API",
"=",
"'http://query.yahooapis.com/v1/public/yql?q='",
",",
"url",
"=",
"API",
"+",
"window... | Generate the jsonp request to YQL
@param {String} yql YQL query string
@param {Function} callback Callback function | [
"Generate",
"the",
"jsonp",
"request",
"to",
"YQL"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/yql.js#L25-L36 | |
42,728 | neyric/webhookit | public/javascripts/inputex/js/rpc/yql.js | function(codeUrl, callback) {
var url = ("http://javascript.neyric.com/yql/js.php?url="+window.encodeURIComponent(codeUrl)).replace(new RegExp("'","g"),"\\'");
var yql = "use '"+url+"' as yqlexconsole; select * from yqlexconsole;";
inputEx.YQL.query(yql,callback);
} | javascript | function(codeUrl, callback) {
var url = ("http://javascript.neyric.com/yql/js.php?url="+window.encodeURIComponent(codeUrl)).replace(new RegExp("'","g"),"\\'");
var yql = "use '"+url+"' as yqlexconsole; select * from yqlexconsole;";
inputEx.YQL.query(yql,callback);
} | [
"function",
"(",
"codeUrl",
",",
"callback",
")",
"{",
"var",
"url",
"=",
"(",
"\"http://javascript.neyric.com/yql/js.php?url=\"",
"+",
"window",
".",
"encodeURIComponent",
"(",
"codeUrl",
")",
")",
".",
"replace",
"(",
"new",
"RegExp",
"(",
"\"'\"",
",",
"\"g... | Dynamically build a XML from a URL and generate a dummy request for YQL
@param {String} codeUrl Url to a YQL-execute javascript file
@param {Function} callback Callback function | [
"Dynamically",
"build",
"a",
"XML",
"from",
"a",
"URL",
"and",
"generate",
"a",
"dummy",
"request",
"for",
"YQL"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/yql.js#L54-L58 | |
42,729 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(r, s) {
if (!s||!r) {
throw new Error("Augment failed, verify dependencies.");
}
//var a=[].concat(arguments);
var a=[r.prototype,s.prototype], i;
for (i=2;i<arguments.length;i=i+1) {
a.push(arguments[i]);
}
L.augmentObject.apply(t... | javascript | function(r, s) {
if (!s||!r) {
throw new Error("Augment failed, verify dependencies.");
}
//var a=[].concat(arguments);
var a=[r.prototype,s.prototype], i;
for (i=2;i<arguments.length;i=i+1) {
a.push(arguments[i]);
}
L.augmentObject.apply(t... | [
"function",
"(",
"r",
",",
"s",
")",
"{",
"if",
"(",
"!",
"s",
"||",
"!",
"r",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Augment failed, verify dependencies.\"",
")",
";",
"}",
"//var a=[].concat(arguments);",
"var",
"a",
"=",
"[",
"r",
".",
"prototype"... | Same as YAHOO.lang.augmentObject, except it only applies prototype properties
@see YAHOO.lang.augmentObject
@method augmentProto
@static
@param {Function} r the object to receive the augmentation
@param {Function} s the object that supplies the properties to augment
@param {String*|boolean} arguments zero or more pr... | [
"Same",
"as",
"YAHOO",
".",
"lang",
".",
"augmentObject",
"except",
"it",
"only",
"applies",
"prototype",
"properties"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L705-L715 | |
42,730 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(o, d) {
var i,len,s=[],OBJ="{...}",FUN="f(){...}",
COMMA=', ', ARROW=' => ';
// Cast non-objects to string
// Skip dates because the std toString is what we want
// Skip HTMLElement-like objects because trying to dump
// an element will cause an unhandled e... | javascript | function(o, d) {
var i,len,s=[],OBJ="{...}",FUN="f(){...}",
COMMA=', ', ARROW=' => ';
// Cast non-objects to string
// Skip dates because the std toString is what we want
// Skip HTMLElement-like objects because trying to dump
// an element will cause an unhandled e... | [
"function",
"(",
"o",
",",
"d",
")",
"{",
"var",
"i",
",",
"len",
",",
"s",
"=",
"[",
"]",
",",
"OBJ",
"=",
"\"{...}\"",
",",
"FUN",
"=",
"\"f(){...}\"",
",",
"COMMA",
"=",
"', '",
",",
"ARROW",
"=",
"' => '",
";",
"// Cast non-objects to string",
... | Returns a simple string representation of the object or array.
Other types of objects will be returned unprocessed. Arrays
are expected to be indexed. Use object notation for
associative arrays.
@method dump
@since 2.3.0
@param o {Object} The object to dump
@param d {int} How deep to recurse child objects, default 3
... | [
"Returns",
"a",
"simple",
"string",
"representation",
"of",
"the",
"object",
"or",
"array",
".",
"Other",
"types",
"of",
"objects",
"will",
"be",
"returned",
"unprocessed",
".",
"Arrays",
"are",
"expected",
"to",
"be",
"indexed",
".",
"Use",
"object",
"notat... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L729-L784 | |
42,731 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function() {
var o={}, a=arguments, l=a.length, i;
for (i=0; i<l; i=i+1) {
L.augmentObject(o, a[i], true);
}
return o;
} | javascript | function() {
var o={}, a=arguments, l=a.length, i;
for (i=0; i<l; i=i+1) {
L.augmentObject(o, a[i], true);
}
return o;
} | [
"function",
"(",
")",
"{",
"var",
"o",
"=",
"{",
"}",
",",
"a",
"=",
"arguments",
",",
"l",
"=",
"a",
".",
"length",
",",
"i",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"l",
";",
"i",
"=",
"i",
"+",
"1",
")",
"{",
"L",
".",
"augm... | Returns a new object containing all of the properties of
all the supplied objects. The properties from later objects
will overwrite those in earlier objects.
@method merge
@since 2.3.0
@param arguments {Object*} the objects to merge
@return the new merged object | [
"Returns",
"a",
"new",
"object",
"containing",
"all",
"of",
"the",
"properties",
"of",
"all",
"the",
"supplied",
"objects",
".",
"The",
"properties",
"from",
"later",
"objects",
"will",
"overwrite",
"those",
"in",
"earlier",
"objects",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L912-L918 | |
42,732 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(when, o, fn, data, periodic) {
when = when || 0;
o = o || {};
var m=fn, d=data, f, r;
if (L.isString(fn)) {
m = o[fn];
}
if (!m) {
throw new TypeError("method undefined");
}
if (d && !L.isArray(d)) {
d = [da... | javascript | function(when, o, fn, data, periodic) {
when = when || 0;
o = o || {};
var m=fn, d=data, f, r;
if (L.isString(fn)) {
m = o[fn];
}
if (!m) {
throw new TypeError("method undefined");
}
if (d && !L.isArray(d)) {
d = [da... | [
"function",
"(",
"when",
",",
"o",
",",
"fn",
",",
"data",
",",
"periodic",
")",
"{",
"when",
"=",
"when",
"||",
"0",
";",
"o",
"=",
"o",
"||",
"{",
"}",
";",
"var",
"m",
"=",
"fn",
",",
"d",
"=",
"data",
",",
"f",
",",
"r",
";",
"if",
... | Executes the supplied function in the context of the supplied
object 'when' milliseconds later. Executes the function a
single time unless periodic is set to true.
@method later
@since 2.4.0
@param when {int} the number of milliseconds to wait until the fn
is executed
@param o the context object
@param fn {Function|St... | [
"Executes",
"the",
"supplied",
"function",
"in",
"the",
"context",
"of",
"the",
"supplied",
"object",
"when",
"milliseconds",
"later",
".",
"Executes",
"the",
"function",
"a",
"single",
"time",
"unless",
"periodic",
"is",
"set",
"to",
"true",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L941-L974 | |
42,733 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(type, attr, win) {
var w = win || window, d=w.document, n=d.createElement(type);
for (var i in attr) {
if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
n.setAttribute(i, attr[i]);
}
}
return n;
} | javascript | function(type, attr, win) {
var w = win || window, d=w.document, n=d.createElement(type);
for (var i in attr) {
if (attr[i] && YAHOO.lang.hasOwnProperty(attr, i)) {
n.setAttribute(i, attr[i]);
}
}
return n;
} | [
"function",
"(",
"type",
",",
"attr",
",",
"win",
")",
"{",
"var",
"w",
"=",
"win",
"||",
"window",
",",
"d",
"=",
"w",
".",
"document",
",",
"n",
"=",
"d",
".",
"createElement",
"(",
"type",
")",
";",
"for",
"(",
"var",
"i",
"in",
"attr",
")... | Generates an HTML element, this is not appended to a document
@method _node
@param type {string} the type of element
@param attr {string} the attributes
@param win {Window} optional window to create the element in
@return {HTMLElement} the generated node
@private | [
"Generates",
"an",
"HTML",
"element",
"this",
"is",
"not",
"appended",
"to",
"a",
"document"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1139-L1149 | |
42,734 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(url, win, attributes) {
var o = {
id: "yui__dyn_" + (nidx++),
type: "text/css",
rel: "stylesheet",
href: url
};
if (attributes) {
lang.augmentObject(o, attributes);
}
return _node("link", o, win);
} | javascript | function(url, win, attributes) {
var o = {
id: "yui__dyn_" + (nidx++),
type: "text/css",
rel: "stylesheet",
href: url
};
if (attributes) {
lang.augmentObject(o, attributes);
}
return _node("link", o, win);
} | [
"function",
"(",
"url",
",",
"win",
",",
"attributes",
")",
"{",
"var",
"o",
"=",
"{",
"id",
":",
"\"yui__dyn_\"",
"+",
"(",
"nidx",
"++",
")",
",",
"type",
":",
"\"text/css\"",
",",
"rel",
":",
"\"stylesheet\"",
",",
"href",
":",
"url",
"}",
";",
... | Generates a link node
@method _linkNode
@param url {string} the url for the css file
@param win {Window} optional window to create the node in
@return {HTMLElement} the generated node
@private | [
"Generates",
"a",
"link",
"node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1159-L1173 | |
42,735 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(url, win, attributes) {
var o = {
id: "yui__dyn_" + (nidx++),
type: "text/javascript",
src: url
};
if (attributes) {
lang.augmentObject(o, attributes);
}
return _node("script", o, win);
} | javascript | function(url, win, attributes) {
var o = {
id: "yui__dyn_" + (nidx++),
type: "text/javascript",
src: url
};
if (attributes) {
lang.augmentObject(o, attributes);
}
return _node("script", o, win);
} | [
"function",
"(",
"url",
",",
"win",
",",
"attributes",
")",
"{",
"var",
"o",
"=",
"{",
"id",
":",
"\"yui__dyn_\"",
"+",
"(",
"nidx",
"++",
")",
",",
"type",
":",
"\"text/javascript\"",
",",
"src",
":",
"url",
"}",
";",
"if",
"(",
"attributes",
")",... | Generates a script node
@method _scriptNode
@param url {string} the url for the script file
@param win {Window} optional window to create the node in
@return {HTMLElement} the generated node
@private | [
"Generates",
"a",
"script",
"node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1183-L1195 | |
42,736 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(q, msg) {
return {
tId: q.tId,
win: q.win,
data: q.data,
nodes: q.nodes,
msg: msg,
purge: function() {
_purge(this.tId);
}
};
} | javascript | function(q, msg) {
return {
tId: q.tId,
win: q.win,
data: q.data,
nodes: q.nodes,
msg: msg,
purge: function() {
_purge(this.tId);
}
};
} | [
"function",
"(",
"q",
",",
"msg",
")",
"{",
"return",
"{",
"tId",
":",
"q",
".",
"tId",
",",
"win",
":",
"q",
".",
"win",
",",
"data",
":",
"q",
".",
"data",
",",
"nodes",
":",
"q",
".",
"nodes",
",",
"msg",
":",
"msg",
",",
"purge",
":",
... | Returns the data payload for callback functions
@method _returnData
@private | [
"Returns",
"the",
"data",
"payload",
"for",
"callback",
"functions"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1202-L1213 | |
42,737 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(id) {
var q = queues[id];
q.finished = true;
if (q.aborted) {
var msg = "transaction " + id + " was aborted";
_fail(id, msg);
return;
}
// execute success callback
if (q.onSuccess) {
var sc=q.scope || q.win;
... | javascript | function(id) {
var q = queues[id];
q.finished = true;
if (q.aborted) {
var msg = "transaction " + id + " was aborted";
_fail(id, msg);
return;
}
// execute success callback
if (q.onSuccess) {
var sc=q.scope || q.win;
... | [
"function",
"(",
"id",
")",
"{",
"var",
"q",
"=",
"queues",
"[",
"id",
"]",
";",
"q",
".",
"finished",
"=",
"true",
";",
"if",
"(",
"q",
".",
"aborted",
")",
"{",
"var",
"msg",
"=",
"\"transaction \"",
"+",
"id",
"+",
"\" was aborted\"",
";",
"_f... | The request is complete, so executing the requester's callback
@method _finish
@param id {string} the id of the request
@private | [
"The",
"request",
"is",
"complete",
"so",
"executing",
"the",
"requester",
"s",
"callback"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1248-L1263 | |
42,738 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(id, loaded) {
var q = queues[id];
if (q.timer) {
// Y.log('cancel timer');
q.timer.cancel();
}
if (q.aborted) {
var msg = "transaction " + id + " was aborted";
_fail(id, msg);
return;
}
if (loaded) {
... | javascript | function(id, loaded) {
var q = queues[id];
if (q.timer) {
// Y.log('cancel timer');
q.timer.cancel();
}
if (q.aborted) {
var msg = "transaction " + id + " was aborted";
_fail(id, msg);
return;
}
if (loaded) {
... | [
"function",
"(",
"id",
",",
"loaded",
")",
"{",
"var",
"q",
"=",
"queues",
"[",
"id",
"]",
";",
"if",
"(",
"q",
".",
"timer",
")",
"{",
"// Y.log('cancel timer');",
"q",
".",
"timer",
".",
"cancel",
"(",
")",
";",
"}",
"if",
"(",
"q",
".",
"abo... | Loads the next item for a given request
@method _next
@param id {string} the id of the request
@param loaded {string} the url that was just loaded, if any
@private | [
"Loads",
"the",
"next",
"item",
"for",
"a",
"given",
"request"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1286-L1385 | |
42,739 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function() {
if (purging) {
return;
}
purging = true;
for (var i in queues) {
var q = queues[i];
if (q.autopurge && q.finished) {
_purge(q.tId);
delete queues[i];
}
}
purging = false;
} | javascript | function() {
if (purging) {
return;
}
purging = true;
for (var i in queues) {
var q = queues[i];
if (q.autopurge && q.finished) {
_purge(q.tId);
delete queues[i];
}
}
purging = false;
} | [
"function",
"(",
")",
"{",
"if",
"(",
"purging",
")",
"{",
"return",
";",
"}",
"purging",
"=",
"true",
";",
"for",
"(",
"var",
"i",
"in",
"queues",
")",
"{",
"var",
"q",
"=",
"queues",
"[",
"i",
"]",
";",
"if",
"(",
"q",
".",
"autopurge",
"&&... | Removes processed queues and corresponding nodes
@method _autoPurge
@private | [
"Removes",
"processed",
"queues",
"and",
"corresponding",
"nodes"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1392-L1408 | |
42,740 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(tId) {
if (queues[tId]) {
var q = queues[tId],
nodes = q.nodes,
l = nodes.length,
d = q.win.document,
h = d.getElementsByTagName("head")[0],
sib, i, node, attr;
if (q.insertBefor... | javascript | function(tId) {
if (queues[tId]) {
var q = queues[tId],
nodes = q.nodes,
l = nodes.length,
d = q.win.document,
h = d.getElementsByTagName("head")[0],
sib, i, node, attr;
if (q.insertBefor... | [
"function",
"(",
"tId",
")",
"{",
"if",
"(",
"queues",
"[",
"tId",
"]",
")",
"{",
"var",
"q",
"=",
"queues",
"[",
"tId",
"]",
",",
"nodes",
"=",
"q",
".",
"nodes",
",",
"l",
"=",
"nodes",
".",
"length",
",",
"d",
"=",
"q",
".",
"win",
".",
... | Removes the nodes for the specified queue
@method _purge
@private | [
"Removes",
"the",
"nodes",
"for",
"the",
"specified",
"queue"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1415-L1447 | |
42,741 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(type, url, opts) {
var id = "q" + (qidx++);
opts = opts || {};
if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
_autoPurge();
}
queues[id] = lang.merge(opts, {
tId: id,
type: type,
url: url,
finished: false,
... | javascript | function(type, url, opts) {
var id = "q" + (qidx++);
opts = opts || {};
if (qidx % YAHOO.util.Get.PURGE_THRESH === 0) {
_autoPurge();
}
queues[id] = lang.merge(opts, {
tId: id,
type: type,
url: url,
finished: false,
... | [
"function",
"(",
"type",
",",
"url",
",",
"opts",
")",
"{",
"var",
"id",
"=",
"\"q\"",
"+",
"(",
"qidx",
"++",
")",
";",
"opts",
"=",
"opts",
"||",
"{",
"}",
";",
"if",
"(",
"qidx",
"%",
"YAHOO",
".",
"util",
".",
"Get",
".",
"PURGE_THRESH",
... | Saves the state for the request and begins loading
the requested urls
@method queue
@param type {string} the type of node to insert
@param url {string} the url to load
@param opts the hash of options for this request
@private | [
"Saves",
"the",
"state",
"for",
"the",
"request",
"and",
"begins",
"loading",
"the",
"requested",
"urls"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1458-L1492 | |
42,742 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(type, n, id, url, win, qlength, trackfn) {
var f = trackfn || _next;
// IE supports the readystatechange event for script and css nodes
if (ua.ie) {
n.onreadystatechange = function() {
var rs = this.readyState;
if ("loaded" === rs || "complet... | javascript | function(type, n, id, url, win, qlength, trackfn) {
var f = trackfn || _next;
// IE supports the readystatechange event for script and css nodes
if (ua.ie) {
n.onreadystatechange = function() {
var rs = this.readyState;
if ("loaded" === rs || "complet... | [
"function",
"(",
"type",
",",
"n",
",",
"id",
",",
"url",
",",
"win",
",",
"qlength",
",",
"trackfn",
")",
"{",
"var",
"f",
"=",
"trackfn",
"||",
"_next",
";",
"// IE supports the readystatechange event for script and css nodes",
"if",
"(",
"ua",
".",
"ie",
... | Detects when a node has been loaded. In the case of
script nodes, this does not guarantee that contained
script is ready to use.
@method _track
@param type {string} the type of node to track
@param n {HTMLElement} the node to track
@param id {string} the id of the request
@param url {string} the url that is being load... | [
"Detects",
"when",
"a",
"node",
"has",
"been",
"loaded",
".",
"In",
"the",
"case",
"of",
"script",
"nodes",
"this",
"does",
"not",
"guarantee",
"that",
"contained",
"script",
"is",
"ready",
"to",
"use",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L1510-L1588 | |
42,743 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(mm) {
if (!done[mm]) {
// Y.log(name + ' provides worker trying: ' + mm);
done[mm] = true;
// we always want the return value normal behavior
// (provides) for superseded modules.
lang.augmentOb... | javascript | function(mm) {
if (!done[mm]) {
// Y.log(name + ' provides worker trying: ' + mm);
done[mm] = true;
// we always want the return value normal behavior
// (provides) for superseded modules.
lang.augmentOb... | [
"function",
"(",
"mm",
")",
"{",
"if",
"(",
"!",
"done",
"[",
"mm",
"]",
")",
"{",
"// Y.log(name + ' provides worker trying: ' + mm);",
"done",
"[",
"mm",
"]",
"=",
"true",
";",
"// we always want the return value normal behavior ",
"// (provides) for superseded module... | use worker to break cycles | [
"use",
"worker",
"to",
"break",
"cycles"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L2881-L2893 | |
42,744 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(o) {
if (o || this.dirty) {
this._config(o);
this._setup();
this._explode();
// this._skin(); // deprecated
if (this.allowRollup) {
this._rollup();
}
this._reduce();
... | javascript | function(o) {
if (o || this.dirty) {
this._config(o);
this._setup();
this._explode();
// this._skin(); // deprecated
if (this.allowRollup) {
this._rollup();
}
this._reduce();
... | [
"function",
"(",
"o",
")",
"{",
"if",
"(",
"o",
"||",
"this",
".",
"dirty",
")",
"{",
"this",
".",
"_config",
"(",
"o",
")",
";",
"this",
".",
"_setup",
"(",
")",
";",
"this",
".",
"_explode",
"(",
")",
";",
"// this._skin(); // deprecated",
"if",
... | Calculates the dependency tree, the result is stored in the sorted
property
@method calculate
@param o optional options object | [
"Calculates",
"the",
"dependency",
"tree",
"the",
"result",
"is",
"stored",
"in",
"the",
"sorted",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L2921-L2937 | |
42,745 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(aa, bb) {
var mm=info[aa];
if (loaded[bb] || !mm) {
return false;
}
var ii,
rr = mm.expanded,
after = mm.after,
other = info[bb],
optional = ... | javascript | function(aa, bb) {
var mm=info[aa];
if (loaded[bb] || !mm) {
return false;
}
var ii,
rr = mm.expanded,
after = mm.after,
other = info[bb],
optional = ... | [
"function",
"(",
"aa",
",",
"bb",
")",
"{",
"var",
"mm",
"=",
"info",
"[",
"aa",
"]",
";",
"if",
"(",
"loaded",
"[",
"bb",
"]",
"||",
"!",
"mm",
")",
"{",
"return",
"false",
";",
"}",
"var",
"ii",
",",
"rr",
"=",
"mm",
".",
"expanded",
",",... | returns true if b is not loaded, and is required directly or by means of modules it supersedes. | [
"returns",
"true",
"if",
"b",
"is",
"not",
"loaded",
"and",
"is",
"required",
"directly",
"or",
"by",
"means",
"of",
"modules",
"it",
"supersedes",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L3276-L3332 | |
42,746 | neyric/webhookit | public/javascripts/yui/yuiloader/yuiloader.js | function(str) {
var f = this.filter;
return (f) ? str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str;
} | javascript | function(str) {
var f = this.filter;
return (f) ? str.replace(new RegExp(f.searchExp, 'g'), f.replaceStr) : str;
} | [
"function",
"(",
"str",
")",
"{",
"var",
"f",
"=",
"this",
".",
"filter",
";",
"return",
"(",
"f",
")",
"?",
"str",
".",
"replace",
"(",
"new",
"RegExp",
"(",
"f",
".",
"searchExp",
",",
"'g'",
")",
",",
"f",
".",
"replaceStr",
")",
":",
"str",... | Applies filter
method _filter
@return {string} the filtered string
@private | [
"Applies",
"filter",
"method",
"_filter"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/yuiloader/yuiloader.js#L3859-L3862 | |
42,747 | neyric/webhookit | public/javascripts/inputex/js/fields/SelectTwiceField.js | function () {
var i, j, ilength, jlength, currentSubChoices, currentSubChoice, currentValue,
testValue, isDuplicateChoice, secondSelectChoices;
// object used in updateSecondSelectChoices
//
// * key : string representing a value in 1st select
// * value : array of values availab... | javascript | function () {
var i, j, ilength, jlength, currentSubChoices, currentSubChoice, currentValue,
testValue, isDuplicateChoice, secondSelectChoices;
// object used in updateSecondSelectChoices
//
// * key : string representing a value in 1st select
// * value : array of values availab... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"j",
",",
"ilength",
",",
"jlength",
",",
"currentSubChoices",
",",
"currentSubChoice",
",",
"currentValue",
",",
"testValue",
",",
"isDuplicateChoice",
",",
"secondSelectChoices",
";",
"// object used in updateSecondSelec... | Build two select fields | [
"Build",
"two",
"select",
"fields"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SelectTwiceField.js#L46-L106 | |
42,748 | neyric/webhookit | public/javascripts/inputex/js/fields/SelectTwiceField.js | function() {
var i, length, choicesList, secondSelectValues, testValue;
// allowed values in second select
secondSelectValues = this.valuesMatching[this.selects[0].getValue()];
// all choices in second select
choicesList = this.selects[1].choicesList;
for (i = 0, length = choicesList.l... | javascript | function() {
var i, length, choicesList, secondSelectValues, testValue;
// allowed values in second select
secondSelectValues = this.valuesMatching[this.selects[0].getValue()];
// all choices in second select
choicesList = this.selects[1].choicesList;
for (i = 0, length = choicesList.l... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"length",
",",
"choicesList",
",",
"secondSelectValues",
",",
"testValue",
";",
"// allowed values in second select",
"secondSelectValues",
"=",
"this",
".",
"valuesMatching",
"[",
"this",
".",
"selects",
"[",
"0",
"]"... | adapt choices of 2nd select relatively to 1st select value | [
"adapt",
"choices",
"of",
"2nd",
"select",
"relatively",
"to",
"1st",
"select",
"value"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SelectTwiceField.js#L137-L159 | |
42,749 | neyric/webhookit | public/javascripts/inputex/js/fields/SelectTwiceField.js | function() {
// if the field is empty :
if( this.getValue() === this.options.valueSeparator ) {
return this.options.required ? inputEx.stateRequired : inputEx.stateEmpty;
}
return this.validate() ? inputEx.stateValid : inputEx.stateInvalid;
} | javascript | function() {
// if the field is empty :
if( this.getValue() === this.options.valueSeparator ) {
return this.options.required ? inputEx.stateRequired : inputEx.stateEmpty;
}
return this.validate() ? inputEx.stateValid : inputEx.stateInvalid;
} | [
"function",
"(",
")",
"{",
"// if the field is empty :",
"if",
"(",
"this",
".",
"getValue",
"(",
")",
"===",
"this",
".",
"options",
".",
"valueSeparator",
")",
"{",
"return",
"this",
".",
"options",
".",
"required",
"?",
"inputEx",
".",
"stateRequired",
... | HACK because empty state value is this.options.valueSeparator | [
"HACK",
"because",
"empty",
"state",
"value",
"is",
"this",
".",
"options",
".",
"valueSeparator"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SelectTwiceField.js#L193-L199 | |
42,750 | 3rd-Eden/licenses | index.js | parse | function parse(name, options, fn) {
if ('function' === typeof options) {
fn = options;
options = null;
}
//
// Fix circular require.
//
if (!Registry) Registry = require('npm-registry');
options = options || {};
options.githulk = options.githulk || null;
options.order = options.order || ['re... | javascript | function parse(name, options, fn) {
if ('function' === typeof options) {
fn = options;
options = null;
}
//
// Fix circular require.
//
if (!Registry) Registry = require('npm-registry');
options = options || {};
options.githulk = options.githulk || null;
options.order = options.order || ['re... | [
"function",
"parse",
"(",
"name",
",",
"options",
",",
"fn",
")",
"{",
"if",
"(",
"'function'",
"===",
"typeof",
"options",
")",
"{",
"fn",
"=",
"options",
";",
"options",
"=",
"null",
";",
"}",
"//",
"// Fix circular require.",
"//",
"if",
"(",
"!",
... | Start searching for license information for the given module name.
Options:
- githulk: A pre-configured githulk instance.
- order: The order of resolving license information.
- npmjs: A pre-configured npm-registry instance.
- registry: A registry to use for the npmjs instance.
@param {Mixed} name The module name or ... | [
"Start",
"searching",
"for",
"license",
"information",
"for",
"the",
"given",
"module",
"name",
"."
] | 8f58b7700fd03de0e095cc408852fa12d1379c3f | https://github.com/3rd-Eden/licenses/blob/8f58b7700fd03de0e095cc408852fa12d1379c3f/index.js#L25-L93 |
42,751 | 3rd-Eden/licenses | index.js | fetch | function fetch(next) {
if ('string' !== typeof name) return next(undefined, name);
options.npmjs.packages.get(name, next);
} | javascript | function fetch(next) {
if ('string' !== typeof name) return next(undefined, name);
options.npmjs.packages.get(name, next);
} | [
"function",
"fetch",
"(",
"next",
")",
"{",
"if",
"(",
"'string'",
"!==",
"typeof",
"name",
")",
"return",
"next",
"(",
"undefined",
",",
"name",
")",
";",
"options",
".",
"npmjs",
".",
"packages",
".",
"get",
"(",
"name",
",",
"next",
")",
";",
"}... | Make sure that we have the correct contents to start searching for license information. | [
"Make",
"sure",
"that",
"we",
"have",
"the",
"correct",
"contents",
"to",
"start",
"searching",
"for",
"license",
"information",
"."
] | 8f58b7700fd03de0e095cc408852fa12d1379c3f | https://github.com/3rd-Eden/licenses/blob/8f58b7700fd03de0e095cc408852fa12d1379c3f/index.js#L52-L56 |
42,752 | 3rd-Eden/licenses | index.js | search | function search(data, next) {
if (!options.order.length) return next();
if (Array.isArray(data)) data = data[0];
debug('searching for licensing information for %s', data.name);
var parser, result, name;
async.doWhilst(function does(next) {
name = options.order.shift();
p... | javascript | function search(data, next) {
if (!options.order.length) return next();
if (Array.isArray(data)) data = data[0];
debug('searching for licensing information for %s', data.name);
var parser, result, name;
async.doWhilst(function does(next) {
name = options.order.shift();
p... | [
"function",
"search",
"(",
"data",
",",
"next",
")",
"{",
"if",
"(",
"!",
"options",
".",
"order",
".",
"length",
")",
"return",
"next",
"(",
")",
";",
"if",
"(",
"Array",
".",
"isArray",
"(",
"data",
")",
")",
"data",
"=",
"data",
"[",
"0",
"]... | Search for the correct way of parsing out the license information. | [
"Search",
"for",
"the",
"correct",
"way",
"of",
"parsing",
"out",
"the",
"license",
"information",
"."
] | 8f58b7700fd03de0e095cc408852fa12d1379c3f | https://github.com/3rd-Eden/licenses/blob/8f58b7700fd03de0e095cc408852fa12d1379c3f/index.js#L61-L91 |
42,753 | neyric/webhookit | public/javascripts/yui/dom/dom.js | function() {
var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
return h;
} | javascript | function() {
var scrollHeight = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollHeight : documentElement.scrollHeight,
h = Math.max(scrollHeight, Y.Dom.getViewportHeight());
return h;
} | [
"function",
"(",
")",
"{",
"var",
"scrollHeight",
"=",
"(",
"document",
"[",
"COMPAT_MODE",
"]",
"!=",
"CSS1_COMPAT",
"||",
"isSafari",
")",
"?",
"document",
".",
"body",
".",
"scrollHeight",
":",
"documentElement",
".",
"scrollHeight",
",",
"h",
"=",
"Mat... | Returns the height of the document.
@method getDocumentHeight
@return {Int} The height of the actual document (which includes the body and its margin). | [
"Returns",
"the",
"height",
"of",
"the",
"document",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L900-L905 | |
42,754 | neyric/webhookit | public/javascripts/yui/dom/dom.js | function() {
var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
return w;
} | javascript | function() {
var scrollWidth = (document[COMPAT_MODE] != CSS1_COMPAT || isSafari) ? document.body.scrollWidth : documentElement.scrollWidth,
w = Math.max(scrollWidth, Y.Dom.getViewportWidth());
return w;
} | [
"function",
"(",
")",
"{",
"var",
"scrollWidth",
"=",
"(",
"document",
"[",
"COMPAT_MODE",
"]",
"!=",
"CSS1_COMPAT",
"||",
"isSafari",
")",
"?",
"document",
".",
"body",
".",
"scrollWidth",
":",
"documentElement",
".",
"scrollWidth",
",",
"w",
"=",
"Math",... | Returns the width of the document.
@method getDocumentWidth
@return {Int} The width of the actual document (which includes the body and its margin). | [
"Returns",
"the",
"width",
"of",
"the",
"document",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L912-L916 | |
42,755 | neyric/webhookit | public/javascripts/yui/dom/dom.js | function() {
var width = self.innerWidth, // Safari
mode = document[COMPAT_MODE];
if (mode || isIE) { // IE, Gecko, Opera
width = (mode == CSS1_COMPAT) ?
documentElement.clientWidth : // Standards
docum... | javascript | function() {
var width = self.innerWidth, // Safari
mode = document[COMPAT_MODE];
if (mode || isIE) { // IE, Gecko, Opera
width = (mode == CSS1_COMPAT) ?
documentElement.clientWidth : // Standards
docum... | [
"function",
"(",
")",
"{",
"var",
"width",
"=",
"self",
".",
"innerWidth",
",",
"// Safari",
"mode",
"=",
"document",
"[",
"COMPAT_MODE",
"]",
";",
"if",
"(",
"mode",
"||",
"isIE",
")",
"{",
"// IE, Gecko, Opera",
"width",
"=",
"(",
"mode",
"==",
"CSS1... | Returns the current width of the viewport.
@method getViewportWidth
@return {Int} The width of the viewable area of the page (excludes scrollbars). | [
"Returns",
"the",
"current",
"width",
"of",
"the",
"viewport",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L942-L952 | |
42,756 | neyric/webhookit | public/javascripts/yui/dom/dom.js | function(node, className) {
node = Y.Dom.get(node);
if (!node) {
return null;
}
var method = function(el) { return Y.Dom.hasClass(el, className); };
return Y.Dom.getAncestorBy(node, method);
} | javascript | function(node, className) {
node = Y.Dom.get(node);
if (!node) {
return null;
}
var method = function(el) { return Y.Dom.hasClass(el, className); };
return Y.Dom.getAncestorBy(node, method);
} | [
"function",
"(",
"node",
",",
"className",
")",
"{",
"node",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"node",
")",
";",
"if",
"(",
"!",
"node",
")",
"{",
"return",
"null",
";",
"}",
"var",
"method",
"=",
"function",
"(",
"el",
")",
"{",
"return",... | Returns the nearest ancestor with the given className.
@method getAncestorByClassName
@param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point
@param {String} className
@return {Object} HTMLElement | [
"Returns",
"the",
"nearest",
"ancestor",
"with",
"the",
"given",
"className",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L979-L986 | |
42,757 | neyric/webhookit | public/javascripts/yui/dom/dom.js | function(node, tagName) {
node = Y.Dom.get(node);
if (!node) {
return null;
}
var method = function(el) {
return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase();
};
return Y.Dom.getAncestorBy(no... | javascript | function(node, tagName) {
node = Y.Dom.get(node);
if (!node) {
return null;
}
var method = function(el) {
return el[TAG_NAME] && el[TAG_NAME].toUpperCase() == tagName.toUpperCase();
};
return Y.Dom.getAncestorBy(no... | [
"function",
"(",
"node",
",",
"tagName",
")",
"{",
"node",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"node",
")",
";",
"if",
"(",
"!",
"node",
")",
"{",
"return",
"null",
";",
"}",
"var",
"method",
"=",
"function",
"(",
"el",
")",
"{",
"return",
... | Returns the nearest ancestor with the given tagName.
@method getAncestorByTagName
@param {String | HTMLElement} node The HTMLElement or an ID to use as the starting point
@param {String} tagName
@return {Object} HTMLElement | [
"Returns",
"the",
"nearest",
"ancestor",
"with",
"the",
"given",
"tagName",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L995-L1005 | |
42,758 | neyric/webhookit | public/javascripts/yui/dom/dom.js | function(newNode, referenceNode) {
newNode = Y.Dom.get(newNode);
referenceNode = Y.Dom.get(referenceNode);
if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
return null;
}
return referenceNode[PARENT_NODE].... | javascript | function(newNode, referenceNode) {
newNode = Y.Dom.get(newNode);
referenceNode = Y.Dom.get(referenceNode);
if (!newNode || !referenceNode || !referenceNode[PARENT_NODE]) {
return null;
}
return referenceNode[PARENT_NODE].... | [
"function",
"(",
"newNode",
",",
"referenceNode",
")",
"{",
"newNode",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"newNode",
")",
";",
"referenceNode",
"=",
"Y",
".",
"Dom",
".",
"get",
"(",
"referenceNode",
")",
";",
"if",
"(",
"!",
"newNode",
"||",
"... | Inserts the new node as the previous sibling of the reference node
@method insertBefore
@param {String | HTMLElement} newNode The node to be inserted
@param {String | HTMLElement} referenceNode The node to insert the new node before
@return {HTMLElement} The node that was inserted (or null if insert fails) | [
"Inserts",
"the",
"new",
"node",
"as",
"the",
"previous",
"sibling",
"of",
"the",
"reference",
"node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/dom/dom.js#L1196-L1205 | |
42,759 | neyric/webhookit | public/javascripts/yui/stylesheet/stylesheet.js | function (sel) {
var rule,css;
if (lang.isString(sel)) {
// IE's addRule doesn't support multiple comma delimited
// selectors so rules are mapped internally by atomic selectors
rule = cssRules[sel.split(/\s*,\s*/)[0]];
return rul... | javascript | function (sel) {
var rule,css;
if (lang.isString(sel)) {
// IE's addRule doesn't support multiple comma delimited
// selectors so rules are mapped internally by atomic selectors
rule = cssRules[sel.split(/\s*,\s*/)[0]];
return rul... | [
"function",
"(",
"sel",
")",
"{",
"var",
"rule",
",",
"css",
";",
"if",
"(",
"lang",
".",
"isString",
"(",
"sel",
")",
")",
"{",
"// IE's addRule doesn't support multiple comma delimited",
"// selectors so rules are mapped internally by atomic selectors",
"rule",
"=",
... | Get the current cssText for a rule or the entire sheet. If the
selector param is supplied, only the cssText for that rule will be
returned, if found. If the selector string targets multiple
selectors separated by commas, the cssText of the first rule only
will be returned. If no selector string, the stylesheet's ful... | [
"Get",
"the",
"current",
"cssText",
"for",
"a",
"rule",
"or",
"the",
"entire",
"sheet",
".",
"If",
"the",
"selector",
"param",
"is",
"supplied",
"only",
"the",
"cssText",
"for",
"that",
"rule",
"will",
"be",
"returned",
"if",
"found",
".",
"If",
"the",
... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/stylesheet/stylesheet.js#L406-L425 | |
42,760 | neyric/webhookit | public/javascripts/yui/stylesheet/stylesheet.js | function (name,sheet) {
return !!(name && sheet instanceof StyleSheet &&
!sheets[name] && (sheets[name] = sheet));
} | javascript | function (name,sheet) {
return !!(name && sheet instanceof StyleSheet &&
!sheets[name] && (sheets[name] = sheet));
} | [
"function",
"(",
"name",
",",
"sheet",
")",
"{",
"return",
"!",
"!",
"(",
"name",
"&&",
"sheet",
"instanceof",
"StyleSheet",
"&&",
"!",
"sheets",
"[",
"name",
"]",
"&&",
"(",
"sheets",
"[",
"name",
"]",
"=",
"sheet",
")",
")",
";",
"}"
] | Registers a StyleSheet instance in the static registry by the given name
@method StyleSheet.register
@param name {String} the name to assign the StyleSheet in the registry
@param sheet {StyleSheet} The StyleSheet instance
@return {Boolean} false if no name or sheet is not a StyleSheet
instance. true otherwise.
@static | [
"Registers",
"a",
"StyleSheet",
"instance",
"in",
"the",
"static",
"registry",
"by",
"the",
"given",
"name"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/stylesheet/stylesheet.js#L502-L505 | |
42,761 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function(el, node) {
this.logger.log("animating expand");
if (this._expandAnim && this._animCount < this.maxAnim) {
// this.locked = true;
var tree = this;
var a = Widget.TVAnim.getAnim(this._expandAnim, el,
function() { tree.expandComple... | javascript | function(el, node) {
this.logger.log("animating expand");
if (this._expandAnim && this._animCount < this.maxAnim) {
// this.locked = true;
var tree = this;
var a = Widget.TVAnim.getAnim(this._expandAnim, el,
function() { tree.expandComple... | [
"function",
"(",
"el",
",",
"node",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"animating expand\"",
")",
";",
"if",
"(",
"this",
".",
"_expandAnim",
"&&",
"this",
".",
"_animCount",
"<",
"this",
".",
"maxAnim",
")",
"{",
"// this.locked = true;... | Perform the expand animation if configured, or just show the
element if not configured or too many animations are in progress
@method animateExpand
@param el {HTMLElement} the element to animate
@param node {YAHOO.util.Node} the node that was expanded
@return {boolean} true if animation could be invoked, false otherwis... | [
"Perform",
"the",
"expand",
"animation",
"if",
"configured",
"or",
"just",
"show",
"the",
"element",
"if",
"not",
"configured",
"or",
"too",
"many",
"animations",
"are",
"in",
"progress"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L182-L203 | |
42,762 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function(el, node) {
this.logger.log("animating collapse");
if (this._collapseAnim && this._animCount < this.maxAnim) {
// this.locked = true;
var tree = this;
var a = Widget.TVAnim.getAnim(this._collapseAnim, el,
function() { tree.collap... | javascript | function(el, node) {
this.logger.log("animating collapse");
if (this._collapseAnim && this._animCount < this.maxAnim) {
// this.locked = true;
var tree = this;
var a = Widget.TVAnim.getAnim(this._collapseAnim, el,
function() { tree.collap... | [
"function",
"(",
"el",
",",
"node",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"animating collapse\"",
")",
";",
"if",
"(",
"this",
".",
"_collapseAnim",
"&&",
"this",
".",
"_animCount",
"<",
"this",
".",
"maxAnim",
")",
"{",
"// this.locked = t... | Perform the collapse animation if configured, or just show the
element if not configured or too many animations are in progress
@method animateCollapse
@param el {HTMLElement} the element to animate
@param node {YAHOO.util.Node} the node that was expanded
@return {boolean} true if animation could be invoked, false othe... | [
"Perform",
"the",
"collapse",
"animation",
"if",
"configured",
"or",
"just",
"show",
"the",
"element",
"if",
"not",
"configured",
"or",
"too",
"many",
"animations",
"are",
"in",
"progress"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L213-L234 | |
42,763 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function(node) {
if (node.expanded) {
// wait until the animation is complete before deleting to
// avoid javascript errors
if (this._collapseAnim) {
this.subscribe("animComplete",
this._removeChildren_animComplete, this, true);
... | javascript | function(node) {
if (node.expanded) {
// wait until the animation is complete before deleting to
// avoid javascript errors
if (this._collapseAnim) {
this.subscribe("animComplete",
this._removeChildren_animComplete, this, true);
... | [
"function",
"(",
"node",
")",
"{",
"if",
"(",
"node",
".",
"expanded",
")",
"{",
"// wait until the animation is complete before deleting to",
"// avoid javascript errors",
"if",
"(",
"this",
".",
"_collapseAnim",
")",
"{",
"this",
".",
"subscribe",
"(",
"\"animComp... | Deletes this nodes child collection, recursively. Also collapses
the node, and resets the dynamic load flag. The primary use for
this method is to purge a node and allow it to fetch its data
dynamically again.
@method removeChildren
@param {Node} node the node to purge | [
"Deletes",
"this",
"nodes",
"child",
"collection",
"recursively",
".",
"Also",
"collapses",
"the",
"node",
"and",
"resets",
"the",
"dynamic",
"load",
"flag",
".",
"The",
"primary",
"use",
"for",
"this",
"method",
"is",
"to",
"purge",
"a",
"node",
"and",
"a... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L1130-L1158 | |
42,764 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function(node) {
this.logger.log("insertAfter: " + node);
var p = node.parent;
if (p) {
if (this.tree) {
this.tree.popNode(this);
}
var refIndex = node.isChildOf(p);
this.logger.log(refIndex);
if (!node.nextSibling) {... | javascript | function(node) {
this.logger.log("insertAfter: " + node);
var p = node.parent;
if (p) {
if (this.tree) {
this.tree.popNode(this);
}
var refIndex = node.isChildOf(p);
this.logger.log(refIndex);
if (!node.nextSibling) {... | [
"function",
"(",
"node",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"insertAfter: \"",
"+",
"node",
")",
";",
"var",
"p",
"=",
"node",
".",
"parent",
";",
"if",
"(",
"p",
")",
"{",
"if",
"(",
"this",
".",
"tree",
")",
"{",
"this",
".",... | Inserts this node after the supplied node
@method insertAfter
@param node {Node} the node to insert after
@return {Node} the inserted node | [
"Inserts",
"this",
"node",
"after",
"the",
"supplied",
"node"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L1836-L1864 | |
42,765 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function() {
// this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded);
if (this.isLoading) {
this.logger.log("returning the loading icon");
return "ygtvloading";
} else {
// location top or bottom, middle nodes al... | javascript | function() {
// this.logger.log("No children, " + " isDyanmic: " + this.isDynamic() + " expanded: " + this.expanded);
if (this.isLoading) {
this.logger.log("returning the loading icon");
return "ygtvloading";
} else {
// location top or bottom, middle nodes al... | [
"function",
"(",
")",
"{",
"// this.logger.log(\"No children, \" + \" isDyanmic: \" + this.isDynamic() + \" expanded: \" + this.expanded);",
"if",
"(",
"this",
".",
"isLoading",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"returning the loading icon\"",
")",
";",
"r... | Returns the css style name for the toggle
@method getStyle
@return {string} the css class for this node's toggle | [
"Returns",
"the",
"css",
"style",
"name",
"for",
"the",
"toggle"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L2154-L2173 | |
42,766 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function() {
this.logger.log("rendering children for " + this.index);
var node = this;
if (this.isDynamic() && !this.dynamicLoadComplete) {
this.isLoading = true;
this.tree.locked = true;
if (this.dataLoader) {
this.logger.log("Using dynami... | javascript | function() {
this.logger.log("rendering children for " + this.index);
var node = this;
if (this.isDynamic() && !this.dynamicLoadComplete) {
this.isLoading = true;
this.tree.locked = true;
if (this.dataLoader) {
this.logger.log("Using dynami... | [
"function",
"(",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"rendering children for \"",
"+",
"this",
".",
"index",
")",
";",
"var",
"node",
"=",
"this",
";",
"if",
"(",
"this",
".",
"isDynamic",
"(",
")",
"&&",
"!",
"this",
".",
"dynamicLoa... | Generates the markup for the child nodes. This is not done until the node
is expanded.
@method renderChildren
@return {string} the html for this node's children
@private | [
"Generates",
"the",
"markup",
"for",
"the",
"child",
"nodes",
".",
"This",
"is",
"not",
"done",
"until",
"the",
"node",
"is",
"expanded",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L2373-L2415 | |
42,767 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function() {
this.logger.log(this.index + " loadComplete, children: " + this.children.length);
this.getChildrenEl().innerHTML = this.completeRender();
if (this.propagateHighlightDown) {
if (this.highlightState === 1 && !this.tree.singleNodeHighlight) {
for (var i = 0; i < this.children.length; ... | javascript | function() {
this.logger.log(this.index + " loadComplete, children: " + this.children.length);
this.getChildrenEl().innerHTML = this.completeRender();
if (this.propagateHighlightDown) {
if (this.highlightState === 1 && !this.tree.singleNodeHighlight) {
for (var i = 0; i < this.children.length; ... | [
"function",
"(",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"this",
".",
"index",
"+",
"\" loadComplete, children: \"",
"+",
"this",
".",
"children",
".",
"length",
")",
";",
"this",
".",
"getChildrenEl",
"(",
")",
".",
"innerHTML",
"=",
"this",
... | Load complete is the callback function we pass to the data provider
in dynamic load situations.
@method loadComplete | [
"Load",
"complete",
"is",
"the",
"callback",
"function",
"we",
"pass",
"to",
"the",
"data",
"provider",
"in",
"dynamic",
"load",
"situations",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L2441-L2460 | |
42,768 | neyric/webhookit | public/javascripts/yui/treeview/treeview-debug.js | function() {
this.logger.log("Generating html");
var sb = [];
sb[sb.length] = '<table id="ygtvtableel' + this.index + '" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth' + this.depth;
if (this.enableHighlight) {
sb[sb.length] = ' ygtv-highlight' + this... | javascript | function() {
this.logger.log("Generating html");
var sb = [];
sb[sb.length] = '<table id="ygtvtableel' + this.index + '" border="0" cellpadding="0" cellspacing="0" class="ygtvtable ygtvdepth' + this.depth;
if (this.enableHighlight) {
sb[sb.length] = ' ygtv-highlight' + this... | [
"function",
"(",
")",
"{",
"this",
".",
"logger",
".",
"log",
"(",
"\"Generating html\"",
")",
";",
"var",
"sb",
"=",
"[",
"]",
";",
"sb",
"[",
"sb",
".",
"length",
"]",
"=",
"'<table id=\"ygtvtableel'",
"+",
"this",
".",
"index",
"+",
"'\" border=\"0\... | Get the markup for the node. This may be overrided so that we can
support different types of nodes.
@method getNodeHtml
@return {string} The HTML that will render this node. | [
"Get",
"the",
"markup",
"for",
"the",
"node",
".",
"This",
"may",
"be",
"overrided",
"so",
"that",
"we",
"can",
"support",
"different",
"types",
"of",
"nodes",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/treeview/treeview-debug.js#L2503-L2537 | |
42,769 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(r, g, b) {
if (isArray(r)) {
return this.rgb2hex.apply(this, r);
}
var f=this.dec2hex;
return f(r) + f(g) + f(b);
} | javascript | function(r, g, b) {
if (isArray(r)) {
return this.rgb2hex.apply(this, r);
}
var f=this.dec2hex;
return f(r) + f(g) + f(b);
} | [
"function",
"(",
"r",
",",
"g",
",",
"b",
")",
"{",
"if",
"(",
"isArray",
"(",
"r",
")",
")",
"{",
"return",
"this",
".",
"rgb2hex",
".",
"apply",
"(",
"this",
",",
"r",
")",
";",
"}",
"var",
"f",
"=",
"this",
".",
"dec2hex",
";",
"return",
... | Converts decimal rgb values into a hex string
255,255,255 -> FFFFFF
@method rgb2hex
@param r {int|[int, int, int]} the red value, or an
array containing all three parameters
@param g {int} the green value
@param b {int} the blue value
@return {string} the hex string | [
"Converts",
"decimal",
"rgb",
"values",
"into",
"a",
"hex",
"string",
"255",
"255",
"255",
"-",
">",
"FFFFFF"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L121-L128 | |
42,770 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(n) {
n = parseInt(n,10)|0;
n = (n > 255 || n < 0) ? 0 : n;
return (ZERO+n.toString(16)).slice(-2).toUpperCase();
} | javascript | function(n) {
n = parseInt(n,10)|0;
n = (n > 255 || n < 0) ? 0 : n;
return (ZERO+n.toString(16)).slice(-2).toUpperCase();
} | [
"function",
"(",
"n",
")",
"{",
"n",
"=",
"parseInt",
"(",
"n",
",",
"10",
")",
"|",
"0",
";",
"n",
"=",
"(",
"n",
">",
"255",
"||",
"n",
"<",
"0",
")",
"?",
"0",
":",
"n",
";",
"return",
"(",
"ZERO",
"+",
"n",
".",
"toString",
"(",
"16... | Converts an int 0...255 to hex pair 00...FF
@method dec2hex
@param n {int} the number to convert
@return {string} the hex equivalent | [
"Converts",
"an",
"int",
"0",
"...",
"255",
"to",
"hex",
"pair",
"00",
"...",
"FF"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L136-L141 | |
42,771 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(s) {
var f = this.hex2dec;
return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
} | javascript | function(s) {
var f = this.hex2dec;
return [f(s.slice(0, 2)), f(s.slice(2, 4)), f(s.slice(4, 6))];
} | [
"function",
"(",
"s",
")",
"{",
"var",
"f",
"=",
"this",
".",
"hex2dec",
";",
"return",
"[",
"f",
"(",
"s",
".",
"slice",
"(",
"0",
",",
"2",
")",
")",
",",
"f",
"(",
"s",
".",
"slice",
"(",
"2",
",",
"4",
")",
")",
",",
"f",
"(",
"s",
... | Converts a hex string to rgb
@method hex2rgb
@param str {string} the hex string
@return {[int, int, int]} an array containing the rgb values | [
"Converts",
"a",
"hex",
"string",
"to",
"rgb"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L159-L162 | |
42,772 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(r, g, b) {
if (isArray(r)) {
return this.websafe.apply(this, r);
}
// returns the closest match [0, 51, 102, 153, 204, 255]
var f = function(v) {
if (isNumber(v)) {
v = Math.min(Math.max(0, v), 255);
... | javascript | function(r, g, b) {
if (isArray(r)) {
return this.websafe.apply(this, r);
}
// returns the closest match [0, 51, 102, 153, 204, 255]
var f = function(v) {
if (isNumber(v)) {
v = Math.min(Math.max(0, v), 255);
... | [
"function",
"(",
"r",
",",
"g",
",",
"b",
")",
"{",
"if",
"(",
"isArray",
"(",
"r",
")",
")",
"{",
"return",
"this",
".",
"websafe",
".",
"apply",
"(",
"this",
",",
"r",
")",
";",
"}",
"// returns the closest match [0, 51, 102, 153, 204, 255]",
"var",
... | Returns the closest websafe color to the supplied rgb value.
@method websafe
@param r {int|[int, int, int]} the red value, or an
array containing all three parameters
@param g {int} the green value
@param b {int} the blue value
@return {[int, int, int]} an array containing the closes
websafe rgb colors. | [
"Returns",
"the",
"closest",
"websafe",
"color",
"to",
"the",
"supplied",
"rgb",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L174-L197 | |
42,773 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | ColorPicker | function ColorPicker(el, attr) {
_pickercount = _pickercount + 1;
attr = attr || {};
if (arguments.length === 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
attr = el; // treat first arg as attr object
el = attr.element || null;
}
if (!el && !at... | javascript | function ColorPicker(el, attr) {
_pickercount = _pickercount + 1;
attr = attr || {};
if (arguments.length === 1 && !YAHOO.lang.isString(el) && !el.nodeName) {
attr = el; // treat first arg as attr object
el = attr.element || null;
}
if (!el && !at... | [
"function",
"ColorPicker",
"(",
"el",
",",
"attr",
")",
"{",
"_pickercount",
"=",
"_pickercount",
"+",
"1",
";",
"attr",
"=",
"attr",
"||",
"{",
"}",
";",
"if",
"(",
"arguments",
".",
"length",
"===",
"1",
"&&",
"!",
"YAHOO",
".",
"lang",
".",
"isS... | A widget to select colors
@namespace YAHOO.widget
@class YAHOO.widget.ColorPicker
@extends YAHOO.util.Element
@constructor
@param {HTMLElement | String | Object} el(optional) The html
element that represents the colorpicker, or the attribute object to use.
An element will be created if none provided.
@param {Object} at... | [
"A",
"widget",
"to",
"select",
"colors"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L233-L248 |
42,774 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function () {
var el = document.createElement('div');
if (this.CSS.BASE) {
el.className = this.CSS.BASE;
}
return el;
} | javascript | function () {
var el = document.createElement('div');
if (this.CSS.BASE) {
el.className = this.CSS.BASE;
}
return el;
} | [
"function",
"(",
")",
"{",
"var",
"el",
"=",
"document",
".",
"createElement",
"(",
"'div'",
")",
";",
"if",
"(",
"this",
".",
"CSS",
".",
"BASE",
")",
"{",
"el",
".",
"className",
"=",
"this",
".",
"CSS",
".",
"BASE",
";",
"}",
"return",
"el",
... | Creates the host element if it doesn't exist
@method _createHostElement
@protected | [
"Creates",
"the",
"host",
"element",
"if",
"it",
"doesn",
"t",
"exist"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L545-L553 | |
42,775 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(rgb, silent) {
silent = (silent) || false;
this.set(this.OPT.RGB, rgb, silent);
this._updateSliders();
} | javascript | function(rgb, silent) {
silent = (silent) || false;
this.set(this.OPT.RGB, rgb, silent);
this._updateSliders();
} | [
"function",
"(",
"rgb",
",",
"silent",
")",
"{",
"silent",
"=",
"(",
"silent",
")",
"||",
"false",
";",
"this",
".",
"set",
"(",
"this",
".",
"OPT",
".",
"RGB",
",",
"rgb",
",",
"silent",
")",
";",
"this",
".",
"_updateSliders",
"(",
")",
";",
... | Sets the control to the specified rgb value and
moves the sliders to the proper positions
@method setValue
@param rgb {[int, int, int]} the rgb value
@param silent {boolean} whether or not to fire the change event | [
"Sets",
"the",
"control",
"to",
"the",
"specified",
"rgb",
"value",
"and",
"moves",
"the",
"sliders",
"to",
"the",
"proper",
"positions"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L614-L618 | |
42,776 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function() {
var rgb = this.get(this.OPT.RGB),
websafe = this.get(this.OPT.WEBSAFE),
el = this.getElement(this.ID.SWATCH),
color = rgb.join(","),
txt = this.get(this.OPT.TXT);
Dom.setStyle(el, "background-color", "rgb(" + color + ... | javascript | function() {
var rgb = this.get(this.OPT.RGB),
websafe = this.get(this.OPT.WEBSAFE),
el = this.getElement(this.ID.SWATCH),
color = rgb.join(","),
txt = this.get(this.OPT.TXT);
Dom.setStyle(el, "background-color", "rgb(" + color + ... | [
"function",
"(",
")",
"{",
"var",
"rgb",
"=",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"RGB",
")",
",",
"websafe",
"=",
"this",
".",
"get",
"(",
"this",
".",
"OPT",
".",
"WEBSAFE",
")",
",",
"el",
"=",
"this",
".",
"getElement",
"(",
... | Updates the background of the swatch with the current rbg value.
Also updates the websafe swatch to the closest websafe color
@method _updateSwatch
@protected | [
"Updates",
"the",
"background",
"of",
"the",
"swatch",
"with",
"the",
"current",
"rbg",
"value",
".",
"Also",
"updates",
"the",
"websafe",
"swatch",
"to",
"the",
"closest",
"websafe",
"color"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L675-L696 | |
42,777 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(e) {
var c = Event.getCharCode(e);
//alert(Event.getCharCode(e) + ", " + e.keyCode + ", " + e.charCode);
// special keys
if (c === 38) { // up arrow
return 3;
} else if (c === 13) { // return
return 6;
} e... | javascript | function(e) {
var c = Event.getCharCode(e);
//alert(Event.getCharCode(e) + ", " + e.keyCode + ", " + e.charCode);
// special keys
if (c === 38) { // up arrow
return 3;
} else if (c === 13) { // return
return 6;
} e... | [
"function",
"(",
"e",
")",
"{",
"var",
"c",
"=",
"Event",
".",
"getCharCode",
"(",
"e",
")",
";",
"//alert(Event.getCharCode(e) + \", \" + e.keyCode + \", \" + e.charCode);",
"// special keys",
"if",
"(",
"c",
"===",
"38",
")",
"{",
"// up arrow",
"return",
"3",
... | Key map to well-known commands for txt field input
@method _getCommand
@param e {Event} the keypress or keydown event
@return {int} a command code
<ul>
<li>0 = not a number, letter in range, or special key</li>
<li>1 = number</li>
<li>2 = a-fA-F</li>
<li>3 = increment (up arrow)</li>
<li>4 = decrement (down arrow)</li>... | [
"Key",
"map",
"to",
"well",
"-",
"known",
"commands",
"for",
"txt",
"field",
"input"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L790-L817 | |
42,778 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(e, el, prop) {
var val = el.value;
if (prop !== this.OPT.HEX) {
val = parseInt(val, 10);
}
if (val !== this.get(prop)) {
this.set(prop, val);
}
} | javascript | function(e, el, prop) {
var val = el.value;
if (prop !== this.OPT.HEX) {
val = parseInt(val, 10);
}
if (val !== this.get(prop)) {
this.set(prop, val);
}
} | [
"function",
"(",
"e",
",",
"el",
",",
"prop",
")",
"{",
"var",
"val",
"=",
"el",
".",
"value",
";",
"if",
"(",
"prop",
"!==",
"this",
".",
"OPT",
".",
"HEX",
")",
"{",
"val",
"=",
"parseInt",
"(",
"val",
",",
"10",
")",
";",
"}",
"if",
"(",... | Use the value of the text field to update the control
@method _useFieldValue
@param e {Event} an event
@param el {HTMLElement} the field
@param prop {string} the key to the linked property
@protected | [
"Use",
"the",
"value",
"of",
"the",
"text",
"field",
"to",
"update",
"the",
"control"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L827-L837 | |
42,779 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(e, el, prop) {
var command = this._getCommand(e),
inc = (e.shiftKey) ? 10 : 1;
switch (command) {
case 6: // return, update the value
this._useFieldValue.apply(this, arguments);
break;
... | javascript | function(e, el, prop) {
var command = this._getCommand(e),
inc = (e.shiftKey) ? 10 : 1;
switch (command) {
case 6: // return, update the value
this._useFieldValue.apply(this, arguments);
break;
... | [
"function",
"(",
"e",
",",
"el",
",",
"prop",
")",
"{",
"var",
"command",
"=",
"this",
".",
"_getCommand",
"(",
"e",
")",
",",
"inc",
"=",
"(",
"e",
".",
"shiftKey",
")",
"?",
"10",
":",
"1",
";",
"switch",
"(",
"command",
")",
"{",
"case",
"... | Handle keypress on one of the rgb or hsv fields.
@method _rgbFieldKeypress
@param e {Event} the keypress event
@param el {HTMLElement} the field
@param prop {string} the key to the linked property
@protected | [
"Handle",
"keypress",
"on",
"one",
"of",
"the",
"rgb",
"or",
"hsv",
"fields",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L847-L869 | |
42,780 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(e, el, prop) {
var command = this._getCommand(e);
if (command === 6) { // return, update the value
this._useFieldValue.apply(this, arguments);
}
} | javascript | function(e, el, prop) {
var command = this._getCommand(e);
if (command === 6) { // return, update the value
this._useFieldValue.apply(this, arguments);
}
} | [
"function",
"(",
"e",
",",
"el",
",",
"prop",
")",
"{",
"var",
"command",
"=",
"this",
".",
"_getCommand",
"(",
"e",
")",
";",
"if",
"(",
"command",
"===",
"6",
")",
"{",
"// return, update the value",
"this",
".",
"_useFieldValue",
".",
"apply",
"(",
... | Handle keydown on the hex field
@method _hexFieldKeypress
@param e {Event} the keypress event
@param el {HTMLElement} the field
@param prop {string} the key to the linked property
@protected | [
"Handle",
"keydown",
"on",
"the",
"hex",
"field"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L879-L884 | |
42,781 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(e, numbersOnly) {
var command = this._getCommand(e);
switch (command) {
case 6: // return
case 5: // special char
case 1: // number
break;
case 2: // hex char (a-f)
if (numbersOnly !=... | javascript | function(e, numbersOnly) {
var command = this._getCommand(e);
switch (command) {
case 6: // return
case 5: // special char
case 1: // number
break;
case 2: // hex char (a-f)
if (numbersOnly !=... | [
"function",
"(",
"e",
",",
"numbersOnly",
")",
"{",
"var",
"command",
"=",
"this",
".",
"_getCommand",
"(",
"e",
")",
";",
"switch",
"(",
"command",
")",
"{",
"case",
"6",
":",
"// return",
"case",
"5",
":",
"// special char",
"case",
"1",
":",
"// n... | Allows numbers and special chars, and by default allows a-f.
Used for the hex field keypress handler.
@method _hexOnly
@param e {Event} the event
@param numbersOnly omits a-f if set to true
@protected
@return {boolean} false if we are canceling the event | [
"Allows",
"numbers",
"and",
"special",
"chars",
"and",
"by",
"default",
"allows",
"a",
"-",
"f",
".",
"Used",
"for",
"the",
"hex",
"field",
"keypress",
"handler",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L895-L913 | |
42,782 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function () {
var ID = this.ID,
O = this.OPT;
this.hueSlider.subscribe("change",
this._onHueSliderChange, this, true);
this.pickerSlider.subscribe("change",
this._onPickerSliderChange, this, true);
Event.on(this.getElemen... | javascript | function () {
var ID = this.ID,
O = this.OPT;
this.hueSlider.subscribe("change",
this._onHueSliderChange, this, true);
this.pickerSlider.subscribe("change",
this._onPickerSliderChange, this, true);
Event.on(this.getElemen... | [
"function",
"(",
")",
"{",
"var",
"ID",
"=",
"this",
".",
"ID",
",",
"O",
"=",
"this",
".",
"OPT",
";",
"this",
".",
"hueSlider",
".",
"subscribe",
"(",
"\"change\"",
",",
"this",
".",
"_onHueSliderChange",
",",
"this",
",",
"true",
")",
";",
"this... | Adds event listeners to Sliders and UI elements. Wires everything
up.
@method _bindUI
@protected | [
"Adds",
"event",
"listeners",
"to",
"Sliders",
"and",
"UI",
"elements",
".",
"Wires",
"everything",
"up",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L1305-L1339 | |
42,783 | neyric/webhookit | public/javascripts/yui/colorpicker/colorpicker.js | function(id, on) {
var el = (lang.isString(id) ? this.getElement(id) : id);
Dom.setStyle(el, "display", (on) ? "" : "none");
} | javascript | function(id, on) {
var el = (lang.isString(id) ? this.getElement(id) : id);
Dom.setStyle(el, "display", (on) ? "" : "none");
} | [
"function",
"(",
"id",
",",
"on",
")",
"{",
"var",
"el",
"=",
"(",
"lang",
".",
"isString",
"(",
"id",
")",
"?",
"this",
".",
"getElement",
"(",
"id",
")",
":",
"id",
")",
";",
"Dom",
".",
"setStyle",
"(",
"el",
",",
"\"display\"",
",",
"(",
... | Returns the cached element reference. If the id is not a string, it
is assumed that it is an element and this is returned.
@param id {string|HTMLElement} the element key, id, or ref
@param on {boolean} hide or show. If true, show
@protected | [
"Returns",
"the",
"cached",
"element",
"reference",
".",
"If",
"the",
"id",
"is",
"not",
"a",
"string",
"it",
"is",
"assumed",
"that",
"it",
"is",
"an",
"element",
"and",
"this",
"is",
"returned",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/colorpicker/colorpicker.js#L1413-L1416 | |
42,784 | jacoborus/node-filesaver | src/Filesaver.js | function (options) {
var x;
options = options || {};
// Store folders
this.folders = options.folders || {};
this.safenames = options.safenames || false;
// check for existing folders
for (x in this.folders) {
if (!fs.existsSync( this.folders[x] )){
// create folder if not exists
mkdirp( this.folders[x] ... | javascript | function (options) {
var x;
options = options || {};
// Store folders
this.folders = options.folders || {};
this.safenames = options.safenames || false;
// check for existing folders
for (x in this.folders) {
if (!fs.existsSync( this.folders[x] )){
// create folder if not exists
mkdirp( this.folders[x] ... | [
"function",
"(",
"options",
")",
"{",
"var",
"x",
";",
"options",
"=",
"options",
"||",
"{",
"}",
";",
"// Store folders",
"this",
".",
"folders",
"=",
"options",
".",
"folders",
"||",
"{",
"}",
";",
"this",
".",
"safenames",
"=",
"options",
".",
"sa... | Filesaver constructor.
Options:
- folders: *Object* with folder routes
- safename: *Boolean* use safe name for files
Example:
```js
var folders = {
images: './images',
books: './books'
}
var filesaver = new Filesaver({
folders: folders,
safenames: true
});
```
@param {Object} options folders and safenames | [
"Filesaver",
"constructor",
"."
] | 14a6868b1e6e094c3c4a26b471fde4eb63198423 | https://github.com/jacoborus/node-filesaver/blob/14a6868b1e6e094c3c4a26b471fde4eb63198423/src/Filesaver.js#L102-L116 | |
42,785 | neyric/webhookit | public/javascripts/inputex/js/widgets/Dialog.js | function (callback) {
var fn, scope;
fn = callback.fn;
scope = callback.scope;
if (this.formAvailable) {
fn.call(scope);
} else {
this.formAvailableEvt.subscribe(fn, scope, true);
}
} | javascript | function (callback) {
var fn, scope;
fn = callback.fn;
scope = callback.scope;
if (this.formAvailable) {
fn.call(scope);
} else {
this.formAvailableEvt.subscribe(fn, scope, true);
}
} | [
"function",
"(",
"callback",
")",
"{",
"var",
"fn",
",",
"scope",
";",
"fn",
"=",
"callback",
".",
"fn",
";",
"scope",
"=",
"callback",
".",
"scope",
";",
"if",
"(",
"this",
".",
"formAvailable",
")",
"{",
"fn",
".",
"call",
"(",
"scope",
")",
";... | Execute a callback as soon as the form is available
@param {Object} callback An object like {fn: my_function, scope: my_scope} | [
"Execute",
"a",
"callback",
"as",
"soon",
"as",
"the",
"form",
"is",
"available"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/widgets/Dialog.js#L115-L128 | |
42,786 | neyric/webhookit | public/javascripts/yui/container/container-debug.js | function (key, value, silent) {
var property;
key = key.toLowerCase();
YAHOO.log("setProperty: " + key + "=" + value, "info", "Config");
if (this.queueInProgress && ! silent) {
// Currently running through a queue...
... | javascript | function (key, value, silent) {
var property;
key = key.toLowerCase();
YAHOO.log("setProperty: " + key + "=" + value, "info", "Config");
if (this.queueInProgress && ! silent) {
// Currently running through a queue...
... | [
"function",
"(",
"key",
",",
"value",
",",
"silent",
")",
"{",
"var",
"property",
";",
"key",
"=",
"key",
".",
"toLowerCase",
"(",
")",
";",
"YAHOO",
".",
"log",
"(",
"\"setProperty: \"",
"+",
"key",
"+",
"\"=\"",
"+",
"value",
",",
"\"info\"",
",",
... | Sets the value of a property. If the silent property is passed as
true, the property's event will not be fired.
@method setProperty
@param {String} key The name of the property
@param {String} value The value to set the property to
@param {Boolean} silent Whether the value should be set silently,
without firing the pro... | [
"Sets",
"the",
"value",
"of",
"a",
"property",
".",
"If",
"the",
"silent",
"property",
"is",
"passed",
"as",
"true",
"the",
"property",
"s",
"event",
"will",
"not",
"be",
"fired",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container-debug.js#L274-L303 | |
42,787 | neyric/webhookit | public/javascripts/yui/container/container-debug.js | function (key, value) {
key = key.toLowerCase();
YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
var property = this.config[key],
foundDuplicate = false,
iLen,
queueItem,
queueItemKe... | javascript | function (key, value) {
key = key.toLowerCase();
YAHOO.log("queueProperty: " + key + "=" + value, "info", "Config");
var property = this.config[key],
foundDuplicate = false,
iLen,
queueItem,
queueItemKe... | [
"function",
"(",
"key",
",",
"value",
")",
"{",
"key",
"=",
"key",
".",
"toLowerCase",
"(",
")",
";",
"YAHOO",
".",
"log",
"(",
"\"queueProperty: \"",
"+",
"key",
"+",
"\"=\"",
"+",
"value",
",",
"\"info\"",
",",
"\"Config\"",
")",
";",
"var",
"prope... | Sets the value of a property and queues its event to execute. If the
event is already scheduled to execute, it is
moved from its current position to the end of the queue.
@method queueProperty
@param {String} key The name of the property
@param {String} value The value to set the property to
@return {Boolean} true, if... | [
"Sets",
"the",
"value",
"of",
"a",
"property",
"and",
"queues",
"its",
"event",
"to",
"execute",
".",
"If",
"the",
"event",
"is",
"already",
"scheduled",
"to",
"execute",
"it",
"is",
"moved",
"from",
"its",
"current",
"position",
"to",
"the",
"end",
"of"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container-debug.js#L315-L422 | |
42,788 | neyric/webhookit | public/javascripts/yui/container/container-debug.js | function (type, args, obj) {
var pos = args[0],
x = pos[0],
y = pos[1];
this.cfg.setProperty("x", x);
this.cfg.setProperty("y", y);
this.beforeMoveEvent.fire([x, y]);
x = this.cfg.getProperty("x");
y = this.cfg.g... | javascript | function (type, args, obj) {
var pos = args[0],
x = pos[0],
y = pos[1];
this.cfg.setProperty("x", x);
this.cfg.setProperty("y", y);
this.beforeMoveEvent.fire([x, y]);
x = this.cfg.getProperty("x");
y = this.cfg.g... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"pos",
"=",
"args",
"[",
"0",
"]",
",",
"x",
"=",
"pos",
"[",
"0",
"]",
",",
"y",
"=",
"pos",
"[",
"1",
"]",
";",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"x\"",
",",
... | The default event handler fired when the "xy" property is changed.
@method configXY
@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 sco... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"xy",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container-debug.js#L3058-L3076 | |
42,789 | neyric/webhookit | public/javascripts/yui/container/container-debug.js | function () {
var me = this;
me.logger.log("Setting hide tooltip timeout", "time");
return setTimeout(function () {
me.logger.log("Hide tooltip", "time");
me.hide();
}, this.cfg.getProperty("autodismissdelay"));
} | javascript | function () {
var me = this;
me.logger.log("Setting hide tooltip timeout", "time");
return setTimeout(function () {
me.logger.log("Hide tooltip", "time");
me.hide();
}, this.cfg.getProperty("autodismissdelay"));
} | [
"function",
"(",
")",
"{",
"var",
"me",
"=",
"this",
";",
"me",
".",
"logger",
".",
"log",
"(",
"\"Setting hide tooltip timeout\"",
",",
"\"time\"",
")",
";",
"return",
"setTimeout",
"(",
"function",
"(",
")",
"{",
"me",
".",
"logger",
".",
"log",
"(",... | Sets the timeout for the auto-dismiss delay, which by default is 5
seconds, meaning that a tooltip will automatically dismiss itself
after 5 seconds of being displayed.
@method doHide | [
"Sets",
"the",
"timeout",
"for",
"the",
"auto",
"-",
"dismiss",
"delay",
"which",
"by",
"default",
"is",
"5",
"seconds",
"meaning",
"that",
"a",
"tooltip",
"will",
"automatically",
"dismiss",
"itself",
"after",
"5",
"seconds",
"of",
"being",
"displayed",
"."... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container-debug.js#L5436-L5449 | |
42,790 | neyric/webhookit | public/javascripts/yui/container/container-debug.js | function (pageX, pageY) {
var height = this.element.offsetHeight,
mousePoint = new YAHOO.util.Point(pageX, pageY),
elementRegion = Dom.getRegion(this.element);
elementRegion.top -= 5;
elementRegion.left -= 5;
elementRegion... | javascript | function (pageX, pageY) {
var height = this.element.offsetHeight,
mousePoint = new YAHOO.util.Point(pageX, pageY),
elementRegion = Dom.getRegion(this.element);
elementRegion.top -= 5;
elementRegion.left -= 5;
elementRegion... | [
"function",
"(",
"pageX",
",",
"pageY",
")",
"{",
"var",
"height",
"=",
"this",
".",
"element",
".",
"offsetHeight",
",",
"mousePoint",
"=",
"new",
"YAHOO",
".",
"util",
".",
"Point",
"(",
"pageX",
",",
"pageY",
")",
",",
"elementRegion",
"=",
"Dom",
... | Fired when the Tooltip is moved, this event handler is used to
prevent the Tooltip from overlapping with its context element.
@method preventOverlay
@param {Number} pageX The x coordinate position of the mouse pointer
@param {Number} pageY The y coordinate position of the mouse pointer | [
"Fired",
"when",
"the",
"Tooltip",
"is",
"moved",
"this",
"event",
"handler",
"is",
"used",
"to",
"prevent",
"the",
"Tooltip",
"from",
"overlapping",
"with",
"its",
"context",
"element",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container-debug.js#L5458-L5476 | |
42,791 | neyric/webhookit | public/javascripts/yui/profiler/profiler.js | function(name, method){
//create instrumented version of function
var newMethod = function () {
var start = new Date(),
retval = method.apply(this, arguments),
stop = new Date();
saveDataPoint(... | javascript | function(name, method){
//create instrumented version of function
var newMethod = function () {
var start = new Date(),
retval = method.apply(this, arguments),
stop = new Date();
saveDataPoint(... | [
"function",
"(",
"name",
",",
"method",
")",
"{",
"//create instrumented version of function",
"var",
"newMethod",
"=",
"function",
"(",
")",
"{",
"var",
"start",
"=",
"new",
"Date",
"(",
")",
",",
"retval",
"=",
"method",
".",
"apply",
"(",
"this",
",",
... | Instruments a method to have profiling calls.
@param {String} name The name of the report for the function.
@param {Function} method The function to instrument.
@return {Function} An instrumented version of the function.
@method instrument
@static | [
"Instruments",
"a",
"method",
"to",
"have",
"profiling",
"calls",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profiler/profiler.js#L142-L173 | |
42,792 | neyric/webhookit | public/javascripts/yui/profiler/profiler.js | function () {
var start = new Date(),
retval = method.apply(this, arguments),
stop = new Date();
saveDataPoint(name, stop-start);
return retval;
} | javascript | function () {
var start = new Date(),
retval = method.apply(this, arguments),
stop = new Date();
saveDataPoint(name, stop-start);
return retval;
} | [
"function",
"(",
")",
"{",
"var",
"start",
"=",
"new",
"Date",
"(",
")",
",",
"retval",
"=",
"method",
".",
"apply",
"(",
"this",
",",
"arguments",
")",
",",
"stop",
"=",
"new",
"Date",
"(",
")",
";",
"saveDataPoint",
"(",
"name",
",",
"stop",
"-... | create instrumented version of function | [
"create",
"instrumented",
"version",
"of",
"function"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profiler/profiler.js#L145-L155 | |
42,793 | neyric/webhookit | public/javascripts/yui/profiler/profiler.js | function(name){
if(container[name]){
throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
} else {
//create report if necessary
if (!report[name]){
createReport(name);... | javascript | function(name){
if(container[name]){
throw new Error("Cannot use '" + name + "' for profiling through start(), name is already in use.");
} else {
//create report if necessary
if (!report[name]){
createReport(name);... | [
"function",
"(",
"name",
")",
"{",
"if",
"(",
"container",
"[",
"name",
"]",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"Cannot use '\"",
"+",
"name",
"+",
"\"' for profiling through start(), name is already in use.\"",
")",
";",
"}",
"else",
"{",
"//create repor... | Start profiling information for a given name. The name cannot be the name
of a registered function or object. This is used to start timing for a
particular block of code rather than instrumenting the entire function.
@param {String} name The name of the data point.
@return {Void}
@method start
@static | [
"Start",
"profiling",
"information",
"for",
"a",
"given",
"name",
".",
"The",
"name",
"cannot",
"be",
"the",
"name",
"of",
"a",
"registered",
"function",
"or",
"object",
".",
"This",
"is",
"used",
"to",
"start",
"timing",
"for",
"a",
"particular",
"block",... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profiler/profiler.js#L207-L232 | |
42,794 | neyric/webhookit | public/javascripts/yui/profiler/profiler.js | function(name){
var now = new Date(),
stopwatch = stopwatches[name];
if (stopwatch){
if (stopwatch.state == WATCH_STARTED){
saveDataPoint(name, stopwatch.total + (now - stopwatch.start));
} e... | javascript | function(name){
var now = new Date(),
stopwatch = stopwatches[name];
if (stopwatch){
if (stopwatch.state == WATCH_STARTED){
saveDataPoint(name, stopwatch.total + (now - stopwatch.start));
} e... | [
"function",
"(",
"name",
")",
"{",
"var",
"now",
"=",
"new",
"Date",
"(",
")",
",",
"stopwatch",
"=",
"stopwatches",
"[",
"name",
"]",
";",
"if",
"(",
"stopwatch",
")",
"{",
"if",
"(",
"stopwatch",
".",
"state",
"==",
"WATCH_STARTED",
")",
"{",
"sa... | Stops profiling information for a given name.
@param {String} name The name of the data point.
@return {Void}
@method stop
@static | [
"Stops",
"profiling",
"information",
"for",
"a",
"given",
"name",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profiler/profiler.js#L241-L257 | |
42,795 | neyric/webhookit | public/javascripts/yui/profiler/profiler.js | function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
//figure out the function name without namespacing
var funcName = (name.indexOf(".") > -1 ?
name.substring(name.lastIndexOf(".")+1) : name),
method,
... | javascript | function(name /*:String*/, owner /*:Object*/, registerPrototype /*:Boolean*/) /*:Void*/{
//figure out the function name without namespacing
var funcName = (name.indexOf(".") > -1 ?
name.substring(name.lastIndexOf(".")+1) : name),
method,
... | [
"function",
"(",
"name",
"/*:String*/",
",",
"owner",
"/*:Object*/",
",",
"registerPrototype",
"/*:Boolean*/",
")",
"/*:Void*/",
"{",
"//figure out the function name without namespacing",
"var",
"funcName",
"=",
"(",
"name",
".",
"indexOf",
"(",
"\".\"",
")",
">",
"... | Sets up a function for profiling. It essentially overwrites the function with one
that has instrumentation data. This method also creates an entry for the function
in the profile report. The original function is stored on the container object.
@param {String} name The full name of the function including namespacing. Th... | [
"Sets",
"up",
"a",
"function",
"for",
"profiling",
".",
"It",
"essentially",
"overwrites",
"the",
"function",
"with",
"one",
"that",
"has",
"instrumentation",
"data",
".",
"This",
"method",
"also",
"creates",
"an",
"entry",
"for",
"the",
"function",
"in",
"t... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/profiler/profiler.js#L396-L434 | |
42,796 | neyric/webhookit | lib/controllers/users.js | get_user_collection | function get_user_collection(req, res, next) {
app.db.collection('users', function(error, user_collection) {
if(error) { throw error; }
else {
req.user_collection = user_collection;
next();
}
});
} | javascript | function get_user_collection(req, res, next) {
app.db.collection('users', function(error, user_collection) {
if(error) { throw error; }
else {
req.user_collection = user_collection;
next();
}
});
} | [
"function",
"get_user_collection",
"(",
"req",
",",
"res",
",",
"next",
")",
"{",
"app",
".",
"db",
".",
"collection",
"(",
"'users'",
",",
"function",
"(",
"error",
",",
"user_collection",
")",
"{",
"if",
"(",
"error",
")",
"{",
"throw",
"error",
";",... | store the user collection into req.user_collection | [
"store",
"the",
"user",
"collection",
"into",
"req",
".",
"user_collection"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/lib/controllers/users.js#L4-L12 |
42,797 | neyric/webhookit | public/javascripts/inputex/js/fields/SerializeField-beta.js | function() {
this.subfieldWrapper = inputEx.cn('div', {className: "inputEx-SerializedField-SubFieldWrapper"});
this.fieldContainer.appendChild( this.subfieldWrapper );
var config = {parentEl: this.subfieldWrapper};
lang.augmentObject(config, this.options.subfield);
this.subField = inputEx... | javascript | function() {
this.subfieldWrapper = inputEx.cn('div', {className: "inputEx-SerializedField-SubFieldWrapper"});
this.fieldContainer.appendChild( this.subfieldWrapper );
var config = {parentEl: this.subfieldWrapper};
lang.augmentObject(config, this.options.subfield);
this.subField = inputEx... | [
"function",
"(",
")",
"{",
"this",
".",
"subfieldWrapper",
"=",
"inputEx",
".",
"cn",
"(",
"'div'",
",",
"{",
"className",
":",
"\"inputEx-SerializedField-SubFieldWrapper\"",
"}",
")",
";",
"this",
".",
"fieldContainer",
".",
"appendChild",
"(",
"this",
".",
... | Render the subfield | [
"Render",
"the",
"subfield"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SerializeField-beta.js#L34-L42 | |
42,798 | neyric/webhookit | public/javascripts/inputex/js/fields/SerializeField-beta.js | function() {
inputEx.SerializeField.superclass.initEvents.call(this);
this.subField.updatedEvt.subscribe(this.fireUpdatedEvt, this, true);
} | javascript | function() {
inputEx.SerializeField.superclass.initEvents.call(this);
this.subField.updatedEvt.subscribe(this.fireUpdatedEvt, this, true);
} | [
"function",
"(",
")",
"{",
"inputEx",
".",
"SerializeField",
".",
"superclass",
".",
"initEvents",
".",
"call",
"(",
"this",
")",
";",
"this",
".",
"subField",
".",
"updatedEvt",
".",
"subscribe",
"(",
"this",
".",
"fireUpdatedEvt",
",",
"this",
",",
"tr... | Subscribe the subField | [
"Subscribe",
"the",
"subField"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SerializeField-beta.js#L47-L50 | |
42,799 | neyric/webhookit | public/javascripts/inputex/js/fields/SerializeField-beta.js | function(o) {
if(!XML || !YAHOO.lang.isFunction(XML.ObjTree) ) {
alert("ObjTree.js not loaded.");
return null;
}
var xotree = new XML.ObjTree();
return xotree.writeXML(o);
} | javascript | function(o) {
if(!XML || !YAHOO.lang.isFunction(XML.ObjTree) ) {
alert("ObjTree.js not loaded.");
return null;
}
var xotree = new XML.ObjTree();
return xotree.writeXML(o);
} | [
"function",
"(",
"o",
")",
"{",
"if",
"(",
"!",
"XML",
"||",
"!",
"YAHOO",
".",
"lang",
".",
"isFunction",
"(",
"XML",
".",
"ObjTree",
")",
")",
"{",
"alert",
"(",
"\"ObjTree.js not loaded.\"",
")",
";",
"return",
"null",
";",
"}",
"var",
"xotree",
... | serialize to XML
@static | [
"serialize",
"to",
"XML"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/fields/SerializeField-beta.js#L131-L138 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.