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,100 | pbeshai/react-taco-table | lib/Summarizers.js | meanSummarizer | function meanSummarizer(column, tableData, columns) {
var stats = tableData.reduce(function (stats, rowData, rowNumber) {
var sortValue = Utils.getSortValue(column, rowData, rowNumber, tableData, columns);
if (sortValue) {
if (stats.sum === null) {
stats.sum = sortValue;
} else {
... | javascript | function meanSummarizer(column, tableData, columns) {
var stats = tableData.reduce(function (stats, rowData, rowNumber) {
var sortValue = Utils.getSortValue(column, rowData, rowNumber, tableData, columns);
if (sortValue) {
if (stats.sum === null) {
stats.sum = sortValue;
} else {
... | [
"function",
"meanSummarizer",
"(",
"column",
",",
"tableData",
",",
"columns",
")",
"{",
"var",
"stats",
"=",
"tableData",
".",
"reduce",
"(",
"function",
"(",
"stats",
",",
"rowData",
",",
"rowNumber",
")",
"{",
"var",
"sortValue",
"=",
"Utils",
".",
"g... | Computes the mean, sum, and count in a column as `mean, sum, count`.
Does the computation based on the sortValue.
@param {Object} column The column definition
@param {Object[]} tableData the data for the whole table
@param {Object[]} columns The definitions of columns for the whole table
@return {Object} The mean of ... | [
"Computes",
"the",
"mean",
"sum",
"and",
"count",
"in",
"a",
"column",
"as",
"mean",
"sum",
"count",
".",
"Does",
"the",
"computation",
"based",
"on",
"the",
"sortValue",
"."
] | db059ad7d051aefbaf00aea7f7a870e59711968a | https://github.com/pbeshai/react-taco-table/blob/db059ad7d051aefbaf00aea7f7a870e59711968a/lib/Summarizers.js#L102-L122 |
42,101 | pbeshai/react-taco-table | lib/Summarizers.js | frequencySummarizer | function frequencySummarizer(column, tableData, columns) {
var mostFrequent = void 0;
var counts = tableData.reduce(function (counts, rowData, rowNumber) {
var cellData = Utils.getCellData(column, rowData, rowNumber, tableData, columns);
if (!counts[cellData]) {
counts[cellData] = 1;
} else {
... | javascript | function frequencySummarizer(column, tableData, columns) {
var mostFrequent = void 0;
var counts = tableData.reduce(function (counts, rowData, rowNumber) {
var cellData = Utils.getCellData(column, rowData, rowNumber, tableData, columns);
if (!counts[cellData]) {
counts[cellData] = 1;
} else {
... | [
"function",
"frequencySummarizer",
"(",
"column",
",",
"tableData",
",",
"columns",
")",
"{",
"var",
"mostFrequent",
"=",
"void",
"0",
";",
"var",
"counts",
"=",
"tableData",
".",
"reduce",
"(",
"function",
"(",
"counts",
",",
"rowData",
",",
"rowNumber",
... | Computes the frequency for each value in the dataset and computes the most frequent.
If there is a tie for most frequent, it returns just the first encountered value.
Does the summary based on the cellData value.
@param {Object} column The column definition
@param {Object[]} tableData the data for the whole table
@par... | [
"Computes",
"the",
"frequency",
"for",
"each",
"value",
"in",
"the",
"dataset",
"and",
"computes",
"the",
"most",
"frequent",
".",
"If",
"there",
"is",
"a",
"tie",
"for",
"most",
"frequent",
"it",
"returns",
"just",
"the",
"first",
"encountered",
"value",
... | db059ad7d051aefbaf00aea7f7a870e59711968a | https://github.com/pbeshai/react-taco-table/blob/db059ad7d051aefbaf00aea7f7a870e59711968a/lib/Summarizers.js#L178-L197 |
42,102 | pazams/postcss-scopify | index.js | isRuleScopable | function isRuleScopable(rule){
if(rule.parent.type !== 'root') {
if (rule.parent.type === 'atrule' && conditionalGroupRules.indexOf(rule.parent.name) > -1){
return true;
}
else {
return false;
}
}
else {
return true;
}
} | javascript | function isRuleScopable(rule){
if(rule.parent.type !== 'root') {
if (rule.parent.type === 'atrule' && conditionalGroupRules.indexOf(rule.parent.name) > -1){
return true;
}
else {
return false;
}
}
else {
return true;
}
} | [
"function",
"isRuleScopable",
"(",
"rule",
")",
"{",
"if",
"(",
"rule",
".",
"parent",
".",
"type",
"!==",
"'root'",
")",
"{",
"if",
"(",
"rule",
".",
"parent",
".",
"type",
"===",
"'atrule'",
"&&",
"conditionalGroupRules",
".",
"indexOf",
"(",
"rule",
... | Determine if rule should be scoped
@param {rule} rule | [
"Determine",
"if",
"rule",
"should",
"be",
"scoped"
] | 69f1b1dc162178c7843a52835d459ed12bb9b08c | https://github.com/pazams/postcss-scopify/blob/69f1b1dc162178c7843a52835d459ed12bb9b08c/index.js#L74-L89 |
42,103 | shama/atlaspack | example/example.js | atlasPack | function atlasPack(img) {
var node = atlas.pack(img);
if (node === false) {
atlas = atlas.expand(img);
//atlas.tilepad = true;
}
} | javascript | function atlasPack(img) {
var node = atlas.pack(img);
if (node === false) {
atlas = atlas.expand(img);
//atlas.tilepad = true;
}
} | [
"function",
"atlasPack",
"(",
"img",
")",
"{",
"var",
"node",
"=",
"atlas",
".",
"pack",
"(",
"img",
")",
";",
"if",
"(",
"node",
"===",
"false",
")",
"{",
"atlas",
"=",
"atlas",
".",
"expand",
"(",
"img",
")",
";",
"//atlas.tilepad = true;",
"}",
... | atlas.tilepad = true; | [
"atlas",
".",
"tilepad",
"=",
"true",
";"
] | 291e75594b1dc5232fcd37f06430d23ebbd32e43 | https://github.com/shama/atlaspack/blob/291e75594b1dc5232fcd37f06430d23ebbd32e43/example/example.js#L12-L18 |
42,104 | Reactive-Extensions/rx.disposables | compositedisposable.js | CompositeDisposable | function CompositeDisposable () {
var args = [], i, len;
if (Array.isArray(arguments[0])) {
args = arguments[0];
len = args.length;
} else {
len = arguments.length;
args = new Array(len);
for(i = 0; i < len; i++) { args[i] = arguments[i]; }
}
this._disposables = args;
this.isDisposed = f... | javascript | function CompositeDisposable () {
var args = [], i, len;
if (Array.isArray(arguments[0])) {
args = arguments[0];
len = args.length;
} else {
len = arguments.length;
args = new Array(len);
for(i = 0; i < len; i++) { args[i] = arguments[i]; }
}
this._disposables = args;
this.isDisposed = f... | [
"function",
"CompositeDisposable",
"(",
")",
"{",
"var",
"args",
"=",
"[",
"]",
",",
"i",
",",
"len",
";",
"if",
"(",
"Array",
".",
"isArray",
"(",
"arguments",
"[",
"0",
"]",
")",
")",
"{",
"args",
"=",
"arguments",
"[",
"0",
"]",
";",
"len",
... | Represents a group of disposable resources that are disposed together.
@constructor | [
"Represents",
"a",
"group",
"of",
"disposable",
"resources",
"that",
"are",
"disposed",
"together",
"."
] | 07d5df25ae10e4dfea17da7d98f809e394f0a3ba | https://github.com/Reactive-Extensions/rx.disposables/blob/07d5df25ae10e4dfea17da7d98f809e394f0a3ba/compositedisposable.js#L7-L20 |
42,105 | enyojs/onyx | src/TabBar/TabBar.js | function (inControl) {
var c = inControl.caption || ('Tab ' + this.lastIndex);
this.selectedId = this.lastIndex++ ;
var t = this.$.tabs.createComponent(
{
content: c,
userData: inControl.data || { },
tooltipMsg: inControl.tooltipMsg, //may be null
userId: inControl.userId, // may be null
... | javascript | function (inControl) {
var c = inControl.caption || ('Tab ' + this.lastIndex);
this.selectedId = this.lastIndex++ ;
var t = this.$.tabs.createComponent(
{
content: c,
userData: inControl.data || { },
tooltipMsg: inControl.tooltipMsg, //may be null
userId: inControl.userId, // may be null
... | [
"function",
"(",
"inControl",
")",
"{",
"var",
"c",
"=",
"inControl",
".",
"caption",
"||",
"(",
"'Tab '",
"+",
"this",
".",
"lastIndex",
")",
";",
"this",
".",
"selectedId",
"=",
"this",
".",
"lastIndex",
"++",
";",
"var",
"t",
"=",
"this",
".",
"... | Append a new tab to the tab bar. inControl is an object
with optional caption and data attributes. When not
specified the tab will have a generated caption like
'Tab 0', 'Tab 1'. etc... data is an arbitrary object that will
be given back with onTabChanged events
@public | [
"Append",
"a",
"new",
"tab",
"to",
"the",
"tab",
"bar",
".",
"inControl",
"is",
"an",
"object",
"with",
"optional",
"caption",
"and",
"data",
"attributes",
".",
"When",
"not",
"specified",
"the",
"tab",
"will",
"have",
"a",
"generated",
"caption",
"like",
... | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/TabBar/TabBar.js#L306-L325 | |
42,106 | enyojs/onyx | src/TabBar/TabBar.js | function (target) {
var tab = this.resolveTab(target,'removeTab');
var tabData = {
index: tab.tabIndex,
caption: tab.content,
tooltipMsg: tab.tooltipMsg,
userId: tab.userId,
data: tab.userData
} ;
var that = this ;
if (tab) {
tabData.next = function (err) {
if (err) { throw new Err... | javascript | function (target) {
var tab = this.resolveTab(target,'removeTab');
var tabData = {
index: tab.tabIndex,
caption: tab.content,
tooltipMsg: tab.tooltipMsg,
userId: tab.userId,
data: tab.userData
} ;
var that = this ;
if (tab) {
tabData.next = function (err) {
if (err) { throw new Err... | [
"function",
"(",
"target",
")",
"{",
"var",
"tab",
"=",
"this",
".",
"resolveTab",
"(",
"target",
",",
"'removeTab'",
")",
";",
"var",
"tabData",
"=",
"{",
"index",
":",
"tab",
".",
"tabIndex",
",",
"caption",
":",
"tab",
".",
"content",
",",
"toolti... | Request to remove a tab from the tab bar. This is a bit
like removeTab, except that a onTabRemoveRequested event is
fired to let the application the possibility to cancel the
request.
@public | [
"Request",
"to",
"remove",
"a",
"tab",
"from",
"the",
"tab",
"bar",
".",
"This",
"is",
"a",
"bit",
"like",
"removeTab",
"except",
"that",
"a",
"onTabRemoveRequested",
"event",
"is",
"fired",
"to",
"let",
"the",
"application",
"the",
"possibility",
"to",
"c... | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/TabBar/TabBar.js#L394-L411 | |
42,107 | enyojs/onyx | src/TabBar/TabBar.js | function () {
var result = 0;
utils.forEach(
this.$.tabs.getControls(),
function (tab){
var w = tab.origWidth() ;
// must add margin and padding of inner button and outer tab-item
result += w + 18 ;
}
);
return result;
} | javascript | function () {
var result = 0;
utils.forEach(
this.$.tabs.getControls(),
function (tab){
var w = tab.origWidth() ;
// must add margin and padding of inner button and outer tab-item
result += w + 18 ;
}
);
return result;
} | [
"function",
"(",
")",
"{",
"var",
"result",
"=",
"0",
";",
"utils",
".",
"forEach",
"(",
"this",
".",
"$",
".",
"tabs",
".",
"getControls",
"(",
")",
",",
"function",
"(",
"tab",
")",
"{",
"var",
"w",
"=",
"tab",
".",
"origWidth",
"(",
")",
";"... | compute tab width by adding width of tabs contained in tab bar.
@private | [
"compute",
"tab",
"width",
"by",
"adding",
"width",
"of",
"tabs",
"contained",
"in",
"tab",
"bar",
"."
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/TabBar/TabBar.js#L598-L609 | |
42,108 | enyojs/onyx | src/TabBar/TabBar.js | function (inSender, inEvent) {
var that = this ;
var popup = this.$.popup;
for (var name in popup.$) {
if (popup.$.hasOwnProperty(name) && /menuItem/.test(name)) {
popup.$[name].destroy();
}
}
//popup.render();
utils.forEach(
this.$.tabs.getControls(),
function (tab) {
that.$.popup.cre... | javascript | function (inSender, inEvent) {
var that = this ;
var popup = this.$.popup;
for (var name in popup.$) {
if (popup.$.hasOwnProperty(name) && /menuItem/.test(name)) {
popup.$[name].destroy();
}
}
//popup.render();
utils.forEach(
this.$.tabs.getControls(),
function (tab) {
that.$.popup.cre... | [
"function",
"(",
"inSender",
",",
"inEvent",
")",
"{",
"var",
"that",
"=",
"this",
";",
"var",
"popup",
"=",
"this",
".",
"$",
".",
"popup",
";",
"for",
"(",
"var",
"name",
"in",
"popup",
".",
"$",
")",
"{",
"if",
"(",
"popup",
".",
"$",
".",
... | Since action buttons of Contextual Popups are not dynamic, this
kind is created on the fly and destroyed once the user clicks
on a button
@private | [
"Since",
"action",
"buttons",
"of",
"Contextual",
"Popups",
"are",
"not",
"dynamic",
"this",
"kind",
"is",
"created",
"on",
"the",
"fly",
"and",
"destroyed",
"once",
"the",
"user",
"clicks",
"on",
"a",
"button"
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/TabBar/TabBar.js#L662-L688 | |
42,109 | sheershoff/node-cache-manager-fs-binary | index.js | bufferReviver | function bufferReviver(k, v) {
if (
v !== null &&
typeof v === 'object' &&
'type' in v &&
v.type === 'Buffer' &&
'data' in v &&
Array.isArray(v.data)) {
return new Buffer(v.data);
}
return v;
} | javascript | function bufferReviver(k, v) {
if (
v !== null &&
typeof v === 'object' &&
'type' in v &&
v.type === 'Buffer' &&
'data' in v &&
Array.isArray(v.data)) {
return new Buffer(v.data);
}
return v;
} | [
"function",
"bufferReviver",
"(",
"k",
",",
"v",
")",
"{",
"if",
"(",
"v",
"!==",
"null",
"&&",
"typeof",
"v",
"===",
"'object'",
"&&",
"'type'",
"in",
"v",
"&&",
"v",
".",
"type",
"===",
"'Buffer'",
"&&",
"'data'",
"in",
"v",
"&&",
"Array",
".",
... | Helper function that revives buffers from object representation on JSON.parse | [
"Helper",
"function",
"that",
"revives",
"buffers",
"from",
"object",
"representation",
"on",
"JSON",
".",
"parse"
] | 8fbdfb6f91a659184736eccf5355321f13c642f7 | https://github.com/sheershoff/node-cache-manager-fs-binary/blob/8fbdfb6f91a659184736eccf5355321f13c642f7/index.js#L31-L42 |
42,110 | sheershoff/node-cache-manager-fs-binary | index.js | MetaData | function MetaData() {
// the key for the storing
this.key = null;
// data to store
this.value = null;
// temporary filename for the cached file because filenames cannot represend urls completely
this.filename = null;
// expirydate of the entry
this.expires = null;
// size of the cur... | javascript | function MetaData() {
// the key for the storing
this.key = null;
// data to store
this.value = null;
// temporary filename for the cached file because filenames cannot represend urls completely
this.filename = null;
// expirydate of the entry
this.expires = null;
// size of the cur... | [
"function",
"MetaData",
"(",
")",
"{",
"// the key for the storing",
"this",
".",
"key",
"=",
"null",
";",
"// data to store",
"this",
".",
"value",
"=",
"null",
";",
"// temporary filename for the cached file because filenames cannot represend urls completely",
"this",
"."... | helper object with meta-informations about the cached data | [
"helper",
"object",
"with",
"meta",
"-",
"informations",
"about",
"the",
"cached",
"data"
] | 8fbdfb6f91a659184736eccf5355321f13c642f7 | https://github.com/sheershoff/node-cache-manager-fs-binary/blob/8fbdfb6f91a659184736eccf5355321f13c642f7/index.js#L47-L59 |
42,111 | sheershoff/node-cache-manager-fs-binary | index.js | DiskStore | function DiskStore(options) {
options = options || {};
this.options = extend({
path: 'cache/',
ttl: 60,
maxsize: 0,
zip: false
}, options);
// check storage directory for existence (or create it)
if (!fs.existsSync(this.options.path)) {
fs.mkdirSync(this.op... | javascript | function DiskStore(options) {
options = options || {};
this.options = extend({
path: 'cache/',
ttl: 60,
maxsize: 0,
zip: false
}, options);
// check storage directory for existence (or create it)
if (!fs.existsSync(this.options.path)) {
fs.mkdirSync(this.op... | [
"function",
"DiskStore",
"(",
"options",
")",
"{",
"options",
"=",
"options",
"||",
"{",
"}",
";",
"this",
".",
"options",
"=",
"extend",
"(",
"{",
"path",
":",
"'cache/'",
",",
"ttl",
":",
"60",
",",
"maxsize",
":",
"0",
",",
"zip",
":",
"false",
... | construction of the disk storage | [
"construction",
"of",
"the",
"disk",
"storage"
] | 8fbdfb6f91a659184736eccf5355321f13c642f7 | https://github.com/sheershoff/node-cache-manager-fs-binary/blob/8fbdfb6f91a659184736eccf5355321f13c642f7/index.js#L64-L93 |
42,112 | enyojs/onyx | src/Slider/Slider.js | function (value) {
this.$.animator.play({
startValue: this.value,
endValue: value,
node: this.hasNode()
});
this.setValue(value);
} | javascript | function (value) {
this.$.animator.play({
startValue: this.value,
endValue: value,
node: this.hasNode()
});
this.setValue(value);
} | [
"function",
"(",
"value",
")",
"{",
"this",
".",
"$",
".",
"animator",
".",
"play",
"(",
"{",
"startValue",
":",
"this",
".",
"value",
",",
"endValue",
":",
"value",
",",
"node",
":",
"this",
".",
"hasNode",
"(",
")",
"}",
")",
";",
"this",
".",
... | Animates to the given value.
@param {Number} value - The value to animate to.
@public
@todo functional overlap with {@link module:onyx/ProgressBar~ProgressBar#animateProgressTo} | [
"Animates",
"to",
"the",
"given",
"value",
"."
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/Slider/Slider.js#L274-L282 | |
42,113 | alg/typedoc-dash-theme | bin/theme.js | DashDocsetTheme | function DashDocsetTheme(renderer, basePath) {
_super.call(this, renderer, basePath);
renderer.on(output.Renderer.EVENT_BEGIN, this.onRendererBegin, this, 1024);
this.dashIndexPlugin = new DashIndexPlugin(renderer);
this.dashAssetsPlugin = new DashAssetsPl... | javascript | function DashDocsetTheme(renderer, basePath) {
_super.call(this, renderer, basePath);
renderer.on(output.Renderer.EVENT_BEGIN, this.onRendererBegin, this, 1024);
this.dashIndexPlugin = new DashIndexPlugin(renderer);
this.dashAssetsPlugin = new DashAssetsPl... | [
"function",
"DashDocsetTheme",
"(",
"renderer",
",",
"basePath",
")",
"{",
"_super",
".",
"call",
"(",
"this",
",",
"renderer",
",",
"basePath",
")",
";",
"renderer",
".",
"on",
"(",
"output",
".",
"Renderer",
".",
"EVENT_BEGIN",
",",
"this",
".",
"onRen... | Create a new DashDocsetTheme instance.
@param renderer The renderer this theme is attached to.
@param basePath The base path of this theme. | [
"Create",
"a",
"new",
"DashDocsetTheme",
"instance",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L178-L184 |
42,114 | alg/typedoc-dash-theme | bin/theme.js | containsExternals | function containsExternals(modules) {
for (var index = 0, length = modules.length; index < length; index++) {
if (modules[index].flags.isExternal)
return true;
}
return false;
} | javascript | function containsExternals(modules) {
for (var index = 0, length = modules.length; index < length; index++) {
if (modules[index].flags.isExternal)
return true;
}
return false;
} | [
"function",
"containsExternals",
"(",
"modules",
")",
"{",
"for",
"(",
"var",
"index",
"=",
"0",
",",
"length",
"=",
"modules",
".",
"length",
";",
"index",
"<",
"length",
";",
"index",
"++",
")",
"{",
"if",
"(",
"modules",
"[",
"index",
"]",
".",
... | Test whether the given list of modules contains an external module.
@param modules The list of modules to test.
@returns TRUE if any of the modules is marked as being external. | [
"Test",
"whether",
"the",
"given",
"list",
"of",
"modules",
"contains",
"an",
"external",
"module",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L284-L290 |
42,115 | alg/typedoc-dash-theme | bin/theme.js | sortReflections | function sortReflections(modules) {
modules.sort(function (a, b) {
if (a.flags.isExternal && !b.flags.isExternal)
return 1;
if (!a.flags.isExternal && b.flags.isExternal)
return -1;
... | javascript | function sortReflections(modules) {
modules.sort(function (a, b) {
if (a.flags.isExternal && !b.flags.isExternal)
return 1;
if (!a.flags.isExternal && b.flags.isExternal)
return -1;
... | [
"function",
"sortReflections",
"(",
"modules",
")",
"{",
"modules",
".",
"sort",
"(",
"function",
"(",
"a",
",",
"b",
")",
"{",
"if",
"(",
"a",
".",
"flags",
".",
"isExternal",
"&&",
"!",
"b",
".",
"flags",
".",
"isExternal",
")",
"return",
"1",
";... | Sort the given list of modules by name, groups external modules at the bottom.
@param modules The list of modules that should be sorted. | [
"Sort",
"the",
"given",
"list",
"of",
"modules",
"by",
"name",
"groups",
"external",
"modules",
"at",
"the",
"bottom",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L296-L304 |
42,116 | alg/typedoc-dash-theme | bin/theme.js | includeDedicatedUrls | function includeDedicatedUrls(reflection, item) {
(function walk(reflection) {
for (var key in reflection.children) {
var child = reflection.children[key];
if (child.hasOwnDocument && !child.kindOf(td.models.ReflectionKi... | javascript | function includeDedicatedUrls(reflection, item) {
(function walk(reflection) {
for (var key in reflection.children) {
var child = reflection.children[key];
if (child.hasOwnDocument && !child.kindOf(td.models.ReflectionKi... | [
"function",
"includeDedicatedUrls",
"(",
"reflection",
",",
"item",
")",
"{",
"(",
"function",
"walk",
"(",
"reflection",
")",
"{",
"for",
"(",
"var",
"key",
"in",
"reflection",
".",
"children",
")",
"{",
"var",
"child",
"=",
"reflection",
".",
"children",... | Find the urls of all children of the given reflection and store them as dedicated urls
of the given NavigationItem.
@param reflection The reflection whose children urls should be included.
@param item The navigation node whose dedicated urls should be set. | [
"Find",
"the",
"urls",
"of",
"all",
"children",
"of",
"the",
"given",
"reflection",
"and",
"store",
"them",
"as",
"dedicated",
"urls",
"of",
"the",
"given",
"NavigationItem",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L312-L324 |
42,117 | alg/typedoc-dash-theme | bin/theme.js | buildChildren | function buildChildren(reflection, parent) {
var modules = reflection.getChildrenByKind(td.models.ReflectionKind.SomeModule);
modules.sort(function (a, b) {
return a.getFullName() < b.getFullName() ? -1 : 1;
});
modu... | javascript | function buildChildren(reflection, parent) {
var modules = reflection.getChildrenByKind(td.models.ReflectionKind.SomeModule);
modules.sort(function (a, b) {
return a.getFullName() < b.getFullName() ? -1 : 1;
});
modu... | [
"function",
"buildChildren",
"(",
"reflection",
",",
"parent",
")",
"{",
"var",
"modules",
"=",
"reflection",
".",
"getChildrenByKind",
"(",
"td",
".",
"models",
".",
"ReflectionKind",
".",
"SomeModule",
")",
";",
"modules",
".",
"sort",
"(",
"function",
"("... | Create navigation nodes for all container children of the given reflection.
@param reflection The reflection whose children modules should be transformed into navigation nodes.
@param parent The parent NavigationItem of the newly created nodes. | [
"Create",
"navigation",
"nodes",
"for",
"all",
"container",
"children",
"of",
"the",
"given",
"reflection",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L331-L341 |
42,118 | alg/typedoc-dash-theme | bin/theme.js | buildGroups | function buildGroups(reflections, parent, callback) {
var state = -1;
var hasExternals = containsExternals(reflections);
sortReflections(reflections);
reflections.forEach(function (reflection) {
if (hasExternals && !... | javascript | function buildGroups(reflections, parent, callback) {
var state = -1;
var hasExternals = containsExternals(reflections);
sortReflections(reflections);
reflections.forEach(function (reflection) {
if (hasExternals && !... | [
"function",
"buildGroups",
"(",
"reflections",
",",
"parent",
",",
"callback",
")",
"{",
"var",
"state",
"=",
"-",
"1",
";",
"var",
"hasExternals",
"=",
"containsExternals",
"(",
"reflections",
")",
";",
"sortReflections",
"(",
"reflections",
")",
";",
"refl... | Create navigation nodes for the given list of reflections. The resulting nodes will be grouped into
an "internal" and an "external" section when applicable.
@param reflections The list of reflections which should be transformed into navigation nodes.
@param parent The parent NavigationItem of the newly created ... | [
"Create",
"navigation",
"nodes",
"for",
"the",
"given",
"list",
"of",
"reflections",
".",
"The",
"resulting",
"nodes",
"will",
"be",
"grouped",
"into",
"an",
"internal",
"and",
"an",
"external",
"section",
"when",
"applicable",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L350-L368 |
42,119 | alg/typedoc-dash-theme | bin/theme.js | build | function build(hasSeparateGlobals) {
var root = new output.NavigationItem('Index', 'index.html');
if (entryPoint == project) {
var globals = new output.NavigationItem('Globals', hasSeparateGlobals ? 'globals.html' : 'index.html', root);
... | javascript | function build(hasSeparateGlobals) {
var root = new output.NavigationItem('Index', 'index.html');
if (entryPoint == project) {
var globals = new output.NavigationItem('Globals', hasSeparateGlobals ? 'globals.html' : 'index.html', root);
... | [
"function",
"build",
"(",
"hasSeparateGlobals",
")",
"{",
"var",
"root",
"=",
"new",
"output",
".",
"NavigationItem",
"(",
"'Index'",
",",
"'index.html'",
")",
";",
"if",
"(",
"entryPoint",
"==",
"project",
")",
"{",
"var",
"globals",
"=",
"new",
"output",... | Build the navigation structure.
@param hasSeparateGlobals Has the project a separated globals.html file?
@return The root node of the generated navigation structure. | [
"Build",
"the",
"navigation",
"structure",
"."
] | 7d51c475af263afc4ea0654f93a47e4cb6c46472 | https://github.com/alg/typedoc-dash-theme/blob/7d51c475af263afc4ea0654f93a47e4cb6c46472/bin/theme.js#L375-L403 |
42,120 | thomasdondorf/phantomjs-pool | lib/worker/Worker.js | jobDone | function jobDone(err, data) {
// TODO: check if function was already called before
// check if we close the connection after this (to prevent memory leaks)
var closing = totalRequests > REQUESTS_BEFORE_WORKER_RESTART ? true : false;
var msg = {};
if (err) {
msg.err... | javascript | function jobDone(err, data) {
// TODO: check if function was already called before
// check if we close the connection after this (to prevent memory leaks)
var closing = totalRequests > REQUESTS_BEFORE_WORKER_RESTART ? true : false;
var msg = {};
if (err) {
msg.err... | [
"function",
"jobDone",
"(",
"err",
",",
"data",
")",
"{",
"// TODO: check if function was already called before",
"// check if we close the connection after this (to prevent memory leaks)",
"var",
"closing",
"=",
"totalRequests",
">",
"REQUESTS_BEFORE_WORKER_RESTART",
"?",
"true",
... | job was executed, lets inform the master | [
"job",
"was",
"executed",
"lets",
"inform",
"the",
"master"
] | f734ec445de543cc40497e4154e3077d7f8b753e | https://github.com/thomasdondorf/phantomjs-pool/blob/f734ec445de543cc40497e4154e3077d7f8b753e/lib/worker/Worker.js#L33-L60 |
42,121 | enyojs/onyx | src/ContextualPopup/ContextualPopup.js | function (rect) {
var s = '';
for (var n in rect) {
s += (n + ':' + rect[n] + (isNaN(rect[n]) ? '; ' : 'px; '));
}
this.addStyles(s);
} | javascript | function (rect) {
var s = '';
for (var n in rect) {
s += (n + ':' + rect[n] + (isNaN(rect[n]) ? '; ' : 'px; '));
}
this.addStyles(s);
} | [
"function",
"(",
"rect",
")",
"{",
"var",
"s",
"=",
"''",
";",
"for",
"(",
"var",
"n",
"in",
"rect",
")",
"{",
"s",
"+=",
"(",
"n",
"+",
"':'",
"+",
"rect",
"[",
"n",
"]",
"+",
"(",
"isNaN",
"(",
"rect",
"[",
"n",
"]",
")",
"?",
"'; '",
... | Positions the popup.
@todo seems to duplicate enyo.Control.setBounds()
@private | [
"Positions",
"the",
"popup",
"."
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/ContextualPopup/ContextualPopup.js#L346-L352 | |
42,122 | enyojs/onyx | src/ContextualPopup/ContextualPopup.js | function (node) {
var r = this.getBoundingRect(node);
var pageYOffset = (window.pageYOffset === undefined) ? document.documentElement.scrollTop : window.pageYOffset;
var pageXOffset = (window.pageXOffset === undefined) ? document.documentElement.scrollLeft : window.pageXOffset;
var rHeight = (r.height === unde... | javascript | function (node) {
var r = this.getBoundingRect(node);
var pageYOffset = (window.pageYOffset === undefined) ? document.documentElement.scrollTop : window.pageYOffset;
var pageXOffset = (window.pageXOffset === undefined) ? document.documentElement.scrollLeft : window.pageXOffset;
var rHeight = (r.height === unde... | [
"function",
"(",
"node",
")",
"{",
"var",
"r",
"=",
"this",
".",
"getBoundingRect",
"(",
"node",
")",
";",
"var",
"pageYOffset",
"=",
"(",
"window",
".",
"pageYOffset",
"===",
"undefined",
")",
"?",
"document",
".",
"documentElement",
".",
"scrollTop",
"... | Calculates the position of the popup relative to the page.
@param {Element} node
@private | [
"Calculates",
"the",
"position",
"of",
"the",
"popup",
"relative",
"to",
"the",
"page",
"."
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/ContextualPopup/ContextualPopup.js#L360-L369 | |
42,123 | enyojs/onyx | src/ContextualPopup/ContextualPopup.js | function () {
if (this.showing && this.hasNode() && this.activator) {
this.resetPositioning();
this.activatorOffset = this.getPageOffset(this.activator);
var innerWidth = this.getViewWidth();
var innerHeight = this.getViewHeight();
//These are the view "flush boundaries"
var topFlushPt = this.vertF... | javascript | function () {
if (this.showing && this.hasNode() && this.activator) {
this.resetPositioning();
this.activatorOffset = this.getPageOffset(this.activator);
var innerWidth = this.getViewWidth();
var innerHeight = this.getViewHeight();
//These are the view "flush boundaries"
var topFlushPt = this.vertF... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"showing",
"&&",
"this",
".",
"hasNode",
"(",
")",
"&&",
"this",
".",
"activator",
")",
"{",
"this",
".",
"resetPositioning",
"(",
")",
";",
"this",
".",
"activatorOffset",
"=",
"this",
".",
"getPage... | Adjusts the popup position + nub location & direction.
ContextualPopup positioning rules:
1. Activator Location:
1. If activator is located in a corner then position using a flush style.
1. Attempt vertical first.
2. Horizontal if vertical doesn't fit.
2. If not in a corner then check if the activator is located in o... | [
"Adjusts",
"the",
"popup",
"position",
"+",
"nub",
"location",
"&",
"direction",
"."
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/ContextualPopup/ContextualPopup.js#L413-L482 | |
42,124 | enyojs/onyx | src/ContextualPopup/ContextualPopup.js | function () {
this.resetPositioning();
this.addClass('vertical');
var clientRect = this.getBoundingRect(this.node);
var innerHeight = this.getViewHeight();
if (this.floating){
if (this.activatorOffset.top < (innerHeight / 2)) {
this.applyPosition({top: this.activatorOffset.top + this.activatorOffset.... | javascript | function () {
this.resetPositioning();
this.addClass('vertical');
var clientRect = this.getBoundingRect(this.node);
var innerHeight = this.getViewHeight();
if (this.floating){
if (this.activatorOffset.top < (innerHeight / 2)) {
this.applyPosition({top: this.activatorOffset.top + this.activatorOffset.... | [
"function",
"(",
")",
"{",
"this",
".",
"resetPositioning",
"(",
")",
";",
"this",
".",
"addClass",
"(",
"'vertical'",
")",
";",
"var",
"clientRect",
"=",
"this",
".",
"getBoundingRect",
"(",
"this",
".",
"node",
")",
";",
"var",
"innerHeight",
"=",
"t... | Moves the popup below or above the activator and verifies that it fits onscreen.
@return {Boolean} `true` if vertical positioning can be used; otherwise, `false`.
@private | [
"Moves",
"the",
"popup",
"below",
"or",
"above",
"the",
"activator",
"and",
"verifies",
"that",
"it",
"fits",
"onscreen",
"."
] | 919ea0da6f05296aa5ca0b5f45f0b439ac4a906a | https://github.com/enyojs/onyx/blob/919ea0da6f05296aa5ca0b5f45f0b439ac4a906a/src/ContextualPopup/ContextualPopup.js#L490-L521 | |
42,125 | takuhii/PhantomJS-25_Beta | install.js | tryPhantomjsInLib | function tryPhantomjsInLib() {
return Q.fcall(function () {
return findValidPhantomJsBinary(path.resolve(__dirname, './lib/location.js'))
}).then(function (binaryLocation) {
if (binaryLocation) {
console.log('PhantomJS is previously installed at', binaryLocation)
exit(0)
}
}).fail(function... | javascript | function tryPhantomjsInLib() {
return Q.fcall(function () {
return findValidPhantomJsBinary(path.resolve(__dirname, './lib/location.js'))
}).then(function (binaryLocation) {
if (binaryLocation) {
console.log('PhantomJS is previously installed at', binaryLocation)
exit(0)
}
}).fail(function... | [
"function",
"tryPhantomjsInLib",
"(",
")",
"{",
"return",
"Q",
".",
"fcall",
"(",
"function",
"(",
")",
"{",
"return",
"findValidPhantomJsBinary",
"(",
"path",
".",
"resolve",
"(",
"__dirname",
",",
"'./lib/location.js'",
")",
")",
"}",
")",
".",
"then",
"... | Check to see if the binary in lib is OK to use. If successful, exit the process. | [
"Check",
"to",
"see",
"if",
"the",
"binary",
"in",
"lib",
"is",
"OK",
"to",
"use",
".",
"If",
"successful",
"exit",
"the",
"process",
"."
] | 5629951fa99aa54fd0b52102679a254108c3e182 | https://github.com/takuhii/PhantomJS-25_Beta/blob/5629951fa99aa54fd0b52102679a254108c3e182/install.js#L314-L325 |
42,126 | takuhii/PhantomJS-25_Beta | install.js | tryPhantomjsOnPath | function tryPhantomjsOnPath() {
if (getTargetPlatform() != process.platform || getTargetArch() != process.arch) {
console.log('Building for target platform ' + getTargetPlatform() + '/' + getTargetArch() +
'. Skipping PATH search')
return Q.resolve(false)
}
return Q.nfcall(which, 'phantom... | javascript | function tryPhantomjsOnPath() {
if (getTargetPlatform() != process.platform || getTargetArch() != process.arch) {
console.log('Building for target platform ' + getTargetPlatform() + '/' + getTargetArch() +
'. Skipping PATH search')
return Q.resolve(false)
}
return Q.nfcall(which, 'phantom... | [
"function",
"tryPhantomjsOnPath",
"(",
")",
"{",
"if",
"(",
"getTargetPlatform",
"(",
")",
"!=",
"process",
".",
"platform",
"||",
"getTargetArch",
"(",
")",
"!=",
"process",
".",
"arch",
")",
"{",
"console",
".",
"log",
"(",
"'Building for target platform '",... | Check to see if the binary on PATH is OK to use. If successful, exit the process. | [
"Check",
"to",
"see",
"if",
"the",
"binary",
"on",
"PATH",
"is",
"OK",
"to",
"use",
".",
"If",
"successful",
"exit",
"the",
"process",
"."
] | 5629951fa99aa54fd0b52102679a254108c3e182 | https://github.com/takuhii/PhantomJS-25_Beta/blob/5629951fa99aa54fd0b52102679a254108c3e182/install.js#L330-L379 |
42,127 | takuhii/PhantomJS-25_Beta | install.js | downloadPhantomjs | function downloadPhantomjs() {
var downloadSpec = getDownloadSpec()
if (!downloadSpec) {
console.error(
'Unexpected platform or architecture: ' + getTargetPlatform() + '/' + getTargetArch() + '\n' +
'It seems there is no binary available for your platform/architecture\n' +
'Try to instal... | javascript | function downloadPhantomjs() {
var downloadSpec = getDownloadSpec()
if (!downloadSpec) {
console.error(
'Unexpected platform or architecture: ' + getTargetPlatform() + '/' + getTargetArch() + '\n' +
'It seems there is no binary available for your platform/architecture\n' +
'Try to instal... | [
"function",
"downloadPhantomjs",
"(",
")",
"{",
"var",
"downloadSpec",
"=",
"getDownloadSpec",
"(",
")",
"if",
"(",
"!",
"downloadSpec",
")",
"{",
"console",
".",
"error",
"(",
"'Unexpected platform or architecture: '",
"+",
"getTargetPlatform",
"(",
")",
"+",
"... | Download phantomjs, reusing the existing copy on disk if available.
Exits immediately if there is no binary to download.
@return {Promise.<string>} The path to the downloaded file. | [
"Download",
"phantomjs",
"reusing",
"the",
"existing",
"copy",
"on",
"disk",
"if",
"available",
".",
"Exits",
"immediately",
"if",
"there",
"is",
"no",
"binary",
"to",
"download",
"."
] | 5629951fa99aa54fd0b52102679a254108c3e182 | https://github.com/takuhii/PhantomJS-25_Beta/blob/5629951fa99aa54fd0b52102679a254108c3e182/install.js#L395-L429 |
42,128 | neyric/webhookit | public/javascripts/yui/uploader/uploader.js | function()
{
//kill the Flash Player instance
if(this._swf)
{
var container = YAHOO.util.Dom.get(this._containerID);
container.removeChild(this._swf);
}
var instanceName = this._id;
//null out properties
for(var prop in this)
{
if(YAHOO.lang.hasOwnProperty(this, prop))
{
this[prop... | javascript | function()
{
//kill the Flash Player instance
if(this._swf)
{
var container = YAHOO.util.Dom.get(this._containerID);
container.removeChild(this._swf);
}
var instanceName = this._id;
//null out properties
for(var prop in this)
{
if(YAHOO.lang.hasOwnProperty(this, prop))
{
this[prop... | [
"function",
"(",
")",
"{",
"//kill the Flash Player instance",
"if",
"(",
"this",
".",
"_swf",
")",
"{",
"var",
"container",
"=",
"YAHOO",
".",
"util",
".",
"Dom",
".",
"get",
"(",
"this",
".",
"_containerID",
")",
";",
"container",
".",
"removeChild",
"... | Nulls out the entire FlashAdapter instance and related objects and removes attached
event listeners and clears out DOM elements inside the container. After calling
this method, the instance reference should be expliclitly nulled by implementer,
as in myChart = null. Use with caution!
@method destroy | [
"Nulls",
"out",
"the",
"entire",
"FlashAdapter",
"instance",
"and",
"related",
"objects",
"and",
"removes",
"attached",
"event",
"listeners",
"and",
"clears",
"out",
"DOM",
"elements",
"inside",
"the",
"container",
".",
"After",
"calling",
"this",
"method",
"the... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/uploader/uploader.js#L457-L477 | |
42,129 | neyric/webhookit | public/javascripts/yui/uploader/uploader.js | function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode, buttonSkin)
{
//standard SWFObject embed
var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
if(expressInstall)
{
swfObj.useExpressInstall(expressInstall);
}
//make su... | javascript | function(swfURL, containerID, swfID, version, backgroundColor, expressInstall, wmode, buttonSkin)
{
//standard SWFObject embed
var swfObj = new YAHOO.deconcept.SWFObject(swfURL, swfID, "100%", "100%", version, backgroundColor);
if(expressInstall)
{
swfObj.useExpressInstall(expressInstall);
}
//make su... | [
"function",
"(",
"swfURL",
",",
"containerID",
",",
"swfID",
",",
"version",
",",
"backgroundColor",
",",
"expressInstall",
",",
"wmode",
",",
"buttonSkin",
")",
"{",
"//standard SWFObject embed",
"var",
"swfObj",
"=",
"new",
"YAHOO",
".",
"deconcept",
".",
"S... | Embeds the SWF in the page and associates it with this instance.
@method _embedSWF
@private | [
"Embeds",
"the",
"SWF",
"in",
"the",
"page",
"and",
"associates",
"it",
"with",
"this",
"instance",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/uploader/uploader.js#L485-L526 | |
42,130 | neyric/webhookit | public/javascripts/yui/uploader/uploader.js | function()
{
this._initialized = false;
this._initAttributes(this._attributes);
this.setAttributes(this._attributes, true);
this._initialized = true;
this.fireEvent("contentReady");
} | javascript | function()
{
this._initialized = false;
this._initAttributes(this._attributes);
this.setAttributes(this._attributes, true);
this._initialized = true;
this.fireEvent("contentReady");
} | [
"function",
"(",
")",
"{",
"this",
".",
"_initialized",
"=",
"false",
";",
"this",
".",
"_initAttributes",
"(",
"this",
".",
"_attributes",
")",
";",
"this",
".",
"setAttributes",
"(",
"this",
".",
"_attributes",
",",
"true",
")",
";",
"this",
".",
"_i... | Called when the SWF has been initialized.
@method _loadHandler
@private | [
"Called",
"when",
"the",
"SWF",
"has",
"been",
"initialized",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/uploader/uploader.js#L557-L565 | |
42,131 | neyric/webhookit | public/javascripts/yui/uploader/uploader.js | function(fileID, uploadScriptPath, method, vars, fieldName)
{
this._swf.upload(fileID, uploadScriptPath, method, vars, fieldName);
} | javascript | function(fileID, uploadScriptPath, method, vars, fieldName)
{
this._swf.upload(fileID, uploadScriptPath, method, vars, fieldName);
} | [
"function",
"(",
"fileID",
",",
"uploadScriptPath",
",",
"method",
",",
"vars",
",",
"fieldName",
")",
"{",
"this",
".",
"_swf",
".",
"upload",
"(",
"fileID",
",",
"uploadScriptPath",
",",
"method",
",",
"vars",
",",
"fieldName",
")",
";",
"}"
] | Starts the upload of the file specified by fileID to the location specified by uploadScriptPath.
@param fileID {String} The id of the file to start uploading.
@param uploadScriptPath {String} The URL of the upload location.
@param method {String} Either "GET" or "POST", specifying how the variables accompanying the fi... | [
"Starts",
"the",
"upload",
"of",
"the",
"file",
"specified",
"by",
"fileID",
"to",
"the",
"location",
"specified",
"by",
"uploadScriptPath",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/uploader/uploader.js#L937-L940 | |
42,132 | neyric/webhookit | public/javascripts/yui/uploader/uploader.js | function(fileIDs, uploadScriptPath, method, vars, fieldName)
{
this._swf.uploadThese(fileIDs, uploadScriptPath, method, vars, fieldName);
} | javascript | function(fileIDs, uploadScriptPath, method, vars, fieldName)
{
this._swf.uploadThese(fileIDs, uploadScriptPath, method, vars, fieldName);
} | [
"function",
"(",
"fileIDs",
",",
"uploadScriptPath",
",",
"method",
",",
"vars",
",",
"fieldName",
")",
"{",
"this",
".",
"_swf",
".",
"uploadThese",
"(",
"fileIDs",
",",
"uploadScriptPath",
",",
"method",
",",
"vars",
",",
"fieldName",
")",
";",
"}"
] | Starts the upload of the files specified by fileIDs, or adds them to a currently running queue. The upload queue is automatically managed.
@param fileIDs {Array} The ids of the files to start uploading.
@param uploadScriptPath {String} The URL of the upload location.
@param method {String} Either "GET" or "POST", spec... | [
"Starts",
"the",
"upload",
"of",
"the",
"files",
"specified",
"by",
"fileIDs",
"or",
"adds",
"them",
"to",
"a",
"currently",
"running",
"queue",
".",
"The",
"upload",
"queue",
"is",
"automatically",
"managed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/uploader/uploader.js#L952-L955 | |
42,133 | neyric/webhookit | public/javascripts/yui/uploader/uploader.js | function(uploadScriptPath, method, vars, fieldName)
{
this._swf.uploadAll(uploadScriptPath, method, vars, fieldName);
} | javascript | function(uploadScriptPath, method, vars, fieldName)
{
this._swf.uploadAll(uploadScriptPath, method, vars, fieldName);
} | [
"function",
"(",
"uploadScriptPath",
",",
"method",
",",
"vars",
",",
"fieldName",
")",
"{",
"this",
".",
"_swf",
".",
"uploadAll",
"(",
"uploadScriptPath",
",",
"method",
",",
"vars",
",",
"fieldName",
")",
";",
"}"
] | Starts uploading all files in the queue. If this function is called, the upload queue is automatically managed.
@param uploadScriptPath {String} The URL of the upload location.
@param method {String} Either "GET" or "POST", specifying how the variables accompanying the file upload POST request should be submitted. "GE... | [
"Starts",
"uploading",
"all",
"files",
"in",
"the",
"queue",
".",
"If",
"this",
"function",
"is",
"called",
"the",
"upload",
"queue",
"is",
"automatically",
"managed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/uploader/uploader.js#L966-L969 | |
42,134 | neyric/webhookit | public/javascripts/webhookit/editor/wiring_editor.js | function() {
var value = this.getValue();
if(value.name === "") {
this.alert("Please choose a name");
return;
}
this.tempSavedWiring = {name: value.name, working: value.working, language: this.options.languageName };
this.adapter.saveWiring(this.tempSavedWiring, {
succ... | javascript | function() {
var value = this.getValue();
if(value.name === "") {
this.alert("Please choose a name");
return;
}
this.tempSavedWiring = {name: value.name, working: value.working, language: this.options.languageName };
this.adapter.saveWiring(this.tempSavedWiring, {
succ... | [
"function",
"(",
")",
"{",
"var",
"value",
"=",
"this",
".",
"getValue",
"(",
")",
";",
"if",
"(",
"value",
".",
"name",
"===",
"\"\"",
")",
"{",
"this",
".",
"alert",
"(",
"\"Please choose a name\"",
")",
";",
"return",
";",
"}",
"this",
".",
"tem... | save the current module
@method saveModule | [
"save",
"the",
"current",
"module"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/webhookit/editor/wiring_editor.js#L19-L35 | |
42,135 | neyric/webhookit | public/javascripts/webhookit/editor/wiring_editor.js | function() {
webhookit.WiringEditor.superclass.renderButtons.call(this);
var toolbar = YAHOO.util.Dom.get('toolbar');
var editTemplateButton = new YAHOO.widget.Button({ label:"Edit template", id:"WiringEditor-templateButton", container: toolbar });
editTemplateButton.on("click", webhookit.e... | javascript | function() {
webhookit.WiringEditor.superclass.renderButtons.call(this);
var toolbar = YAHOO.util.Dom.get('toolbar');
var editTemplateButton = new YAHOO.widget.Button({ label:"Edit template", id:"WiringEditor-templateButton", container: toolbar });
editTemplateButton.on("click", webhookit.e... | [
"function",
"(",
")",
"{",
"webhookit",
".",
"WiringEditor",
".",
"superclass",
".",
"renderButtons",
".",
"call",
"(",
"this",
")",
";",
"var",
"toolbar",
"=",
"YAHOO",
".",
"util",
".",
"Dom",
".",
"get",
"(",
"'toolbar'",
")",
";",
"var",
"editTempl... | Add Some buttons | [
"Add",
"Some",
"buttons"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/webhookit/editor/wiring_editor.js#L55-L68 | |
42,136 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(method, formOpts, callback) {
var options = null;
if(YAHOO.lang.isObject(formOpts) && YAHOO.lang.isArray(formOpts.fields) ) {
options = formOpts;
}
// create the form directly from the method params
else {
options = inputEx.RPC.formForMethod(method);
/... | javascript | function(method, formOpts, callback) {
var options = null;
if(YAHOO.lang.isObject(formOpts) && YAHOO.lang.isArray(formOpts.fields) ) {
options = formOpts;
}
// create the form directly from the method params
else {
options = inputEx.RPC.formForMethod(method);
/... | [
"function",
"(",
"method",
",",
"formOpts",
",",
"callback",
")",
"{",
"var",
"options",
"=",
"null",
";",
"if",
"(",
"YAHOO",
".",
"lang",
".",
"isObject",
"(",
"formOpts",
")",
"&&",
"YAHOO",
".",
"lang",
".",
"isArray",
"(",
"formOpts",
".",
"fiel... | Build a form to run a service !
@param {function} method A method created through inputEx.RPC.Service
@param {Object} formOpts | [
"Build",
"a",
"form",
"to",
"run",
"a",
"service",
"!"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L14-L53 | |
42,137 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(method) {
// convert the method parameters into a json-schema :
var schemaIdentifierMap = {};
schemaIdentifierMap[method.name] = {
id: method.name,
type:'object',
properties:{}
};
for(var i = 0 ; i < method._parameters.length ; i++) {
var... | javascript | function(method) {
// convert the method parameters into a json-schema :
var schemaIdentifierMap = {};
schemaIdentifierMap[method.name] = {
id: method.name,
type:'object',
properties:{}
};
for(var i = 0 ; i < method._parameters.length ; i++) {
var... | [
"function",
"(",
"method",
")",
"{",
"// convert the method parameters into a json-schema :",
"var",
"schemaIdentifierMap",
"=",
"{",
"}",
";",
"schemaIdentifierMap",
"[",
"method",
".",
"name",
"]",
"=",
"{",
"id",
":",
"method",
".",
"name",
",",
"type",
":",
... | Return the inputEx form options from a method
@param {function} method A method created through inputEx.RPC.Service | [
"Return",
"the",
"inputEx",
"form",
"options",
"from",
"a",
"method"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L59-L83 | |
42,138 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(serviceName, method) {
if(this[method]){
throw new Error("WARNING: "+ serviceName+ " already exists for service. Unable to generate function");
}
method.name = serviceName;
var self = this;
var func = function(data, opts) {
var envelope = rpc.Envelope[method.envelope || self._smd... | javascript | function(serviceName, method) {
if(this[method]){
throw new Error("WARNING: "+ serviceName+ " already exists for service. Unable to generate function");
}
method.name = serviceName;
var self = this;
var func = function(data, opts) {
var envelope = rpc.Envelope[method.envelope || self._smd... | [
"function",
"(",
"serviceName",
",",
"method",
")",
"{",
"if",
"(",
"this",
"[",
"method",
"]",
")",
"{",
"throw",
"new",
"Error",
"(",
"\"WARNING: \"",
"+",
"serviceName",
"+",
"\" already exists for service. Unable to generate function\"",
")",
";",
"}",
"meth... | Generate the function from a service definition
@method _generateService
@param {String} serviceName
@param {Method definition} method | [
"Generate",
"the",
"function",
"from",
"a",
"service",
"definition"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L127-L195 | |
42,139 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(callback) {
var serviceDefs = this._smd.services;
// Generate the methods to this object
for(var serviceName in serviceDefs){
if( serviceDefs.hasOwnProperty(serviceName) ) {
// Get the object that will contain the method.
// handles "namespaced" service... | javascript | function(callback) {
var serviceDefs = this._smd.services;
// Generate the methods to this object
for(var serviceName in serviceDefs){
if( serviceDefs.hasOwnProperty(serviceName) ) {
// Get the object that will contain the method.
// handles "namespaced" service... | [
"function",
"(",
"callback",
")",
"{",
"var",
"serviceDefs",
"=",
"this",
".",
"_smd",
".",
"services",
";",
"// Generate the methods to this object",
"for",
"(",
"var",
"serviceName",
"in",
"serviceDefs",
")",
"{",
"if",
"(",
"serviceDefs",
".",
"hasOwnProperty... | Process the SMD definition
@method process | [
"Process",
"the",
"SMD",
"definition"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L201-L226 | |
42,140 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(url, callback) {
// TODO: if url is not in the same domain, we should use jsonp !
util.Connect.asyncRequest('GET', url, {
success: function(o) {
try {
this._smd = lang.JSON.parse(o.responseText);
this.process(callback);
}
... | javascript | function(url, callback) {
// TODO: if url is not in the same domain, we should use jsonp !
util.Connect.asyncRequest('GET', url, {
success: function(o) {
try {
this._smd = lang.JSON.parse(o.responseText);
this.process(callback);
}
... | [
"function",
"(",
"url",
",",
"callback",
")",
"{",
"// TODO: if url is not in the same domain, we should use jsonp !",
"util",
".",
"Connect",
".",
"asyncRequest",
"(",
"'GET'",
",",
"url",
",",
"{",
"success",
":",
"function",
"(",
"o",
")",
"{",
"try",
"{",
... | Download the SMD at the given url
@method fetch
@param {String} Absolute or relative url | [
"Download",
"the",
"SMD",
"at",
"the",
"given",
"url"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L233-L257 | |
42,141 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(r) {
return util.Connect.asyncRequest('POST', r.target, r.callback, r.data );
} | javascript | function(r) {
return util.Connect.asyncRequest('POST', r.target, r.callback, r.data );
} | [
"function",
"(",
"r",
")",
"{",
"return",
"util",
".",
"Connect",
".",
"asyncRequest",
"(",
"'POST'",
",",
"r",
".",
"target",
",",
"r",
".",
"callback",
",",
"r",
".",
"data",
")",
";",
"}"
] | Build a ajax request using 'POST' method
@method POST
@param {Object} r Object specifying target, callback and data attributes | [
"Build",
"a",
"ajax",
"request",
"using",
"POST",
"method"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L280-L282 | |
42,142 | neyric/webhookit | public/javascripts/inputex/js/rpc/inputex-rpc.js | function(smd, method, data) {
var eURI = encodeURIComponent;
var params = [];
for(var name in data){
if(data.hasOwnProperty(name)){
var value = data[name];
if(lang.isArray(value)){
for(var i=0; i < value.length; i++){
... | javascript | function(smd, method, data) {
var eURI = encodeURIComponent;
var params = [];
for(var name in data){
if(data.hasOwnProperty(name)){
var value = data[name];
if(lang.isArray(value)){
for(var i=0; i < value.length; i++){
... | [
"function",
"(",
"smd",
",",
"method",
",",
"data",
")",
"{",
"var",
"eURI",
"=",
"encodeURIComponent",
";",
"var",
"params",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"name",
"in",
"data",
")",
"{",
"if",
"(",
"data",
".",
"hasOwnProperty",
"(",
"nam... | Serialize data into URI encoded parameters | [
"Serialize",
"data",
"into",
"URI",
"encoded",
"parameters"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/inputex/js/rpc/inputex-rpc.js#L348-L366 | |
42,143 | neyric/webhookit | public/javascripts/yui/container/container.js | function (owner) {
this.owner = owner;
this.configChangedEvent =
this.createEvent(Config.CONFIG_CHANGED_EVENT);
this.configChangedEvent.signature = CustomEvent.LIST;
this.queueInProgress = false;
this.config = {};
th... | javascript | function (owner) {
this.owner = owner;
this.configChangedEvent =
this.createEvent(Config.CONFIG_CHANGED_EVENT);
this.configChangedEvent.signature = CustomEvent.LIST;
this.queueInProgress = false;
this.config = {};
th... | [
"function",
"(",
"owner",
")",
"{",
"this",
".",
"owner",
"=",
"owner",
";",
"this",
".",
"configChangedEvent",
"=",
"this",
".",
"createEvent",
"(",
"Config",
".",
"CONFIG_CHANGED_EVENT",
")",
";",
"this",
".",
"configChangedEvent",
".",
"signature",
"=",
... | Initializes the configuration Object and all of its local members.
@method init
@param {Object} owner The owner Object to which this Config
Object belongs | [
"Initializes",
"the",
"configuration",
"Object",
"and",
"all",
"of",
"its",
"local",
"members",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L110-L123 | |
42,144 | neyric/webhookit | public/javascripts/yui/container/container.js | function ( key, propertyObject ) {
key = key.toLowerCase();
this.config[key] = propertyObject;
propertyObject.event = this.createEvent(key, { scope: this.owner });
propertyObject.event.signature = CustomEvent.LIST;
p... | javascript | function ( key, propertyObject ) {
key = key.toLowerCase();
this.config[key] = propertyObject;
propertyObject.event = this.createEvent(key, { scope: this.owner });
propertyObject.event.signature = CustomEvent.LIST;
p... | [
"function",
"(",
"key",
",",
"propertyObject",
")",
"{",
"key",
"=",
"key",
".",
"toLowerCase",
"(",
")",
";",
"this",
".",
"config",
"[",
"key",
"]",
"=",
"propertyObject",
";",
"propertyObject",
".",
"event",
"=",
"this",
".",
"createEvent",
"(",
"ke... | Adds a property to the Config Object's private config hash.
@method addProperty
@param {String} key The configuration property's name
@param {Object} propertyObject The Object containing all of this
property's arguments | [
"Adds",
"a",
"property",
"to",
"the",
"Config",
"Object",
"s",
"private",
"config",
"hash",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L167-L189 | |
42,145 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var cfg = {},
currCfg = this.config,
prop,
property;
for (prop in currCfg) {
if (Lang.hasOwnProperty(currCfg, prop)) {
property = currCfg[prop];
if (pro... | javascript | function () {
var cfg = {},
currCfg = this.config,
prop,
property;
for (prop in currCfg) {
if (Lang.hasOwnProperty(currCfg, prop)) {
property = currCfg[prop];
if (pro... | [
"function",
"(",
")",
"{",
"var",
"cfg",
"=",
"{",
"}",
",",
"currCfg",
"=",
"this",
".",
"config",
",",
"prop",
",",
"property",
";",
"for",
"(",
"prop",
"in",
"currCfg",
")",
"{",
"if",
"(",
"Lang",
".",
"hasOwnProperty",
"(",
"currCfg",
",",
"... | Returns a key-value configuration map of the values currently set in
the Config Object.
@method getConfig
@return {Object} The current config, represented in a key-value map | [
"Returns",
"a",
"key",
"-",
"value",
"configuration",
"map",
"of",
"the",
"values",
"currently",
"set",
"in",
"the",
"Config",
"Object",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L197-L214 | |
42,146 | neyric/webhookit | public/javascripts/yui/container/container.js | function (key) {
var property = this.config[key.toLowerCase()];
if (property && property.event) {
return property.value;
} else {
return undefined;
}
} | javascript | function (key) {
var property = this.config[key.toLowerCase()];
if (property && property.event) {
return property.value;
} else {
return undefined;
}
} | [
"function",
"(",
"key",
")",
"{",
"var",
"property",
"=",
"this",
".",
"config",
"[",
"key",
".",
"toLowerCase",
"(",
")",
"]",
";",
"if",
"(",
"property",
"&&",
"property",
".",
"event",
")",
"{",
"return",
"property",
".",
"value",
";",
"}",
"els... | Returns the value of specified property.
@method getProperty
@param {String} key The name of the property
@return {Object} The value of the specified property | [
"Returns",
"the",
"value",
"of",
"specified",
"property",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L222-L229 | |
42,147 | neyric/webhookit | public/javascripts/yui/container/container.js | function (key) {
key = key.toLowerCase();
var property = this.config[key];
if (property && property.event) {
if (this.initialConfig[key] &&
!Lang.isUndefined(this.initialConfig[key])) {
this.setProp... | javascript | function (key) {
key = key.toLowerCase();
var property = this.config[key];
if (property && property.event) {
if (this.initialConfig[key] &&
!Lang.isUndefined(this.initialConfig[key])) {
this.setProp... | [
"function",
"(",
"key",
")",
"{",
"key",
"=",
"key",
".",
"toLowerCase",
"(",
")",
";",
"var",
"property",
"=",
"this",
".",
"config",
"[",
"key",
"]",
";",
"if",
"(",
"property",
"&&",
"property",
".",
"event",
")",
"{",
"if",
"(",
"this",
".",
... | Resets the specified property's value to its initial value.
@method resetProperty
@param {String} key The name of the property
@return {Boolean} True is the property was reset, false if not | [
"Resets",
"the",
"specified",
"property",
"s",
"value",
"to",
"its",
"initial",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L237-L259 | |
42,148 | neyric/webhookit | public/javascripts/yui/container/container.js | function (key) {
key = key.toLowerCase();
var property = this.config[key];
if (property && property.event &&
!Lang.isUndefined(property.value)) {
if (this.queueInProgress) {
this.queueProperty(key)... | javascript | function (key) {
key = key.toLowerCase();
var property = this.config[key];
if (property && property.event &&
!Lang.isUndefined(property.value)) {
if (this.queueInProgress) {
this.queueProperty(key)... | [
"function",
"(",
"key",
")",
"{",
"key",
"=",
"key",
".",
"toLowerCase",
"(",
")",
";",
"var",
"property",
"=",
"this",
".",
"config",
"[",
"key",
"]",
";",
"if",
"(",
"property",
"&&",
"property",
".",
"event",
"&&",
"!",
"Lang",
".",
"isUndefined... | Fires the event for a property using the property's current value.
@method refireEvent
@param {String} key The name of the property | [
"Fires",
"the",
"event",
"for",
"a",
"property",
"using",
"the",
"property",
"s",
"current",
"value",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L423-L444 | |
42,149 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var i,
queueItem,
key,
value,
property;
this.queueInProgress = true;
for (i = 0;i < this.eventQueue.length; i++) {
queueItem = this.eventQueue[i];
if (queu... | javascript | function () {
var i,
queueItem,
key,
value,
property;
this.queueInProgress = true;
for (i = 0;i < this.eventQueue.length; i++) {
queueItem = this.eventQueue[i];
if (queu... | [
"function",
"(",
")",
"{",
"var",
"i",
",",
"queueItem",
",",
"key",
",",
"value",
",",
"property",
";",
"this",
".",
"queueInProgress",
"=",
"true",
";",
"for",
"(",
"i",
"=",
"0",
";",
"i",
"<",
"this",
".",
"eventQueue",
".",
"length",
";",
"i... | Fires the normalized list of queued property change events
@method fireQueue | [
"Fires",
"the",
"normalized",
"list",
"of",
"queued",
"property",
"change",
"events"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L499-L529 | |
42,150 | neyric/webhookit | public/javascripts/yui/container/container.js | function (key, handler, obj, overrideContext) {
var property = this.config[key.toLowerCase()];
if (property && property.event) {
if (!Config.alreadySubscribed(property.event, handler, obj)) {
property.event.subscribe(handler, obj, overrideContext);
... | javascript | function (key, handler, obj, overrideContext) {
var property = this.config[key.toLowerCase()];
if (property && property.event) {
if (!Config.alreadySubscribed(property.event, handler, obj)) {
property.event.subscribe(handler, obj, overrideContext);
... | [
"function",
"(",
"key",
",",
"handler",
",",
"obj",
",",
"overrideContext",
")",
"{",
"var",
"property",
"=",
"this",
".",
"config",
"[",
"key",
".",
"toLowerCase",
"(",
")",
"]",
";",
"if",
"(",
"property",
"&&",
"property",
".",
"event",
")",
"{",
... | Subscribes an external handler to the change event for any
given property.
@method subscribeToConfigEvent
@param {String} key The property name
@param {Function} handler The handler function to use subscribe to
the property's event
@param {Object} obj The Object to use for scoping the event handler
(see CustomEvent doc... | [
"Subscribes",
"an",
"external",
"handler",
"to",
"the",
"change",
"event",
"for",
"any",
"given",
"property",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L546-L559 | |
42,151 | neyric/webhookit | public/javascripts/yui/container/container.js | function (key, handler, obj) {
var property = this.config[key.toLowerCase()];
if (property && property.event) {
return property.event.unsubscribe(handler, obj);
} else {
return false;
}
} | javascript | function (key, handler, obj) {
var property = this.config[key.toLowerCase()];
if (property && property.event) {
return property.event.unsubscribe(handler, obj);
} else {
return false;
}
} | [
"function",
"(",
"key",
",",
"handler",
",",
"obj",
")",
"{",
"var",
"property",
"=",
"this",
".",
"config",
"[",
"key",
".",
"toLowerCase",
"(",
")",
"]",
";",
"if",
"(",
"property",
"&&",
"property",
".",
"event",
")",
"{",
"return",
"property",
... | Unsubscribes an external handler from the change event for any
given property.
@method unsubscribeFromConfigEvent
@param {String} key The property name
@param {Function} handler The handler function to use subscribe to
the property's event
@param {Object} obj The Object to use for scoping the event
handler (see CustomE... | [
"Unsubscribes",
"an",
"external",
"handler",
"from",
"the",
"change",
"event",
"for",
"any",
"given",
"property",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L573-L580 | |
42,152 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var output = "",
queueItem,
q,
nQueue = this.eventQueue.length;
for (q = 0; q < nQueue; q++) {
queueItem = this.eventQueue[q];
if (queueItem) {
output += queueItem[0]... | javascript | function () {
var output = "",
queueItem,
q,
nQueue = this.eventQueue.length;
for (q = 0; q < nQueue; q++) {
queueItem = this.eventQueue[q];
if (queueItem) {
output += queueItem[0]... | [
"function",
"(",
")",
"{",
"var",
"output",
"=",
"\"\"",
",",
"queueItem",
",",
"q",
",",
"nQueue",
"=",
"this",
".",
"eventQueue",
".",
"length",
";",
"for",
"(",
"q",
"=",
"0",
";",
"q",
"<",
"nQueue",
";",
"q",
"++",
")",
"{",
"queueItem",
"... | Returns a string representation of the Config object's current
CustomEvent queue
@method outputEventQueue
@return {String} The string list of CustomEvents currently queued
for execution | [
"Returns",
"a",
"string",
"representation",
"of",
"the",
"Config",
"object",
"s",
"current",
"CustomEvent",
"queue"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L602-L616 | |
42,153 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oConfig = this.config,
sProperty,
oProperty;
for (sProperty in oConfig) {
if (Lang.hasOwnProperty(oConfig, sProperty)) {
oProperty = oConfig[sProperty];
oProperty.event.uns... | javascript | function () {
var oConfig = this.config,
sProperty,
oProperty;
for (sProperty in oConfig) {
if (Lang.hasOwnProperty(oConfig, sProperty)) {
oProperty = oConfig[sProperty];
oProperty.event.uns... | [
"function",
"(",
")",
"{",
"var",
"oConfig",
"=",
"this",
".",
"config",
",",
"sProperty",
",",
"oProperty",
";",
"for",
"(",
"sProperty",
"in",
"oConfig",
")",
"{",
"if",
"(",
"Lang",
".",
"hasOwnProperty",
"(",
"oConfig",
",",
"sProperty",
")",
")",
... | Sets all properties to null, unsubscribes all listeners from each
property's change event and all listeners from the configChangedEvent.
@method destroy | [
"Sets",
"all",
"properties",
"to",
"null",
"unsubscribes",
"all",
"listeners",
"from",
"each",
"property",
"s",
"change",
"event",
"and",
"all",
"listeners",
"from",
"the",
"configChangedEvent",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L623-L651 | |
42,154 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var isGeckoWin = (UA.gecko && this.platform == "windows");
if (isGeckoWin) {
// Help prevent spinning loading icon which
// started with FireFox 2.0.0.8/Win
var self = this;
setTimeout(function(){self._initResizeMoni... | javascript | function () {
var isGeckoWin = (UA.gecko && this.platform == "windows");
if (isGeckoWin) {
// Help prevent spinning loading icon which
// started with FireFox 2.0.0.8/Win
var self = this;
setTimeout(function(){self._initResizeMoni... | [
"function",
"(",
")",
"{",
"var",
"isGeckoWin",
"=",
"(",
"UA",
".",
"gecko",
"&&",
"this",
".",
"platform",
"==",
"\"windows\"",
")",
";",
"if",
"(",
"isGeckoWin",
")",
"{",
"// Help prevent spinning loading icon which ",
"// started with FireFox 2.0.0.8/Win",
"v... | Initialize an empty IFRAME that is placed out of the visible area
that can be used to detect text resize.
@method initResizeMonitor | [
"Initialize",
"an",
"empty",
"IFRAME",
"that",
"is",
"placed",
"out",
"of",
"the",
"visible",
"area",
"that",
"can",
"be",
"used",
"to",
"detect",
"text",
"resize",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1336-L1347 | |
42,155 | neyric/webhookit | public/javascripts/yui/container/container.js | function() {
var oDoc,
oIFrame,
sHTML;
function fireTextResize() {
Module.textResizeEvent.fire();
}
if (!UA.opera) {
oIFrame = Dom.get("_yuiResizeMonitor");
var supportsCWResize = this._... | javascript | function() {
var oDoc,
oIFrame,
sHTML;
function fireTextResize() {
Module.textResizeEvent.fire();
}
if (!UA.opera) {
oIFrame = Dom.get("_yuiResizeMonitor");
var supportsCWResize = this._... | [
"function",
"(",
")",
"{",
"var",
"oDoc",
",",
"oIFrame",
",",
"sHTML",
";",
"function",
"fireTextResize",
"(",
")",
"{",
"Module",
".",
"textResizeEvent",
".",
"fire",
"(",
")",
";",
"}",
"if",
"(",
"!",
"UA",
".",
"opera",
")",
"{",
"oIFrame",
"=... | Create and initialize the text resize monitoring iframe.
@protected
@method _initResizeMonitor | [
"Create",
"and",
"initialize",
"the",
"text",
"resize",
"monitoring",
"iframe",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1355-L1453 | |
42,156 | neyric/webhookit | public/javascripts/yui/container/container.js | function (headerContent) {
var oHeader = this.header || (this.header = createHeader());
if (headerContent.nodeName) {
oHeader.innerHTML = "";
oHeader.appendChild(headerContent);
} else {
oHeader.innerHTML = headerContent;
}... | javascript | function (headerContent) {
var oHeader = this.header || (this.header = createHeader());
if (headerContent.nodeName) {
oHeader.innerHTML = "";
oHeader.appendChild(headerContent);
} else {
oHeader.innerHTML = headerContent;
}... | [
"function",
"(",
"headerContent",
")",
"{",
"var",
"oHeader",
"=",
"this",
".",
"header",
"||",
"(",
"this",
".",
"header",
"=",
"createHeader",
"(",
")",
")",
";",
"if",
"(",
"headerContent",
".",
"nodeName",
")",
"{",
"oHeader",
".",
"innerHTML",
"="... | Sets the Module's header content to the string specified, or appends
the passed element to the header. If no header is present, one will
be automatically created. An empty string can be passed to the method
to clear the contents of the header.
@method setHeader
@param {String} headerContent The string used to set the ... | [
"Sets",
"the",
"Module",
"s",
"header",
"content",
"to",
"the",
"string",
"specified",
"or",
"appends",
"the",
"passed",
"element",
"to",
"the",
"header",
".",
"If",
"no",
"header",
"is",
"present",
"one",
"will",
"be",
"automatically",
"created",
".",
"An... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1508-L1525 | |
42,157 | neyric/webhookit | public/javascripts/yui/container/container.js | function (element) {
var oHeader = this.header || (this.header = createHeader());
oHeader.appendChild(element);
this.changeHeaderEvent.fire(element);
this.changeContentEvent.fire();
} | javascript | function (element) {
var oHeader = this.header || (this.header = createHeader());
oHeader.appendChild(element);
this.changeHeaderEvent.fire(element);
this.changeContentEvent.fire();
} | [
"function",
"(",
"element",
")",
"{",
"var",
"oHeader",
"=",
"this",
".",
"header",
"||",
"(",
"this",
".",
"header",
"=",
"createHeader",
"(",
")",
")",
";",
"oHeader",
".",
"appendChild",
"(",
"element",
")",
";",
"this",
".",
"changeHeaderEvent",
".... | Appends the passed element to the header. If no header is present,
one will be automatically created.
@method appendToHeader
@param {HTMLElement | DocumentFragment} element The element to
append to the header. In the case of a document fragment, the
children of the fragment will be appended to the header. | [
"Appends",
"the",
"passed",
"element",
"to",
"the",
"header",
".",
"If",
"no",
"header",
"is",
"present",
"one",
"will",
"be",
"automatically",
"created",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1535-L1543 | |
42,158 | neyric/webhookit | public/javascripts/yui/container/container.js | function (bodyContent) {
var oBody = this.body || (this.body = createBody());
if (bodyContent.nodeName) {
oBody.innerHTML = "";
oBody.appendChild(bodyContent);
} else {
oBody.innerHTML = bodyContent;
}
if (this... | javascript | function (bodyContent) {
var oBody = this.body || (this.body = createBody());
if (bodyContent.nodeName) {
oBody.innerHTML = "";
oBody.appendChild(bodyContent);
} else {
oBody.innerHTML = bodyContent;
}
if (this... | [
"function",
"(",
"bodyContent",
")",
"{",
"var",
"oBody",
"=",
"this",
".",
"body",
"||",
"(",
"this",
".",
"body",
"=",
"createBody",
"(",
")",
")",
";",
"if",
"(",
"bodyContent",
".",
"nodeName",
")",
"{",
"oBody",
".",
"innerHTML",
"=",
"\"\"",
... | Sets the Module's body content to the HTML specified.
If no body is present, one will be automatically created.
An empty string can be passed to the method to clear the contents of the body.
@method setBody
@param {String} bodyContent The HTML used to set the body.
As a convenience, non HTMLElement objects can also b... | [
"Sets",
"the",
"Module",
"s",
"body",
"content",
"to",
"the",
"HTML",
"specified",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1563-L1579 | |
42,159 | neyric/webhookit | public/javascripts/yui/container/container.js | function (footerContent) {
var oFooter = this.footer || (this.footer = createFooter());
if (footerContent.nodeName) {
oFooter.innerHTML = "";
oFooter.appendChild(footerContent);
} else {
oFooter.innerHTML = footerContent;
... | javascript | function (footerContent) {
var oFooter = this.footer || (this.footer = createFooter());
if (footerContent.nodeName) {
oFooter.innerHTML = "";
oFooter.appendChild(footerContent);
} else {
oFooter.innerHTML = footerContent;
... | [
"function",
"(",
"footerContent",
")",
"{",
"var",
"oFooter",
"=",
"this",
".",
"footer",
"||",
"(",
"this",
".",
"footer",
"=",
"createFooter",
"(",
")",
")",
";",
"if",
"(",
"footerContent",
".",
"nodeName",
")",
"{",
"oFooter",
".",
"innerHTML",
"="... | Sets the Module's footer content to the HTML specified, or appends
the passed element to the footer. If no footer is present, one will
be automatically created. An empty string can be passed to the method
to clear the contents of the footer.
@method setFooter
@param {String} footerContent The HTML used to set the foote... | [
"Sets",
"the",
"Module",
"s",
"footer",
"content",
"to",
"the",
"HTML",
"specified",
"or",
"appends",
"the",
"passed",
"element",
"to",
"the",
"footer",
".",
"If",
"no",
"footer",
"is",
"present",
"one",
"will",
"be",
"automatically",
"created",
".",
"An",... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1617-L1634 | |
42,160 | neyric/webhookit | public/javascripts/yui/container/container.js | function (element) {
var oFooter = this.footer || (this.footer = createFooter());
oFooter.appendChild(element);
this.changeFooterEvent.fire(element);
this.changeContentEvent.fire();
} | javascript | function (element) {
var oFooter = this.footer || (this.footer = createFooter());
oFooter.appendChild(element);
this.changeFooterEvent.fire(element);
this.changeContentEvent.fire();
} | [
"function",
"(",
"element",
")",
"{",
"var",
"oFooter",
"=",
"this",
".",
"footer",
"||",
"(",
"this",
".",
"footer",
"=",
"createFooter",
"(",
")",
")",
";",
"oFooter",
".",
"appendChild",
"(",
"element",
")",
";",
"this",
".",
"changeFooterEvent",
".... | Appends the passed element to the footer. If no footer is present,
one will be automatically created.
@method appendToFooter
@param {HTMLElement | DocumentFragment} element The element to
append to the footer. In the case of a document fragment, the
children of the fragment will be appended to the footer | [
"Appends",
"the",
"passed",
"element",
"to",
"the",
"footer",
".",
"If",
"no",
"footer",
"is",
"present",
"one",
"will",
"be",
"automatically",
"created",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1644-L1653 | |
42,161 | neyric/webhookit | public/javascripts/yui/container/container.js | function(moduleElement){
moduleElement = moduleElement || this.element;
// Need to get everything into the DOM if it isn't already
if (this.header && !Dom.inDocument(this.header)) {
// There is a header, but it's not in the DOM yet. Need to add it.
va... | javascript | function(moduleElement){
moduleElement = moduleElement || this.element;
// Need to get everything into the DOM if it isn't already
if (this.header && !Dom.inDocument(this.header)) {
// There is a header, but it's not in the DOM yet. Need to add it.
va... | [
"function",
"(",
"moduleElement",
")",
"{",
"moduleElement",
"=",
"moduleElement",
"||",
"this",
".",
"element",
";",
"// Need to get everything into the DOM if it isn't already",
"if",
"(",
"this",
".",
"header",
"&&",
"!",
"Dom",
".",
"inDocument",
"(",
"this",
... | Renders the currently set header into it's proper position under the
module element. If the module element is not provided, "this.element"
is used.
@method _renderHeader
@protected
@param {HTMLElement} moduleElement Optional. A reference to the module element | [
"Renders",
"the",
"currently",
"set",
"header",
"into",
"it",
"s",
"proper",
"position",
"under",
"the",
"module",
"element",
".",
"If",
"the",
"module",
"element",
"is",
"not",
"provided",
"this",
".",
"element",
"is",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1731-L1744 | |
42,162 | neyric/webhookit | public/javascripts/yui/container/container.js | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.body && !Dom.inDocument(this.body)) {
// There is a body, but it's not in the DOM yet. Need to add it.
if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
... | javascript | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.body && !Dom.inDocument(this.body)) {
// There is a body, but it's not in the DOM yet. Need to add it.
if (this.footer && Dom.isAncestor(moduleElement, this.footer)) {
... | [
"function",
"(",
"moduleElement",
")",
"{",
"moduleElement",
"=",
"moduleElement",
"||",
"this",
".",
"element",
";",
"if",
"(",
"this",
".",
"body",
"&&",
"!",
"Dom",
".",
"inDocument",
"(",
"this",
".",
"body",
")",
")",
"{",
"// There is a body, but it'... | Renders the currently set body into it's proper position under the
module element. If the module element is not provided, "this.element"
is used.
@method _renderBody
@protected
@param {HTMLElement} moduleElement Optional. A reference to the module element. | [
"Renders",
"the",
"currently",
"set",
"body",
"into",
"it",
"s",
"proper",
"position",
"under",
"the",
"module",
"element",
".",
"If",
"the",
"module",
"element",
"is",
"not",
"provided",
"this",
".",
"element",
"is",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1755-L1766 | |
42,163 | neyric/webhookit | public/javascripts/yui/container/container.js | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.footer && !Dom.inDocument(this.footer)) {
// There is a footer, but it's not in the DOM yet. Need to add it.
moduleElement.appendChild(this.footer);
}
} | javascript | function(moduleElement){
moduleElement = moduleElement || this.element;
if (this.footer && !Dom.inDocument(this.footer)) {
// There is a footer, but it's not in the DOM yet. Need to add it.
moduleElement.appendChild(this.footer);
}
} | [
"function",
"(",
"moduleElement",
")",
"{",
"moduleElement",
"=",
"moduleElement",
"||",
"this",
".",
"element",
";",
"if",
"(",
"this",
".",
"footer",
"&&",
"!",
"Dom",
".",
"inDocument",
"(",
"this",
".",
"footer",
")",
")",
"{",
"// There is a footer, b... | Renders the currently set footer into it's proper position under the
module element. If the module element is not provided, "this.element"
is used.
@method _renderFooter
@protected
@param {HTMLElement} moduleElement Optional. A reference to the module element | [
"Renders",
"the",
"currently",
"set",
"footer",
"into",
"it",
"s",
"proper",
"position",
"under",
"the",
"module",
"element",
".",
"If",
"the",
"module",
"element",
"is",
"not",
"provided",
"this",
".",
"element",
"is",
"used",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1777-L1784 | |
42,164 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var parent;
if (this.element) {
Event.purgeElement(this.element, true);
parent = this.element.parentNode;
}
if (parent) {
parent.removeChild(this.element);
}
this.element = n... | javascript | function () {
var parent;
if (this.element) {
Event.purgeElement(this.element, true);
parent = this.element.parentNode;
}
if (parent) {
parent.removeChild(this.element);
}
this.element = n... | [
"function",
"(",
")",
"{",
"var",
"parent",
";",
"if",
"(",
"this",
".",
"element",
")",
"{",
"Event",
".",
"purgeElement",
"(",
"this",
".",
"element",
",",
"true",
")",
";",
"parent",
"=",
"this",
".",
"element",
".",
"parentNode",
";",
"}",
"if"... | Removes the Module element from the DOM and sets all child elements
to null.
@method destroy | [
"Removes",
"the",
"Module",
"element",
"from",
"the",
"DOM",
"and",
"sets",
"all",
"child",
"elements",
"to",
"null",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1791-L1815 | |
42,165 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var monitor = args[0];
if (monitor) {
this.initResizeMonitor();
} else {
Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
this.resizeMonitor = null;
}
} | javascript | function (type, args, obj) {
var monitor = args[0];
if (monitor) {
this.initResizeMonitor();
} else {
Module.textResizeEvent.unsubscribe(this.onDomResize, this, true);
this.resizeMonitor = null;
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"monitor",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"monitor",
")",
"{",
"this",
".",
"initResizeMonitor",
"(",
")",
";",
"}",
"else",
"{",
"Module",
".",
"textResizeEvent",
".",... | Default event handler for the "monitorresize" configuration property
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope object. For ... | [
"Default",
"event",
"handler",
"for",
"the",
"monitorresize",
"configuration",
"property"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L1872-L1880 | |
42,166 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
Overlay.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired before the Overlay is moved.
* @event beforeMoveEvent
* @param {Number} x x coordinate
* @param {Number} y y coordinate... | javascript | function () {
Overlay.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired before the Overlay is moved.
* @event beforeMoveEvent
* @param {Number} x x coordinate
* @param {Number} y y coordinate... | [
"function",
"(",
")",
"{",
"Overlay",
".",
"superclass",
".",
"initEvents",
".",
"call",
"(",
"this",
")",
";",
"var",
"SIGNATURE",
"=",
"CustomEvent",
".",
"LIST",
";",
"/**\n * CustomEvent fired before the Overlay is moved.\n * @event beforeMoveEve... | Initializes the custom events for Overlay which are fired
automatically at appropriate times by the Overlay class.
@method initEvents | [
"Initializes",
"the",
"custom",
"events",
"for",
"Overlay",
"which",
"are",
"fired",
"automatically",
"at",
"appropriate",
"times",
"by",
"the",
"Overlay",
"class",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2366-L2390 | |
42,167 | neyric/webhookit | public/javascripts/yui/container/container.js | function(show) {
Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
var hiddenClass = Overlay.CSS_HIDDEN;
if (show) {
Dom.removeClass(this.element, hiddenClass);
} else {
Dom.addClass(this.element, hiddenClass);
... | javascript | function(show) {
Dom.setStyle(this.element, "visibility", (show) ? "visible" : "hidden");
var hiddenClass = Overlay.CSS_HIDDEN;
if (show) {
Dom.removeClass(this.element, hiddenClass);
} else {
Dom.addClass(this.element, hiddenClass);
... | [
"function",
"(",
"show",
")",
"{",
"Dom",
".",
"setStyle",
"(",
"this",
".",
"element",
",",
"\"visibility\"",
",",
"(",
"show",
")",
"?",
"\"visible\"",
":",
"\"hidden\"",
")",
";",
"var",
"hiddenClass",
"=",
"Overlay",
".",
"CSS_HIDDEN",
";",
"if",
"... | Internal implementation to set the visibility of the overlay in the DOM.
@method _setDomVisibility
@param {boolean} visible Whether to show or hide the Overlay's outer element
@protected | [
"Internal",
"implementation",
"to",
"set",
"the",
"visibility",
"of",
"the",
"overlay",
"in",
"the",
"DOM",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2699-L2708 | |
42,168 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var val = args[0],
alreadySubscribed = Config.alreadySubscribed,
windowResizeEvent = Overlay.windowResizeEvent,
windowScrollEvent = Overlay.windowScrollEvent;
if (val) {
this.center();
... | javascript | function (type, args, obj) {
var val = args[0],
alreadySubscribed = Config.alreadySubscribed,
windowResizeEvent = Overlay.windowResizeEvent,
windowScrollEvent = Overlay.windowScrollEvent;
if (val) {
this.center();
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
",",
"alreadySubscribed",
"=",
"Config",
".",
"alreadySubscribed",
",",
"windowResizeEvent",
"=",
"Overlay",
".",
"windowResizeEvent",
",",
"windowScrollEve... | The default event handler fired when the "fixedcenter" property
is changed.
@method configFixedCenter
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {O... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"fixedcenter",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2902-L2930 | |
42,169 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var height = args[0],
el = this.element;
Dom.setStyle(el, "height", height);
this.cfg.refireEvent("iframe");
} | javascript | function (type, args, obj) {
var height = args[0],
el = this.element;
Dom.setStyle(el, "height", height);
this.cfg.refireEvent("iframe");
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"height",
"=",
"args",
"[",
"0",
"]",
",",
"el",
"=",
"this",
".",
"element",
";",
"Dom",
".",
"setStyle",
"(",
"el",
",",
"\"height\"",
",",
"height",
")",
";",
"this",
".",
"c... | The default event handler fired when the "height" property is changed.
@method configHeight
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"height",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L2941-L2948 | |
42,170 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var x = args[0],
y = this.cfg.getProperty("y");
this.cfg.setProperty("x", x, true);
this.cfg.setProperty("y", y, true);
this.beforeMoveEvent.fire([x, y]);
x = this.cfg.getProperty("x");
y = this.cfg.... | javascript | function (type, args, obj) {
var x = args[0],
y = this.cfg.getProperty("y");
this.cfg.setProperty("x", x, true);
this.cfg.setProperty("y", y, true);
this.beforeMoveEvent.fire([x, y]);
x = this.cfg.getProperty("x");
y = this.cfg.... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"x",
"=",
"args",
"[",
"0",
"]",
",",
"y",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"y\"",
")",
";",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"x\"",
",",
"x",
... | The default event handler fired when the "x" property is changed.
@method configX
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj The scope... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"x",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3077-L3096 | |
42,171 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oIFrame = this.iframe,
oParentNode;
if (oIFrame) {
oParentNode = this.element.parentNode;
if (oParentNode != oIFrame.parentNode) {
this._addToParent(oParentNode, oIFrame);
}
o... | javascript | function () {
var oIFrame = this.iframe,
oParentNode;
if (oIFrame) {
oParentNode = this.element.parentNode;
if (oParentNode != oIFrame.parentNode) {
this._addToParent(oParentNode, oIFrame);
}
o... | [
"function",
"(",
")",
"{",
"var",
"oIFrame",
"=",
"this",
".",
"iframe",
",",
"oParentNode",
";",
"if",
"(",
"oIFrame",
")",
"{",
"oParentNode",
"=",
"this",
".",
"element",
".",
"parentNode",
";",
"if",
"(",
"oParentNode",
"!=",
"oIFrame",
".",
"paren... | Shows the iframe shim, if it has been enabled.
@method showIframe | [
"Shows",
"the",
"iframe",
"shim",
"if",
"it",
"has",
"been",
"enabled",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3132-L3145 | |
42,172 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var oIFrame = this.iframe,
oElement = this.element,
nOffset = Overlay.IFRAME_OFFSET,
nDimensionOffset = (nOffset * 2),
aXY;
if (oIFrame) {
// Size <iframe>
oIFrame.style.width = (oElem... | javascript | function () {
var oIFrame = this.iframe,
oElement = this.element,
nOffset = Overlay.IFRAME_OFFSET,
nDimensionOffset = (nOffset * 2),
aXY;
if (oIFrame) {
// Size <iframe>
oIFrame.style.width = (oElem... | [
"function",
"(",
")",
"{",
"var",
"oIFrame",
"=",
"this",
".",
"iframe",
",",
"oElement",
"=",
"this",
".",
"element",
",",
"nOffset",
"=",
"Overlay",
".",
"IFRAME_OFFSET",
",",
"nDimensionOffset",
"=",
"(",
"nOffset",
"*",
"2",
")",
",",
"aXY",
";",
... | Syncronizes the size and position of iframe shim to that of its
corresponding Overlay instance.
@method syncIframe | [
"Syncronizes",
"the",
"size",
"and",
"position",
"of",
"iframe",
"shim",
"to",
"that",
"of",
"its",
"corresponding",
"Overlay",
"instance",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3162-L3184 | |
42,173 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
if (this.iframe) {
var overlayZ = Dom.getStyle(this.element, "zIndex");
if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
}
}
} | javascript | function () {
if (this.iframe) {
var overlayZ = Dom.getStyle(this.element, "zIndex");
if (!YAHOO.lang.isUndefined(overlayZ) && !isNaN(overlayZ)) {
Dom.setStyle(this.iframe, "zIndex", (overlayZ - 1));
}
}
} | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"iframe",
")",
"{",
"var",
"overlayZ",
"=",
"Dom",
".",
"getStyle",
"(",
"this",
".",
"element",
",",
"\"zIndex\"",
")",
";",
"if",
"(",
"!",
"YAHOO",
".",
"lang",
".",
"isUndefined",
"(",
"overlay... | Sets the zindex of the iframe shim, if it exists, based on the zindex of
the Overlay element. The zindex of the iframe is set to be one less
than the Overlay element's zindex.
<p>NOTE: This method will not bump up the zindex of the Overlay element
to ensure that the iframe shim has a non-negative zindex.
If you requir... | [
"Sets",
"the",
"zindex",
"of",
"the",
"iframe",
"shim",
"if",
"it",
"exists",
"based",
"on",
"the",
"zindex",
"of",
"the",
"Overlay",
"element",
".",
"The",
"zindex",
"of",
"the",
"iframe",
"is",
"set",
"to",
"be",
"one",
"less",
"than",
"the",
"Overla... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3199-L3206 | |
42,174 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var bIFrame = args[0];
function createIFrame() {
var oIFrame = this.iframe,
oElement = this.element,
oParent;
if (!oIFrame) {
if (!m_oIFrameTemplate) {
... | javascript | function (type, args, obj) {
var bIFrame = args[0];
function createIFrame() {
var oIFrame = this.iframe,
oElement = this.element,
oParent;
if (!oIFrame) {
if (!m_oIFrameTemplate) {
... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"bIFrame",
"=",
"args",
"[",
"0",
"]",
";",
"function",
"createIFrame",
"(",
")",
"{",
"var",
"oIFrame",
"=",
"this",
".",
"iframe",
",",
"oElement",
"=",
"this",
".",
"element",
",... | The default event handler fired when the "iframe" property is changed.
@method configIframe
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for the property.
@param {Object} obj... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"iframe",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3217-L3325 | |
42,175 | neyric/webhookit | public/javascripts/yui/container/container.js | function() {
if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
// Set CFG XY based on DOM XY
this.syncPosition();
// Account for XY being set silently in syncPosition (no moveTo fired/called)
this.cfg.refireEvent("xy");
... | javascript | function() {
if (YAHOO.lang.isUndefined(this.cfg.getProperty("xy"))) {
// Set CFG XY based on DOM XY
this.syncPosition();
// Account for XY being set silently in syncPosition (no moveTo fired/called)
this.cfg.refireEvent("xy");
... | [
"function",
"(",
")",
"{",
"if",
"(",
"YAHOO",
".",
"lang",
".",
"isUndefined",
"(",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"xy\"",
")",
")",
")",
"{",
"// Set CFG XY based on DOM XY",
"this",
".",
"syncPosition",
"(",
")",
";",
"// Account for XY ... | Set's the container's XY value from DOM if not already set.
Differs from syncPosition, in that the XY value is only sync'd with DOM if
not already set. The method also refire's the XY config property event, so any
beforeMove, Move event listeners are invoked.
@method _primeXYFromDOM
@protected | [
"Set",
"s",
"the",
"container",
"s",
"XY",
"value",
"from",
"DOM",
"if",
"not",
"already",
"set",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3337-L3345 | |
42,176 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var val = args[0];
if (val) {
if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
}
if (! Conf... | javascript | function (type, args, obj) {
var val = args[0];
if (val) {
if (! Config.alreadySubscribed(this.beforeMoveEvent, this.enforceConstraints, this)) {
this.beforeMoveEvent.subscribe(this.enforceConstraints, this, true);
}
if (! Conf... | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"val",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"val",
")",
"{",
"if",
"(",
"!",
"Config",
".",
"alreadySubscribed",
"(",
"this",
".",
"beforeMoveEvent",
",",
"this",
".",
"enf... | The default event handler fired when the "constraintoviewport"
property is changed.
@method configConstrainToViewport
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied value for
the pro... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"constraintoviewport",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3358-L3372 | |
42,177 | neyric/webhookit | public/javascripts/yui/container/container.js | function(t) {
var tce = null;
if (t instanceof CustomEvent) {
tce = t;
} else if (Overlay._TRIGGER_MAP[t]) {
tce = Overlay._TRIGGER_MAP[t];
}
return tce;
} | javascript | function(t) {
var tce = null;
if (t instanceof CustomEvent) {
tce = t;
} else if (Overlay._TRIGGER_MAP[t]) {
tce = Overlay._TRIGGER_MAP[t];
}
return tce;
} | [
"function",
"(",
"t",
")",
"{",
"var",
"tce",
"=",
"null",
";",
"if",
"(",
"t",
"instanceof",
"CustomEvent",
")",
"{",
"tce",
"=",
"t",
";",
"}",
"else",
"if",
"(",
"Overlay",
".",
"_TRIGGER_MAP",
"[",
"t",
"]",
")",
"{",
"tce",
"=",
"Overlay",
... | Helper method to locate the custom event instance for the event name string
passed in. As a convenience measure, any custom events passed in are returned.
@method _findTriggerCE
@private
@param {String|CustomEvent} t Either a CustomEvent, or event type (e.g. "windowScroll") for which a
custom event instance needs to ... | [
"Helper",
"method",
"to",
"locate",
"the",
"custom",
"event",
"instance",
"for",
"the",
"event",
"name",
"string",
"passed",
"in",
".",
"As",
"a",
"convenience",
"measure",
"any",
"custom",
"events",
"passed",
"in",
"are",
"returned",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3459-L3467 | |
42,178 | neyric/webhookit | public/javascripts/yui/container/container.js | function(triggers, mode, fn) {
var t, tce;
for (var i = 0, l = triggers.length; i < l; ++i) {
t = triggers[i];
tce = this._findTriggerCE(t);
if (tce) {
tce[mode](fn, this, true);
} else {
thi... | javascript | function(triggers, mode, fn) {
var t, tce;
for (var i = 0, l = triggers.length; i < l; ++i) {
t = triggers[i];
tce = this._findTriggerCE(t);
if (tce) {
tce[mode](fn, this, true);
} else {
thi... | [
"function",
"(",
"triggers",
",",
"mode",
",",
"fn",
")",
"{",
"var",
"t",
",",
"tce",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",
"triggers",
".",
"length",
";",
"i",
"<",
"l",
";",
"++",
"i",
")",
"{",
"t",
"=",
"triggers",
"[",... | Utility method that subscribes or unsubscribes the given
function from the list of trigger events provided.
@method _processTriggers
@protected
@param {Array[String|CustomEvent]} triggers An array of either CustomEvents, event type strings
(e.g. "beforeShow", "windowScroll") to/from which the provided function should... | [
"Utility",
"method",
"that",
"subscribes",
"or",
"unsubscribes",
"the",
"given",
"function",
"from",
"the",
"list",
"of",
"trigger",
"events",
"provided",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3487-L3499 | |
42,179 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var pos = args[0];
var cXY = this.getConstrainedXY(pos[0], pos[1]);
this.cfg.setProperty("x", cXY[0], true);
this.cfg.setProperty("y", cXY[1], true);
this.cfg.setProperty("xy", cXY, true);
} | javascript | function (type, args, obj) {
var pos = args[0];
var cXY = this.getConstrainedXY(pos[0], pos[1]);
this.cfg.setProperty("x", cXY[0], true);
this.cfg.setProperty("y", cXY[1], true);
this.cfg.setProperty("xy", cXY, true);
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"pos",
"=",
"args",
"[",
"0",
"]",
";",
"var",
"cXY",
"=",
"this",
".",
"getConstrainedXY",
"(",
"pos",
"[",
"0",
"]",
",",
"pos",
"[",
"1",
"]",
")",
";",
"this",
".",
"cfg",... | The default event handler executed when the moveEvent is fired, if the
"constraintoviewport" is set to true.
@method enforceConstraints
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For configuration
handlers, args[0] will equal the newly applied... | [
"The",
"default",
"event",
"handler",
"executed",
"when",
"the",
"moveEvent",
"is",
"fired",
"if",
"the",
"constraintoviewport",
"is",
"set",
"to",
"true",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3611-L3618 | |
42,180 | neyric/webhookit | public/javascripts/yui/container/container.js | function(pos, val) {
var overlayEl = this.element,
buffer = Overlay.VIEWPORT_OFFSET,
x = (pos == "x"),
overlaySize = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
viewportSize = (x) ? Dom.getViewportWidth() : Dom.getViewpor... | javascript | function(pos, val) {
var overlayEl = this.element,
buffer = Overlay.VIEWPORT_OFFSET,
x = (pos == "x"),
overlaySize = (x) ? overlayEl.offsetWidth : overlayEl.offsetHeight,
viewportSize = (x) ? Dom.getViewportWidth() : Dom.getViewpor... | [
"function",
"(",
"pos",
",",
"val",
")",
"{",
"var",
"overlayEl",
"=",
"this",
".",
"element",
",",
"buffer",
"=",
"Overlay",
".",
"VIEWPORT_OFFSET",
",",
"x",
"=",
"(",
"pos",
"==",
"\"x\"",
")",
",",
"overlaySize",
"=",
"(",
"x",
")",
"?",
"overl... | Shared implementation method for getConstrainedX and getConstrainedY.
<p>
Given a coordinate value, returns the calculated coordinate required to
position the Overlay if it is to be constrained to the viewport, based on the
current element size, viewport dimensions, scroll values and preventoverlap
settings
</p>
@met... | [
"Shared",
"implementation",
"method",
"for",
"getConstrainedX",
"and",
"getConstrainedY",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3636-L3676 | |
42,181 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var nViewportOffset = Overlay.VIEWPORT_OFFSET,
elementWidth = this.element.offsetWidth,
elementHeight = this.element.offsetHeight,
viewPortWidth = Dom.getViewportWidth(),
viewPortHeight = Dom.getViewportHeight(),
... | javascript | function () {
var nViewportOffset = Overlay.VIEWPORT_OFFSET,
elementWidth = this.element.offsetWidth,
elementHeight = this.element.offsetHeight,
viewPortWidth = Dom.getViewportWidth(),
viewPortHeight = Dom.getViewportHeight(),
... | [
"function",
"(",
")",
"{",
"var",
"nViewportOffset",
"=",
"Overlay",
".",
"VIEWPORT_OFFSET",
",",
"elementWidth",
"=",
"this",
".",
"element",
".",
"offsetWidth",
",",
"elementHeight",
"=",
"this",
".",
"element",
".",
"offsetHeight",
",",
"viewPortWidth",
"="... | Centers the container in the viewport.
@method center | [
"Centers",
"the",
"container",
"in",
"the",
"viewport",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3791-L3819 | |
42,182 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var pos = Dom.getXY(this.element);
this.cfg.setProperty("x", pos[0], true);
this.cfg.setProperty("y", pos[1], true);
this.cfg.setProperty("xy", pos, true);
} | javascript | function () {
var pos = Dom.getXY(this.element);
this.cfg.setProperty("x", pos[0], true);
this.cfg.setProperty("y", pos[1], true);
this.cfg.setProperty("xy", pos, true);
} | [
"function",
"(",
")",
"{",
"var",
"pos",
"=",
"Dom",
".",
"getXY",
"(",
"this",
".",
"element",
")",
";",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"x\"",
",",
"pos",
"[",
"0",
"]",
",",
"true",
")",
";",
"this",
".",
"cfg",
".",
"setPrope... | Synchronizes the Panel's "xy", "x", and "y" properties with the
Panel's position in the DOM. This is primarily used to update
position information during drag & drop.
@method syncPosition | [
"Synchronizes",
"the",
"Panel",
"s",
"xy",
"x",
"and",
"y",
"properties",
"with",
"the",
"Panel",
"s",
"position",
"in",
"the",
"DOM",
".",
"This",
"is",
"primarily",
"used",
"to",
"update",
"position",
"information",
"during",
"drag",
"&",
"drop",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3827-L3835 | |
42,183 | neyric/webhookit | public/javascripts/yui/container/container.js | function(type, args, el) {
var height = this.cfg.getProperty("height");
if ((height && height !== "auto") || (height === 0)) {
this.fillHeight(el);
}
} | javascript | function(type, args, el) {
var height = this.cfg.getProperty("height");
if ((height && height !== "auto") || (height === 0)) {
this.fillHeight(el);
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"el",
")",
"{",
"var",
"height",
"=",
"this",
".",
"cfg",
".",
"getProperty",
"(",
"\"height\"",
")",
";",
"if",
"(",
"(",
"height",
"&&",
"height",
"!==",
"\"auto\"",
")",
"||",
"(",
"height",
"===",
"0",... | The default custom event handler executed when the overlay's height is changed,
if the autofillheight property has been set.
@method _autoFillOnHeightChange
@protected
@param {String} type The event type
@param {Array} args The array of arguments passed to event subscribers
@param {HTMLElement} el The header, body or ... | [
"The",
"default",
"custom",
"event",
"handler",
"executed",
"when",
"the",
"overlay",
"s",
"height",
"is",
"changed",
"if",
"the",
"autofillheight",
"property",
"has",
"been",
"set",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3912-L3917 | |
42,184 | neyric/webhookit | public/javascripts/yui/container/container.js | function(el) {
var height = el.offsetHeight;
if (el.getBoundingClientRect) {
var rect = el.getBoundingClientRect();
height = rect.bottom - rect.top;
}
return height;
} | javascript | function(el) {
var height = el.offsetHeight;
if (el.getBoundingClientRect) {
var rect = el.getBoundingClientRect();
height = rect.bottom - rect.top;
}
return height;
} | [
"function",
"(",
"el",
")",
"{",
"var",
"height",
"=",
"el",
".",
"offsetHeight",
";",
"if",
"(",
"el",
".",
"getBoundingClientRect",
")",
"{",
"var",
"rect",
"=",
"el",
".",
"getBoundingClientRect",
"(",
")",
";",
"height",
"=",
"rect",
".",
"bottom",... | Returns the sub-pixel height of the el, using getBoundingClientRect, if available,
otherwise returns the offsetHeight
@method _getPreciseHeight
@private
@param {HTMLElement} el
@return {Float} The sub-pixel height if supported by the browser, else the rounded height. | [
"Returns",
"the",
"sub",
"-",
"pixel",
"height",
"of",
"the",
"el",
"using",
"getBoundingClientRect",
"if",
"available",
"otherwise",
"returns",
"the",
"offsetHeight"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L3927-L3936 | |
42,185 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var aOverlays = [],
oElement = this.element;
function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
nZInde... | javascript | function () {
var aOverlays = [],
oElement = this.element;
function compareZIndexDesc(p_oOverlay1, p_oOverlay2) {
var sZIndex1 = Dom.getStyle(p_oOverlay1, "zIndex"),
sZIndex2 = Dom.getStyle(p_oOverlay2, "zIndex"),
nZInde... | [
"function",
"(",
")",
"{",
"var",
"aOverlays",
"=",
"[",
"]",
",",
"oElement",
"=",
"this",
".",
"element",
";",
"function",
"compareZIndexDesc",
"(",
"p_oOverlay1",
",",
"p_oOverlay2",
")",
"{",
"var",
"sZIndex1",
"=",
"Dom",
".",
"getStyle",
"(",
"p_oO... | Places the Overlay on top of all other instances of
YAHOO.widget.Overlay.
@method bringToTop | [
"Places",
"the",
"Overlay",
"on",
"top",
"of",
"all",
"other",
"instances",
"of",
"YAHOO",
".",
"widget",
".",
"Overlay",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4010-L4073 | |
42,186 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
if (this.iframe) {
this.iframe.parentNode.removeChild(this.iframe);
}
this.iframe = null;
Overlay.windowResizeEvent.unsubscribe(
this.doCenterOnDOMEvent, this);
Overlay.windowScrollEvent.unsubscribe(
... | javascript | function () {
if (this.iframe) {
this.iframe.parentNode.removeChild(this.iframe);
}
this.iframe = null;
Overlay.windowResizeEvent.unsubscribe(
this.doCenterOnDOMEvent, this);
Overlay.windowScrollEvent.unsubscribe(
... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"iframe",
")",
"{",
"this",
".",
"iframe",
".",
"parentNode",
".",
"removeChild",
"(",
"this",
".",
"iframe",
")",
";",
"}",
"this",
".",
"iframe",
"=",
"null",
";",
"Overlay",
".",
"windowResizeEven... | Removes the Overlay element from the DOM and sets all child
elements to null.
@method destroy | [
"Removes",
"the",
"Overlay",
"element",
"from",
"the",
"DOM",
"and",
"sets",
"all",
"child",
"elements",
"to",
"null",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4080-L4103 | |
42,187 | neyric/webhookit | public/javascripts/yui/container/container.js | function(overlay) {
var mgr = this;
if (!overlay.focusEvent) {
overlay.focusEvent = overlay.createEvent("focus");
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.foc... | javascript | function(overlay) {
var mgr = this;
if (!overlay.focusEvent) {
overlay.focusEvent = overlay.createEvent("focus");
overlay.focusEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.foc... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"mgr",
"=",
"this",
";",
"if",
"(",
"!",
"overlay",
".",
"focusEvent",
")",
"{",
"overlay",
".",
"focusEvent",
"=",
"overlay",
".",
"createEvent",
"(",
"\"focus\"",
")",
";",
"overlay",
".",
"focusEvent",
".... | Subscribes to the Overlay based instance focusEvent, to allow the OverlayManager to
monitor focus state.
If the instance already has a focusEvent (e.g. Menu), OverlayManager will subscribe
to the existing focusEvent, however if a focusEvent or focus method does not exist
on the instance, the _bindFocus method will add... | [
"Subscribes",
"to",
"the",
"Overlay",
"based",
"instance",
"focusEvent",
"to",
"allow",
"the",
"OverlayManager",
"to",
"monitor",
"focus",
"state",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4463-L4487 | |
42,188 | neyric/webhookit | public/javascripts/yui/container/container.js | function(overlay) {
var mgr = this;
if (!overlay.blurEvent) {
overlay.blurEvent = overlay.createEvent("blur");
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.blurEve... | javascript | function(overlay) {
var mgr = this;
if (!overlay.blurEvent) {
overlay.blurEvent = overlay.createEvent("blur");
overlay.blurEvent.signature = CustomEvent.LIST;
overlay.focusEvent._managed = true;
} else {
overlay.blurEve... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"mgr",
"=",
"this",
";",
"if",
"(",
"!",
"overlay",
".",
"blurEvent",
")",
"{",
"overlay",
".",
"blurEvent",
"=",
"overlay",
".",
"createEvent",
"(",
"\"blur\"",
")",
";",
"overlay",
".",
"blurEvent",
".",
... | Subscribes to the Overlay based instance's blurEvent to allow the OverlayManager to
monitor blur state.
If the instance already has a blurEvent (e.g. Menu), OverlayManager will subscribe
to the existing blurEvent, however if a blurEvent or blur method does not exist
on the instance, the _bindBlur method will add them,... | [
"Subscribes",
"to",
"the",
"Overlay",
"based",
"instance",
"s",
"blurEvent",
"to",
"allow",
"the",
"OverlayManager",
"to",
"monitor",
"blur",
"state",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4502-L4523 | |
42,189 | neyric/webhookit | public/javascripts/yui/container/container.js | function (overlay) {
var registered = false,
i,
n;
if (overlay instanceof Overlay) {
overlay.cfg.addProperty("manager", { value: this } );
this._bindFocus(overlay);
this._bindBlur(overlay);
this._... | javascript | function (overlay) {
var registered = false,
i,
n;
if (overlay instanceof Overlay) {
overlay.cfg.addProperty("manager", { value: this } );
this._bindFocus(overlay);
this._bindBlur(overlay);
this._... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"registered",
"=",
"false",
",",
"i",
",",
"n",
";",
"if",
"(",
"overlay",
"instanceof",
"Overlay",
")",
"{",
"overlay",
".",
"cfg",
".",
"addProperty",
"(",
"\"manager\"",
",",
"{",
"value",
":",
"this",
... | Registers an Overlay or an array of Overlays with the manager. Upon
registration, the Overlay receives functions for focus and blur,
along with CustomEvents for each.
@method register
@param {Overlay} overlay An Overlay to register with the manager.
@param {Overlay[]} overlay An array of Overlays to register with
th... | [
"Registers",
"an",
"Overlay",
"or",
"an",
"array",
"of",
"Overlays",
"with",
"the",
"manager",
".",
"Upon",
"registration",
"the",
"Overlay",
"receives",
"functions",
"for",
"focus",
"and",
"blur",
"along",
"with",
"CustomEvents",
"for",
"each",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4566-L4595 | |
42,190 | neyric/webhookit | public/javascripts/yui/container/container.js | function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if (oOverlay) {
aOverlays = this.overlays;
aOverlays.sort(this.compareZIndexDesc);
oTopOverlay = a... | javascript | function (p_oOverlay) {
var oOverlay = this.find(p_oOverlay),
nTopZIndex,
oTopOverlay,
aOverlays;
if (oOverlay) {
aOverlays = this.overlays;
aOverlays.sort(this.compareZIndexDesc);
oTopOverlay = a... | [
"function",
"(",
"p_oOverlay",
")",
"{",
"var",
"oOverlay",
"=",
"this",
".",
"find",
"(",
"p_oOverlay",
")",
",",
"nTopZIndex",
",",
"oTopOverlay",
",",
"aOverlays",
";",
"if",
"(",
"oOverlay",
")",
"{",
"aOverlays",
"=",
"this",
".",
"overlays",
";",
... | Places the specified Overlay instance on top of all other
Overlay instances.
@method bringToTop
@param {YAHOO.widget.Overlay} p_oOverlay Object representing an
Overlay instance.
@param {String} p_oOverlay String representing the id of an
Overlay instance. | [
"Places",
"the",
"specified",
"Overlay",
"instance",
"on",
"top",
"of",
"all",
"other",
"Overlay",
"instances",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4606-L4644 | |
42,191 | neyric/webhookit | public/javascripts/yui/container/container.js | function (overlay) {
var isInstance = overlay instanceof Overlay,
overlays = this.overlays,
n = overlays.length,
found = null,
o,
i;
if (isInstance || typeof overlay == "string") {
for (i = n-1; i >... | javascript | function (overlay) {
var isInstance = overlay instanceof Overlay,
overlays = this.overlays,
n = overlays.length,
found = null,
o,
i;
if (isInstance || typeof overlay == "string") {
for (i = n-1; i >... | [
"function",
"(",
"overlay",
")",
"{",
"var",
"isInstance",
"=",
"overlay",
"instanceof",
"Overlay",
",",
"overlays",
"=",
"this",
".",
"overlays",
",",
"n",
"=",
"overlays",
".",
"length",
",",
"found",
"=",
"null",
",",
"o",
",",
"i",
";",
"if",
"("... | Attempts to locate an Overlay by instance or ID.
@method find
@param {Overlay} overlay An Overlay to locate within the manager
@param {String} overlay An Overlay id to locate within the manager
@return {Overlay} The requested Overlay, if found, or null if it
cannot be located. | [
"Attempts",
"to",
"locate",
"an",
"Overlay",
"by",
"instance",
"or",
"ID",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4654-L4674 | |
42,192 | neyric/webhookit | public/javascripts/yui/container/container.js | function (o1, o2) {
var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
if (zIndex1 === null && zIndex2 === null) {
return 0;
} else... | javascript | function (o1, o2) {
var zIndex1 = (o1.cfg) ? o1.cfg.getProperty("zIndex") : null, // Sort invalid (destroyed)
zIndex2 = (o2.cfg) ? o2.cfg.getProperty("zIndex") : null; // objects at bottom.
if (zIndex1 === null && zIndex2 === null) {
return 0;
} else... | [
"function",
"(",
"o1",
",",
"o2",
")",
"{",
"var",
"zIndex1",
"=",
"(",
"o1",
".",
"cfg",
")",
"?",
"o1",
".",
"cfg",
".",
"getProperty",
"(",
"\"zIndex\"",
")",
":",
"null",
",",
"// Sort invalid (destroyed)",
"zIndex2",
"=",
"(",
"o2",
".",
"cfg",
... | Used for sorting the manager's Overlays by z-index.
@method compareZIndexDesc
@private
@return {Number} 0, 1, or -1, depending on where the Overlay should
fall in the stacking order. | [
"Used",
"for",
"sorting",
"the",
"manager",
"s",
"Overlays",
"by",
"z",
"-",
"index",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4683-L4701 | |
42,193 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].show();
}
} | javascript | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].show();
}
} | [
"function",
"(",
")",
"{",
"var",
"overlays",
"=",
"this",
".",
"overlays",
",",
"n",
"=",
"overlays",
".",
"length",
",",
"i",
";",
"for",
"(",
"i",
"=",
"n",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"overlays",
"[",
"i",
"... | Shows all Overlays in the manager.
@method showAll | [
"Shows",
"all",
"Overlays",
"in",
"the",
"manager",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4707-L4715 | |
42,194 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].hide();
}
} | javascript | function () {
var overlays = this.overlays,
n = overlays.length,
i;
for (i = n - 1; i >= 0; i--) {
overlays[i].hide();
}
} | [
"function",
"(",
")",
"{",
"var",
"overlays",
"=",
"this",
".",
"overlays",
",",
"n",
"=",
"overlays",
".",
"length",
",",
"i",
";",
"for",
"(",
"i",
"=",
"n",
"-",
"1",
";",
"i",
">=",
"0",
";",
"i",
"--",
")",
"{",
"overlays",
"[",
"i",
"... | Hides all Overlays in the manager.
@method hideAll | [
"Hides",
"all",
"Overlays",
"in",
"the",
"manager",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4721-L4729 | |
42,195 | neyric/webhookit | public/javascripts/yui/container/container.js | function (el, userConfig) {
Tooltip.superclass.init.call(this, el);
this.beforeInitEvent.fire(Tooltip);
Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);
if (userConfig) {
this.cfg.applyConfig(userConfig, true);
}
this.cfg.queu... | javascript | function (el, userConfig) {
Tooltip.superclass.init.call(this, el);
this.beforeInitEvent.fire(Tooltip);
Dom.addClass(this.element, Tooltip.CSS_TOOLTIP);
if (userConfig) {
this.cfg.applyConfig(userConfig, true);
}
this.cfg.queu... | [
"function",
"(",
"el",
",",
"userConfig",
")",
"{",
"Tooltip",
".",
"superclass",
".",
"init",
".",
"call",
"(",
"this",
",",
"el",
")",
";",
"this",
".",
"beforeInitEvent",
".",
"fire",
"(",
"Tooltip",
")",
";",
"Dom",
".",
"addClass",
"(",
"this",
... | The Tooltip initialization method. This method is automatically
called by the constructor. A Tooltip is automatically rendered by
the init method, and it also is set to be invisible by default,
and constrained to viewport by default as well.
@method init
@param {String} el The element ID representing the Tooltip <em>OR... | [
"The",
"Tooltip",
"initialization",
"method",
".",
"This",
"method",
"is",
"automatically",
"called",
"by",
"the",
"constructor",
".",
"A",
"Tooltip",
"is",
"automatically",
"rendered",
"by",
"the",
"init",
"method",
"and",
"it",
"also",
"is",
"set",
"to",
"... | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4928-L4951 | |
42,196 | neyric/webhookit | public/javascripts/yui/container/container.js | function () {
Tooltip.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired when user mouses over a context element. Returning false from
* a subscriber to this event will prevent the tooltip from being displayed for
... | javascript | function () {
Tooltip.superclass.initEvents.call(this);
var SIGNATURE = CustomEvent.LIST;
/**
* CustomEvent fired when user mouses over a context element. Returning false from
* a subscriber to this event will prevent the tooltip from being displayed for
... | [
"function",
"(",
")",
"{",
"Tooltip",
".",
"superclass",
".",
"initEvents",
".",
"call",
"(",
"this",
")",
";",
"var",
"SIGNATURE",
"=",
"CustomEvent",
".",
"LIST",
";",
"/**\n * CustomEvent fired when user mouses over a context element. Returning false from\n ... | Initializes the custom events for Tooltip
@method initEvents | [
"Initializes",
"the",
"custom",
"events",
"for",
"Tooltip"
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L4957-L5015 | |
42,197 | neyric/webhookit | public/javascripts/yui/container/container.js | function (type, args, obj) {
var container = args[0];
if (typeof container == 'string') {
this.cfg.setProperty("container", document.getElementById(container), true);
}
} | javascript | function (type, args, obj) {
var container = args[0];
if (typeof container == 'string') {
this.cfg.setProperty("container", document.getElementById(container), true);
}
} | [
"function",
"(",
"type",
",",
"args",
",",
"obj",
")",
"{",
"var",
"container",
"=",
"args",
"[",
"0",
"]",
";",
"if",
"(",
"typeof",
"container",
"==",
"'string'",
")",
"{",
"this",
".",
"cfg",
".",
"setProperty",
"(",
"\"container\"",
",",
"documen... | The default event handler fired when the "container" property
is changed.
@method configContainer
@param {String} type The CustomEvent type (usually the property name)
@param {Object[]} args The CustomEvent arguments. For
configuration handlers, args[0] will equal the newly applied value
for the property.
@param {Objec... | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"container",
"property",
"is",
"changed",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5188-L5194 | |
42,198 | neyric/webhookit | public/javascripts/yui/container/container.js | function (e, obj) {
var context = this;
if (context.title) {
obj._tempTitle = context.title;
context.title = "";
}
// Fire first, to honor disabled set in the listner
if (obj.fireEvent("contextMouseOver", context, e) !== false... | javascript | function (e, obj) {
var context = this;
if (context.title) {
obj._tempTitle = context.title;
context.title = "";
}
// Fire first, to honor disabled set in the listner
if (obj.fireEvent("contextMouseOver", context, e) !== false... | [
"function",
"(",
"e",
",",
"obj",
")",
"{",
"var",
"context",
"=",
"this",
";",
"if",
"(",
"context",
".",
"title",
")",
"{",
"obj",
".",
"_tempTitle",
"=",
"context",
".",
"title",
";",
"context",
".",
"title",
"=",
"\"\"",
";",
"}",
"// Fire firs... | The default event handler fired when the user mouses over the
context element.
@method onContextMouseOver
@param {DOMEvent} e The current DOM event
@param {Object} obj The object argument | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"user",
"mouses",
"over",
"the",
"context",
"element",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5301-L5328 | |
42,199 | neyric/webhookit | public/javascripts/yui/container/container.js | function (e, obj) {
var el = this;
if (obj._tempTitle) {
el.title = obj._tempTitle;
obj._tempTitle = null;
}
if (obj.showProcId) {
clearTimeout(obj.showProcId);
obj.showProcId = null;
}
... | javascript | function (e, obj) {
var el = this;
if (obj._tempTitle) {
el.title = obj._tempTitle;
obj._tempTitle = null;
}
if (obj.showProcId) {
clearTimeout(obj.showProcId);
obj.showProcId = null;
}
... | [
"function",
"(",
"e",
",",
"obj",
")",
"{",
"var",
"el",
"=",
"this",
";",
"if",
"(",
"obj",
".",
"_tempTitle",
")",
"{",
"el",
".",
"title",
"=",
"obj",
".",
"_tempTitle",
";",
"obj",
".",
"_tempTitle",
"=",
"null",
";",
"}",
"if",
"(",
"obj",... | The default event handler fired when the user mouses out of
the context element.
@method onContextMouseOut
@param {DOMEvent} e The current DOM event
@param {Object} obj The object argument | [
"The",
"default",
"event",
"handler",
"fired",
"when",
"the",
"user",
"mouses",
"out",
"of",
"the",
"context",
"element",
"."
] | 13abf6f072e23d536432235da78fd3e4e5d742b6 | https://github.com/neyric/webhookit/blob/13abf6f072e23d536432235da78fd3e4e5d742b6/public/javascripts/yui/container/container.js#L5337-L5360 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.