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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
27,200 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (hashObject) {
var hashStringArray = [];
for (var key in hashObject) {
if (hashObject.hasOwnProperty(key)) {
hashStringArray.push(encodeURIComponent(key) + "=" + encodeURIComponent(hashObject[key]));
}
}
return ... | javascript | function (hashObject) {
var hashStringArray = [];
for (var key in hashObject) {
if (hashObject.hasOwnProperty(key)) {
hashStringArray.push(encodeURIComponent(key) + "=" + encodeURIComponent(hashObject[key]));
}
}
return ... | [
"function",
"(",
"hashObject",
")",
"{",
"var",
"hashStringArray",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"key",
"in",
"hashObject",
")",
"{",
"if",
"(",
"hashObject",
".",
"hasOwnProperty",
"(",
"key",
")",
")",
"{",
"hashStringArray",
".",
"push",
"(... | Turn a hash object into a string by using as separator the first one provided. There is no check on the
object.
@param {Object} hashObject
@return {String} | [
"Turn",
"a",
"hash",
"object",
"into",
"a",
"string",
"by",
"using",
"as",
"separator",
"the",
"first",
"one",
"provided",
".",
"There",
"is",
"no",
"check",
"on",
"the",
"object",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L346-L354 | |
27,201 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (hashString) {
var pairs = hashString, hashObject = {}, currentPair, currentPairString;
pairs = (pairs) ? pairs.split(this._separatorRegExp) : [];
for (var i = 0, size = pairs.length; size > i; i++) {
currentPairString = pairs[i];
currentPair ... | javascript | function (hashString) {
var pairs = hashString, hashObject = {}, currentPair, currentPairString;
pairs = (pairs) ? pairs.split(this._separatorRegExp) : [];
for (var i = 0, size = pairs.length; size > i; i++) {
currentPairString = pairs[i];
currentPair ... | [
"function",
"(",
"hashString",
")",
"{",
"var",
"pairs",
"=",
"hashString",
",",
"hashObject",
"=",
"{",
"}",
",",
"currentPair",
",",
"currentPairString",
";",
"pairs",
"=",
"(",
"pairs",
")",
"?",
"pairs",
".",
"split",
"(",
"this",
".",
"_separatorReg... | Extract the hash object from the hash string
@protected
@param {String} hashString
@return {Object} hashObject | [
"Extract",
"the",
"hash",
"object",
"from",
"the",
"hash",
"string"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L362-L379 | |
27,202 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function () {
if (!this._isIE7OrLess) {
this._hashChangeCallbackAdded = true;
ariaUtilsAriaWindow.attachWindow();
ariaUtilsEvent.addListener(Aria.$window, 'hashchange', {
fn : this._internalCallback,
scope : this
... | javascript | function () {
if (!this._isIE7OrLess) {
this._hashChangeCallbackAdded = true;
ariaUtilsAriaWindow.attachWindow();
ariaUtilsEvent.addListener(Aria.$window, 'hashchange', {
fn : this._internalCallback,
scope : this
... | [
"function",
"(",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_isIE7OrLess",
")",
"{",
"this",
".",
"_hashChangeCallbackAdded",
"=",
"true",
";",
"ariaUtilsAriaWindow",
".",
"attachWindow",
"(",
")",
";",
"ariaUtilsEvent",
".",
"addListener",
"(",
"Aria",
".",
... | Add the default hashchange callback
@protected | [
"Add",
"the",
"default",
"hashchange",
"callback"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L385-L395 | |
27,203 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function () {
if (this._enableIEpolling) {
this._hashPollCallback = ariaCoreTimer.addCallback({
fn : this._hashPoll,
scope : this,
delay : this.ie7PollDelay
});
var documentHash = this.getHashString(... | javascript | function () {
if (this._enableIEpolling) {
this._hashPollCallback = ariaCoreTimer.addCallback({
fn : this._hashPoll,
scope : this,
delay : this.ie7PollDelay
});
var documentHash = this.getHashString(... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"_enableIEpolling",
")",
"{",
"this",
".",
"_hashPollCallback",
"=",
"ariaCoreTimer",
".",
"addCallback",
"(",
"{",
"fn",
":",
"this",
".",
"_hashPoll",
",",
"scope",
":",
"this",
",",
"delay",
":",
"t... | Nedeed because IE7 does not fire the 'hashchange' event. Verify if the hash has changed. If so, it triggers
the internal hashchange callback
@protected | [
"Nedeed",
"because",
"IE7",
"does",
"not",
"fire",
"the",
"hashchange",
"event",
".",
"Verify",
"if",
"the",
"hash",
"has",
"changed",
".",
"If",
"so",
"it",
"triggers",
"the",
"internal",
"hashchange",
"callback"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L401-L424 | |
27,204 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function () {
var callbacks = this._hashChangeCallbacks, cb;
if (callbacks == null) {
return;
}
this._currentHashString = this.getHashString();
var currentHashObject = this._extractHashObject(this._currentHashString);
for (var i = 0... | javascript | function () {
var callbacks = this._hashChangeCallbacks, cb;
if (callbacks == null) {
return;
}
this._currentHashString = this.getHashString();
var currentHashObject = this._extractHashObject(this._currentHashString);
for (var i = 0... | [
"function",
"(",
")",
"{",
"var",
"callbacks",
"=",
"this",
".",
"_hashChangeCallbacks",
",",
"cb",
";",
"if",
"(",
"callbacks",
"==",
"null",
")",
"{",
"return",
";",
"}",
"this",
".",
"_currentHashString",
"=",
"this",
".",
"getHashString",
"(",
")",
... | Updates the internal hash information and calls the added callbacks
@protected | [
"Updates",
"the",
"internal",
"hash",
"information",
"and",
"calls",
"the",
"added",
"callbacks"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L430-L442 | |
27,205 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function () {
if (!this._isIE7OrLess && this._hashChangeCallbackAdded) {
this._hashChangeCallbackAdded = false;
ariaUtilsEvent.removeListener(Aria.$window, 'hashchange', {
fn : this._internalCallback
});
ariaUtilsAriaWindow.... | javascript | function () {
if (!this._isIE7OrLess && this._hashChangeCallbackAdded) {
this._hashChangeCallbackAdded = false;
ariaUtilsEvent.removeListener(Aria.$window, 'hashchange', {
fn : this._internalCallback
});
ariaUtilsAriaWindow.... | [
"function",
"(",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_isIE7OrLess",
"&&",
"this",
".",
"_hashChangeCallbackAdded",
")",
"{",
"this",
".",
"_hashChangeCallbackAdded",
"=",
"false",
";",
"ariaUtilsEvent",
".",
"removeListener",
"(",
"Aria",
".",
"$window",
... | Remove the default hashchange callback
@protected | [
"Remove",
"the",
"default",
"hashchange",
"callback"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L448-L456 | |
27,206 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (hashObject) {
var prop, re = this._nonEncodableSepRegExp;
for (var key in hashObject) {
if (hashObject.hasOwnProperty(key)) {
if (re && key.match(re)) {
this.$logError(this.INVALID_HASHOBJECT_KEY, [key, this._nonEncodableSepar... | javascript | function (hashObject) {
var prop, re = this._nonEncodableSepRegExp;
for (var key in hashObject) {
if (hashObject.hasOwnProperty(key)) {
if (re && key.match(re)) {
this.$logError(this.INVALID_HASHOBJECT_KEY, [key, this._nonEncodableSepar... | [
"function",
"(",
"hashObject",
")",
"{",
"var",
"prop",
",",
"re",
"=",
"this",
".",
"_nonEncodableSepRegExp",
";",
"for",
"(",
"var",
"key",
"in",
"hashObject",
")",
"{",
"if",
"(",
"hashObject",
".",
"hasOwnProperty",
"(",
"key",
")",
")",
"{",
"if",... | Checks that the values contained in the hashObject are strings and that both the keys and the values do not
contain any of the characters specified as separators that cannot be encoded
@param {Object} hashObject
@return {Boolean} true if the hashObject is valid, false otherwise
@protected | [
"Checks",
"that",
"the",
"values",
"contained",
"in",
"the",
"hashObject",
"are",
"strings",
"and",
"that",
"both",
"the",
"keys",
"and",
"the",
"values",
"do",
"not",
"contain",
"any",
"of",
"the",
"characters",
"specified",
"as",
"separators",
"that",
"can... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L465-L488 | |
27,207 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (sep) {
var nonEncodedSep = [];
for (var i = 0, len = sep.length; i < len; i++) {
if (sep[i] == encodeURIComponent(sep[i])) {
nonEncodedSep.push(sep[i]);
}
}
return nonEncodedSep;
} | javascript | function (sep) {
var nonEncodedSep = [];
for (var i = 0, len = sep.length; i < len; i++) {
if (sep[i] == encodeURIComponent(sep[i])) {
nonEncodedSep.push(sep[i]);
}
}
return nonEncodedSep;
} | [
"function",
"(",
"sep",
")",
"{",
"var",
"nonEncodedSep",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"sep",
".",
"length",
";",
"i",
"<",
"len",
";",
"i",
"++",
")",
"{",
"if",
"(",
"sep",
"[",
"i",
"]",
"==",
... | Return the array of separators that cannot be encoded
@param {Array} sep Array of separators
@return {Array} array of non encodable separators | [
"Return",
"the",
"array",
"of",
"separators",
"that",
"cannot",
"be",
"encoded"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L495-L503 | |
27,208 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (arg) {
var specialCharRegExp = /([\^\$\.\*\+\?\=\!\:\|\\\/\(\)\[\]\{\}]){1,1}/g;
var regexpStringArray = [];
for (var i = 0, len = arg.length; i < len; i++) {
regexpStringArray.push(arg[i].replace(specialCharRegExp, "\\$1"));
}
if (re... | javascript | function (arg) {
var specialCharRegExp = /([\^\$\.\*\+\?\=\!\:\|\\\/\(\)\[\]\{\}]){1,1}/g;
var regexpStringArray = [];
for (var i = 0, len = arg.length; i < len; i++) {
regexpStringArray.push(arg[i].replace(specialCharRegExp, "\\$1"));
}
if (re... | [
"function",
"(",
"arg",
")",
"{",
"var",
"specialCharRegExp",
"=",
"/",
"([\\^\\$\\.\\*\\+\\?\\=\\!\\:\\|\\\\\\/\\(\\)\\[\\]\\{\\}]){1,1}",
"/",
"g",
";",
"var",
"regexpStringArray",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"len",
"=",
"arg",... | Return the regular expression needed to match one occurrence of any of the strings specified in the entries
of the array
@param {Array} arg Array of alternatives
@return {RegExp} | [
"Return",
"the",
"regular",
"expression",
"needed",
"to",
"match",
"one",
"occurrence",
"of",
"any",
"of",
"the",
"strings",
"specified",
"in",
"the",
"entries",
"of",
"the",
"array"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L511-L522 | |
27,209 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function () {
var iframe, document = Aria.$window.document;
iframe = document.createElement('iframe');
iframe.setAttribute('id', this.IFRAME_ID);
iframe.style.display = 'none';
document.body.appendChild(iframe);
this._iframe = iframe;
... | javascript | function () {
var iframe, document = Aria.$window.document;
iframe = document.createElement('iframe');
iframe.setAttribute('id', this.IFRAME_ID);
iframe.style.display = 'none';
document.body.appendChild(iframe);
this._iframe = iframe;
... | [
"function",
"(",
")",
"{",
"var",
"iframe",
",",
"document",
"=",
"Aria",
".",
"$window",
".",
"document",
";",
"iframe",
"=",
"document",
".",
"createElement",
"(",
"'iframe'",
")",
";",
"iframe",
".",
"setAttribute",
"(",
"'id'",
",",
"this",
".",
"I... | Create an iframe that is used to simulate a history in browsers that do not do that in the main window on
hash change
@protected | [
"Create",
"an",
"iframe",
"that",
"is",
"used",
"to",
"simulate",
"a",
"history",
"in",
"browsers",
"that",
"do",
"not",
"do",
"that",
"in",
"the",
"main",
"window",
"on",
"hash",
"change"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L529-L544 | |
27,210 | ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (hash) {
var iframe = this._iframe;
if (!iframe) {
return;
}
hash = hash || "";
if (this._currentIframeHashString != hash) {
var src = ['javascript:document.open();'];
src.push('document.write(\"<script ... | javascript | function (hash) {
var iframe = this._iframe;
if (!iframe) {
return;
}
hash = hash || "";
if (this._currentIframeHashString != hash) {
var src = ['javascript:document.open();'];
src.push('document.write(\"<script ... | [
"function",
"(",
"hash",
")",
"{",
"var",
"iframe",
"=",
"this",
".",
"_iframe",
";",
"if",
"(",
"!",
"iframe",
")",
"{",
"return",
";",
"}",
"hash",
"=",
"hash",
"||",
"\"\"",
";",
"if",
"(",
"this",
".",
"_currentIframeHashString",
"!=",
"hash",
... | Add a hash in the iframe history
@param {String} hash
@protected | [
"Add",
"a",
"hash",
"in",
"the",
"iframe",
"history"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L551-L570 | |
27,211 | ariatemplates/ariatemplates | src/aria/widgets/container/Tooltip.js | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._popup && this._associatedWidget == widget) {
this._popup.cancelMouseOutTimer();
}
if (!this._showTimeout) {
this... | javascript | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._popup && this._associatedWidget == widget) {
this._popup.cancelMouseOutTimer();
}
if (!this._showTimeout) {
this... | [
"function",
"(",
"widget",
",",
"domEvt",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_cfgOk",
")",
"{",
"return",
";",
"}",
"if",
"(",
"this",
".",
"_popup",
"&&",
"this",
".",
"_associatedWidget",
"==",
"widget",
")",
"{",
"this",
".",
"_popup",
".",... | Called when the associated widget receives a mouseover event.
@param {aria.widgets.Widget} widget associated widget
@param {aria.DomEvent} domEvt | [
"Called",
"when",
"the",
"associated",
"widget",
"receives",
"a",
"mouseover",
"event",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/container/Tooltip.js#L137-L158 | |
27,212 | ariatemplates/ariatemplates | src/aria/widgets/container/Tooltip.js | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._showTimeout && this._cfg.showOnlyOnMouseStill) {
timer.cancelCallback(this._showTimeout);
this._showTimeout = timer.addCallback({
... | javascript | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._showTimeout && this._cfg.showOnlyOnMouseStill) {
timer.cancelCallback(this._showTimeout);
this._showTimeout = timer.addCallback({
... | [
"function",
"(",
"widget",
",",
"domEvt",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_cfgOk",
")",
"{",
"return",
";",
"}",
"if",
"(",
"this",
".",
"_showTimeout",
"&&",
"this",
".",
"_cfg",
".",
"showOnlyOnMouseStill",
")",
"{",
"timer",
".",
"cancelCa... | Called when the associated widget receives a mousemove event.
@param {aria.widgets.widget} widget associated widget
@param {aria.DomEvent} domEvt | [
"Called",
"when",
"the",
"associated",
"widget",
"receives",
"a",
"mousemove",
"event",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/container/Tooltip.js#L164-L183 | |
27,213 | ariatemplates/ariatemplates | src/aria/widgets/container/Tooltip.js | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._popup) {
this._popup.closeOnMouseOut(domEvt);
}
if (this._showTimeout) {
timer.cancelCallback(this._showTimeout)... | javascript | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._popup) {
this._popup.closeOnMouseOut(domEvt);
}
if (this._showTimeout) {
timer.cancelCallback(this._showTimeout)... | [
"function",
"(",
"widget",
",",
"domEvt",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_cfgOk",
")",
"{",
"return",
";",
"}",
"if",
"(",
"this",
".",
"_popup",
")",
"{",
"this",
".",
"_popup",
".",
"closeOnMouseOut",
"(",
"domEvt",
")",
";",
"}",
"if"... | Called when the associated widget receives a mouseout event.
@param {aria.widgets.Widget} widget associated widget
@param {aria.DomEvent} domEvt | [
"Called",
"when",
"the",
"associated",
"widget",
"receives",
"a",
"mouseout",
"event",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/container/Tooltip.js#L189-L200 | |
27,214 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (args, cb) {
this.setData(args.dataModel);
var itemsInfo = args.itemsInfo;
var res = this._mergeItemsAndSelectionInfo(itemsInfo.items, itemsInfo.selectedValues, itemsInfo.selectedIndex);
this._setItems(res.items);
this.json.setValue(this._data, "se... | javascript | function (args, cb) {
this.setData(args.dataModel);
var itemsInfo = args.itemsInfo;
var res = this._mergeItemsAndSelectionInfo(itemsInfo.items, itemsInfo.selectedValues, itemsInfo.selectedIndex);
this._setItems(res.items);
this.json.setValue(this._data, "se... | [
"function",
"(",
"args",
",",
"cb",
")",
"{",
"this",
".",
"setData",
"(",
"args",
".",
"dataModel",
")",
";",
"var",
"itemsInfo",
"=",
"args",
".",
"itemsInfo",
";",
"var",
"res",
"=",
"this",
".",
"_mergeItemsAndSelectionInfo",
"(",
"itemsInfo",
".",
... | Initialise the module controller
@param {Object} args
@param {aria.core.CfgBeans:Callback} cb callback | [
"Initialise",
"the",
"module",
"controller"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L77-L101 | |
27,215 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (selectedIdx) {
if (!this._navigationEvent) { // will not override any selections using arrow keys or mouse over
if (this._data.preselect === "none") {
return null;
} else if (this._data.preselect === "always") {
if (selectedId... | javascript | function (selectedIdx) {
if (!this._navigationEvent) { // will not override any selections using arrow keys or mouse over
if (this._data.preselect === "none") {
return null;
} else if (this._data.preselect === "always") {
if (selectedId... | [
"function",
"(",
"selectedIdx",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_navigationEvent",
")",
"{",
"// will not override any selections using arrow keys or mouse over",
"if",
"(",
"this",
".",
"_data",
".",
"preselect",
"===",
"\"none\"",
")",
"{",
"return",
"nu... | Return the item that should be preselected depending on the navigation event
@param {Integer} selectedIdx selected option index
@protected
@return {Integer} Item position or null if nothing should be preselected | [
"Return",
"the",
"item",
"that",
"should",
"be",
"preselected",
"depending",
"on",
"the",
"navigation",
"event"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L120-L133 | |
27,216 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (itemsList) {
var selectedCount = this._data.selectedCount;
var maxSelectedCount = this._getTrueMaxSelectedCount();
for (var i = 0, l = itemsList.length; i < l; i++) {
var item = itemsList[i];
var res = item.initiallyDisabled;
... | javascript | function (itemsList) {
var selectedCount = this._data.selectedCount;
var maxSelectedCount = this._getTrueMaxSelectedCount();
for (var i = 0, l = itemsList.length; i < l; i++) {
var item = itemsList[i];
var res = item.initiallyDisabled;
... | [
"function",
"(",
"itemsList",
")",
"{",
"var",
"selectedCount",
"=",
"this",
".",
"_data",
".",
"selectedCount",
";",
"var",
"maxSelectedCount",
"=",
"this",
".",
"_getTrueMaxSelectedCount",
"(",
")",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",... | Update the currentlyDisabled properties of each item in itemsList, based on the initiallyDisabled and
selected properties and on the current number of selected items.
@param {Array} itemsList array of items (sub-array of this._data.items) whose currentlyDisabled properties
have to be updated
@protected | [
"Update",
"the",
"currentlyDisabled",
"properties",
"of",
"each",
"item",
"in",
"itemsList",
"based",
"on",
"the",
"initiallyDisabled",
"and",
"selected",
"properties",
"and",
"on",
"the",
"current",
"number",
"of",
"selected",
"items",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L202-L213 | |
27,217 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (itemIndex) {
this._stopUpdates();
var json = this.json;
var data = this._data;
var itemsList = data.items;
var item = itemsList[itemIndex];
var isSelected = item.selected;
// Needed to optimize the template
var n... | javascript | function (itemIndex) {
this._stopUpdates();
var json = this.json;
var data = this._data;
var itemsList = data.items;
var item = itemsList[itemIndex];
var isSelected = item.selected;
// Needed to optimize the template
var n... | [
"function",
"(",
"itemIndex",
")",
"{",
"this",
".",
"_stopUpdates",
"(",
")",
";",
"var",
"json",
"=",
"this",
".",
"json",
";",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"var",
"itemsList",
"=",
"data",
".",
"items",
";",
"var",
"item",
"=",... | Called when the selected property of an item changed. This method updates the selectedCount and selectedIndex
properties in the data model and unselect other items if the maximum number of selected items has been
reached.
@param {Number} itemIndex item whose selected property has just changed.
@protected | [
"Called",
"when",
"the",
"selected",
"property",
"of",
"an",
"item",
"changed",
".",
"This",
"method",
"updates",
"the",
"selectedCount",
"and",
"selectedIndex",
"properties",
"in",
"the",
"data",
"model",
"and",
"unselect",
"other",
"items",
"if",
"the",
"max... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L222-L309 | |
27,218 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (items, selectedValues, selectedIdx) {
var arrayUtil = ariaUtilsArray;
var preselect = this._checkPreselect(selectedIdx);
selectedIdx = (preselect === undefined) ? selectedIdx : preselect;
var maxSelectedCount = this._getTrueMaxSelectedCount(items);
v... | javascript | function (items, selectedValues, selectedIdx) {
var arrayUtil = ariaUtilsArray;
var preselect = this._checkPreselect(selectedIdx);
selectedIdx = (preselect === undefined) ? selectedIdx : preselect;
var maxSelectedCount = this._getTrueMaxSelectedCount(items);
v... | [
"function",
"(",
"items",
",",
"selectedValues",
",",
"selectedIdx",
")",
"{",
"var",
"arrayUtil",
"=",
"ariaUtilsArray",
";",
"var",
"preselect",
"=",
"this",
".",
"_checkPreselect",
"(",
"selectedIdx",
")",
";",
"selectedIdx",
"=",
"(",
"preselect",
"===",
... | Merges item data in it's different formats with the selection info.
@param {} items The items in one of the accepted formats by the ListCfg bean. Can for example be an array
with label/value pairs, or a specification of a container and where to get the label and value properties in
that container.
@param {} selectedVal... | [
"Merges",
"item",
"data",
"in",
"it",
"s",
"different",
"formats",
"with",
"the",
"selection",
"info",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L386-L468 | |
27,219 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (flowOrientation, focusIndex, numberOfRows, numberOfColumns, keyCode, numberItems) {
var moveFocus = focusIndex;
if (numberOfColumns == 1) {
if (keyCode == ariaDomEvent.KC_ARROW_UP) {
moveFocus--;
}
if (keyCode == ari... | javascript | function (flowOrientation, focusIndex, numberOfRows, numberOfColumns, keyCode, numberItems) {
var moveFocus = focusIndex;
if (numberOfColumns == 1) {
if (keyCode == ariaDomEvent.KC_ARROW_UP) {
moveFocus--;
}
if (keyCode == ari... | [
"function",
"(",
"flowOrientation",
",",
"focusIndex",
",",
"numberOfRows",
",",
"numberOfColumns",
",",
"keyCode",
",",
"numberItems",
")",
"{",
"var",
"moveFocus",
"=",
"focusIndex",
";",
"if",
"(",
"numberOfColumns",
"==",
"1",
")",
"{",
"if",
"(",
"keyCo... | This method calculates which element of the list should have focus after a keypress
@param {String} flowOrientation Whether the items are listed horizonally or vertically
@param {String} focusIndex Which list item is currently focused
@param {String} numberOfRows How many rows are there in the list
@param {String} numb... | [
"This",
"method",
"calculates",
"which",
"element",
"of",
"the",
"list",
"should",
"have",
"focus",
"after",
"a",
"keypress"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L499-L565 | |
27,220 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (evtInfo) {
var data = this._data;
var evt = {
name : "keyevent",
charCode : evtInfo.charCode,
keyCode : evtInfo.keyCode,
focusIndex : data.focusIndex,
cancelDefault : false
};
thi... | javascript | function (evtInfo) {
var data = this._data;
var evt = {
name : "keyevent",
charCode : evtInfo.charCode,
keyCode : evtInfo.keyCode,
focusIndex : data.focusIndex,
cancelDefault : false
};
thi... | [
"function",
"(",
"evtInfo",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"var",
"evt",
"=",
"{",
"name",
":",
"\"keyevent\"",
",",
"charCode",
":",
"evtInfo",
".",
"charCode",
",",
"keyCode",
":",
"evtInfo",
".",
"keyCode",
",",
"focusIndex... | Notify the list controller that a key has been pressed. The controller reacts by sending a keyevent event.
Upon receiving that event, listeners can either ignore it, which leads to the default action being executed
when returning from the event, or they can override the default action by changing event properties.
@par... | [
"Notify",
"the",
"list",
"controller",
"that",
"a",
"key",
"has",
"been",
"pressed",
".",
"The",
"controller",
"reacts",
"by",
"sending",
"a",
"keyevent",
"event",
".",
"Upon",
"receiving",
"that",
"event",
"listeners",
"can",
"either",
"ignore",
"it",
"whic... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L575-L624 | |
27,221 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (newValue) {
var data = this._data;
if (newValue == null) {
// a null value is allowed for the selectedIndex property, but it cannot be used to set the property
// as it means several items are selected and we do not know which ones
// ju... | javascript | function (newValue) {
var data = this._data;
if (newValue == null) {
// a null value is allowed for the selectedIndex property, but it cannot be used to set the property
// as it means several items are selected and we do not know which ones
// ju... | [
"function",
"(",
"newValue",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"if",
"(",
"newValue",
"==",
"null",
")",
"{",
"// a null value is allowed for the selectedIndex property, but it cannot be used to set the property",
"// as it means several items are selec... | This focuses the correct item in the list based on the item passed
@public
@param {Number} The item number to focus
@returns Boolean | [
"This",
"focuses",
"the",
"correct",
"item",
"in",
"the",
"list",
"based",
"on",
"the",
"item",
"passed"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L632-L654 | |
27,222 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (itemIndex, alreadyChanged) {
var data = this._data;
itemIndex = parseInt(itemIndex, 10); // it will most likely be a string before the conversion
if (isNaN(itemIndex) || itemIndex < 0 || itemIndex > data.items.length) {
return; // ignore wrong values of it... | javascript | function (itemIndex, alreadyChanged) {
var data = this._data;
itemIndex = parseInt(itemIndex, 10); // it will most likely be a string before the conversion
if (isNaN(itemIndex) || itemIndex < 0 || itemIndex > data.items.length) {
return; // ignore wrong values of it... | [
"function",
"(",
"itemIndex",
",",
"alreadyChanged",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"itemIndex",
"=",
"parseInt",
"(",
"itemIndex",
",",
"10",
")",
";",
"// it will most likely be a string before the conversion",
"if",
"(",
"isNaN",
"("... | Called when an item is clicked
@param {String} itemIndex index of the item that was changed
@param {Boolean} alreadyChanged if true the selected property of the item was already changed (so that it is
not necessary to change it again, only raise the itemClick event) | [
"Called",
"when",
"an",
"item",
"is",
"clicked"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L670-L708 | |
27,223 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (itemIndex) {
var data = this._data;
itemIndex = parseInt(itemIndex, 10); // it will most likely be a string before the conversion
if (isNaN(itemIndex) || itemIndex < 0 || itemIndex > data.items.length) {
return; // ignore wrong values of itemIndex
... | javascript | function (itemIndex) {
var data = this._data;
itemIndex = parseInt(itemIndex, 10); // it will most likely be a string before the conversion
if (isNaN(itemIndex) || itemIndex < 0 || itemIndex > data.items.length) {
return; // ignore wrong values of itemIndex
... | [
"function",
"(",
"itemIndex",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"itemIndex",
"=",
"parseInt",
"(",
"itemIndex",
",",
"10",
")",
";",
"// it will most likely be a string before the conversion",
"if",
"(",
"isNaN",
"(",
"itemIndex",
")",
"... | Called when the mouse moves over an item.
@param {String} itemIndex index of the item over which the mouse moved | [
"Called",
"when",
"the",
"mouse",
"moves",
"over",
"an",
"item",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L714-L729 | |
27,224 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (itemIndex) {
// Don't do anything if the widget is disabled
if (!this._data.disabled) {
var newVal = !this._data.items[itemIndex].selected;
this.setSelection(itemIndex, newVal);
return newVal;
} else {
return t... | javascript | function (itemIndex) {
// Don't do anything if the widget is disabled
if (!this._data.disabled) {
var newVal = !this._data.items[itemIndex].selected;
this.setSelection(itemIndex, newVal);
return newVal;
} else {
return t... | [
"function",
"(",
"itemIndex",
")",
"{",
"// Don't do anything if the widget is disabled",
"if",
"(",
"!",
"this",
".",
"_data",
".",
"disabled",
")",
"{",
"var",
"newVal",
"=",
"!",
"this",
".",
"_data",
".",
"items",
"[",
"itemIndex",
"]",
".",
"selected",
... | Toggles the selection of a specific item
@param {Number} itemIndex Index of the item to toggle in the items array in the data model
@return true if item is selected after this call, false if not selected | [
"Toggles",
"the",
"selection",
"of",
"a",
"specific",
"item"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L736-L745 | |
27,225 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (newValues) {
var arrayUtil = ariaUtilsArray;
this._stopUpdates();
var newlySelectedIndexes = [];
var newlyUnselectedIndexes = [];
// Loop through all of the items and update the selection status for each item,
// depending on the new ar... | javascript | function (newValues) {
var arrayUtil = ariaUtilsArray;
this._stopUpdates();
var newlySelectedIndexes = [];
var newlyUnselectedIndexes = [];
// Loop through all of the items and update the selection status for each item,
// depending on the new ar... | [
"function",
"(",
"newValues",
")",
"{",
"var",
"arrayUtil",
"=",
"ariaUtilsArray",
";",
"this",
".",
"_stopUpdates",
"(",
")",
";",
"var",
"newlySelectedIndexes",
"=",
"[",
"]",
";",
"var",
"newlyUnselectedIndexes",
"=",
"[",
"]",
";",
"// Loop through all of ... | Set the list of selected values.
@param {Array} newValues | [
"Set",
"the",
"list",
"of",
"selected",
"values",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L760-L809 | |
27,226 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (newValue) {
if (newValue == null) {
// a null value is allowed for the selectedIndex property, but it cannot be used to set the property
// as it means several items are selected and we do not know which ones
// just ignore the null value
... | javascript | function (newValue) {
if (newValue == null) {
// a null value is allowed for the selectedIndex property, but it cannot be used to set the property
// as it means several items are selected and we do not know which ones
// just ignore the null value
... | [
"function",
"(",
"newValue",
")",
"{",
"if",
"(",
"newValue",
"==",
"null",
")",
"{",
"// a null value is allowed for the selectedIndex property, but it cannot be used to set the property",
"// as it means several items are selected and we do not know which ones",
"// just ignore the nul... | Set the selected index.
@param {Number} newValue | [
"Set",
"the",
"selected",
"index",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L815-L829 | |
27,227 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function () {
var data = this._data;
if (data.selectedIndex == -1) {
// no item is selected
return [];
} else if (data.selectedIndex != null) {
return [data.selectedIndex];
} else {
var retVal = [];
... | javascript | function () {
var data = this._data;
if (data.selectedIndex == -1) {
// no item is selected
return [];
} else if (data.selectedIndex != null) {
return [data.selectedIndex];
} else {
var retVal = [];
... | [
"function",
"(",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"if",
"(",
"data",
".",
"selectedIndex",
"==",
"-",
"1",
")",
"{",
"// no item is selected",
"return",
"[",
"]",
";",
"}",
"else",
"if",
"(",
"data",
".",
"selectedIndex",
"!="... | Get an array of all selected indexes.
@return {Array} | [
"Get",
"an",
"array",
"of",
"all",
"selected",
"indexes",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L864-L885 | |
27,228 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function () {
var selectedIndexes = this.getSelectedIndexes();
var retVal = [];
var items = this._data.items;
for (var i = 0, length = selectedIndexes.length; i < length; i++) {
retVal[i] = items[selectedIndexes[i]];
}
return retVal... | javascript | function () {
var selectedIndexes = this.getSelectedIndexes();
var retVal = [];
var items = this._data.items;
for (var i = 0, length = selectedIndexes.length; i < length; i++) {
retVal[i] = items[selectedIndexes[i]];
}
return retVal... | [
"function",
"(",
")",
"{",
"var",
"selectedIndexes",
"=",
"this",
".",
"getSelectedIndexes",
"(",
")",
";",
"var",
"retVal",
"=",
"[",
"]",
";",
"var",
"items",
"=",
"this",
".",
"_data",
".",
"items",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
... | Gets all selected list items.
@return {Array} An array of all selected items. The items returned are in the internal data model format.
From these items it's possible to get for example label, value and selection data. | [
"Gets",
"all",
"selected",
"list",
"items",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L892-L900 | |
27,229 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (newlySelectedIndexes, newlyUnselectedIndexes) {
var data = this._data;
if (newlySelectedIndexes.length === 0 && data.selectedCount === 0) {
var preselect = this._checkPreselect();
if (preselect != null) {
newlySelectedIndexes = [prese... | javascript | function (newlySelectedIndexes, newlyUnselectedIndexes) {
var data = this._data;
if (newlySelectedIndexes.length === 0 && data.selectedCount === 0) {
var preselect = this._checkPreselect();
if (preselect != null) {
newlySelectedIndexes = [prese... | [
"function",
"(",
"newlySelectedIndexes",
",",
"newlyUnselectedIndexes",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_data",
";",
"if",
"(",
"newlySelectedIndexes",
".",
"length",
"===",
"0",
"&&",
"data",
".",
"selectedCount",
"===",
"0",
")",
"{",
"var",
... | Raises the onChange event
@protected
@param {Array} newlySelectedIndexes array of newly selected indexes
@param {Array} newlyUnselectedIndexes array of newly unselected indexes | [
"Raises",
"the",
"onChange",
"event"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L923-L940 | |
27,230 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function (flowOrientation, numberOfRows, numberOfCols, noItems) {
var numItemsLastCol;
if (flowOrientation == 'vertical') {
if (!numberOfRows) {
if (numberOfCols) {
numberOfRows = Math.ceil(noItems / numberOfCols);
... | javascript | function (flowOrientation, numberOfRows, numberOfCols, noItems) {
var numItemsLastCol;
if (flowOrientation == 'vertical') {
if (!numberOfRows) {
if (numberOfCols) {
numberOfRows = Math.ceil(noItems / numberOfCols);
... | [
"function",
"(",
"flowOrientation",
",",
"numberOfRows",
",",
"numberOfCols",
",",
"noItems",
")",
"{",
"var",
"numItemsLastCol",
";",
"if",
"(",
"flowOrientation",
"==",
"'vertical'",
")",
"{",
"if",
"(",
"!",
"numberOfRows",
")",
"{",
"if",
"(",
"numberOfC... | Calculates the number of columns and rows a list should have based on the flow
@protected
@param {String} flowOrientation Orientation of list whether 'horizontal' or 'verticle'
@param {Number} numberOfRows The number of Rows
@param {Number} numberOfCols The number of Columns
@param {Number} noItems The number of Items | [
"Calculates",
"the",
"number",
"of",
"columns",
"and",
"rows",
"a",
"list",
"should",
"have",
"based",
"on",
"the",
"flow"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L950-L986 | |
27,231 | ariatemplates/ariatemplates | src/aria/widgets/form/list/ListController.js | function () {
var selected = [];
var items = this._data.items;
for (var i = 0; i < items.length; i++) {
if (!items[i].initiallyDisabled) {
selected.push(items[i].value);
}
}
this.setSelectedValues(selected);
... | javascript | function () {
var selected = [];
var items = this._data.items;
for (var i = 0; i < items.length; i++) {
if (!items[i].initiallyDisabled) {
selected.push(items[i].value);
}
}
this.setSelectedValues(selected);
... | [
"function",
"(",
")",
"{",
"var",
"selected",
"=",
"[",
"]",
";",
"var",
"items",
"=",
"this",
".",
"_data",
".",
"items",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"items",
".",
"length",
";",
"i",
"++",
")",
"{",
"if",
"(",
"!... | Selects all values in order that they are stored in the datamodel. If any values are initially disabled they
will not be selected. If a value becomes disabled due to the maxOptions constraint then they will not be
selected. | [
"Selects",
"all",
"values",
"in",
"order",
"that",
"they",
"are",
"stored",
"in",
"the",
"datamodel",
".",
"If",
"any",
"values",
"are",
"initially",
"disabled",
"they",
"will",
"not",
"be",
"selected",
".",
"If",
"a",
"value",
"becomes",
"disabled",
"due"... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/ListController.js#L1010-L1022 | |
27,232 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (url, force) {
if (force || this._timestampURL[url]) {
var timestamp = (new Date()).getTime();
if (url.indexOf("?") != -1) {
return url + "×tamp=" + timestamp;
} else {
return url + "?timestamp=" + timestam... | javascript | function (url, force) {
if (force || this._timestampURL[url]) {
var timestamp = (new Date()).getTime();
if (url.indexOf("?") != -1) {
return url + "×tamp=" + timestamp;
} else {
return url + "?timestamp=" + timestam... | [
"function",
"(",
"url",
",",
"force",
")",
"{",
"if",
"(",
"force",
"||",
"this",
".",
"_timestampURL",
"[",
"url",
"]",
")",
"{",
"var",
"timestamp",
"=",
"(",
"new",
"Date",
"(",
")",
")",
".",
"getTime",
"(",
")",
";",
"if",
"(",
"url",
".",... | Add a timestamp to the given URL if it should bypass browser cache.
@param {String} url URL for which a timestamp should be added if necessary
@param {Boolean} force if true, the timestamp will always be added
@return {String} URL with the added timestamp if this is required | [
"Add",
"a",
"timestamp",
"to",
"the",
"given",
"URL",
"if",
"it",
"should",
"bypass",
"browser",
"cache",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L142-L153 | |
27,233 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (urls) {
if (this._typeUtils.isString(urls)) {
urls = [urls];
}
var _getPackages = function (urls, urlMap, packages) {
if (urls.length === 0) {
// everything has been found, leave back the recursive loop
... | javascript | function (urls) {
if (this._typeUtils.isString(urls)) {
urls = [urls];
}
var _getPackages = function (urls, urlMap, packages) {
if (urls.length === 0) {
// everything has been found, leave back the recursive loop
... | [
"function",
"(",
"urls",
")",
"{",
"if",
"(",
"this",
".",
"_typeUtils",
".",
"isString",
"(",
"urls",
")",
")",
"{",
"urls",
"=",
"[",
"urls",
"]",
";",
"}",
"var",
"_getPackages",
"=",
"function",
"(",
"urls",
",",
"urlMap",
",",
"packages",
")",... | Return an url list from an array containing the starting url, this function is usefull to retrieve package
name with md5 from the name without it
@param {String|Array} urls starting url string
@return {Array} array of full url | [
"Return",
"an",
"url",
"list",
"from",
"an",
"array",
"containing",
"the",
"starting",
"url",
"this",
"function",
"is",
"usefull",
"to",
"retrieve",
"package",
"name",
"with",
"md5",
"from",
"the",
"name",
"without",
"it"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L161-L207 | |
27,234 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (map, pathparts, doubleStar) {
for (var i = 0, l = pathparts.length; i < l; i++) {
var part = pathparts[i];
if (!this._typeUtils.isObject(map) || this._typeUtils.isInstanceOf(map, 'aria.core.JsObject')) {
break;
}
i... | javascript | function (map, pathparts, doubleStar) {
for (var i = 0, l = pathparts.length; i < l; i++) {
var part = pathparts[i];
if (!this._typeUtils.isObject(map) || this._typeUtils.isInstanceOf(map, 'aria.core.JsObject')) {
break;
}
i... | [
"function",
"(",
"map",
",",
"pathparts",
",",
"doubleStar",
")",
"{",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",
"pathparts",
".",
"length",
";",
"i",
"<",
"l",
";",
"i",
"++",
")",
"{",
"var",
"part",
"=",
"pathparts",
"[",
"i",
"]",
... | Find node associated to a path in a map. May be a string, an object, a function or a instance of callback, or
null.
@protected
@param {Object} map
@param {Array} pathparts
@param {Boolean} doubleStar support double star ** notation
@return {Object} node and index in path | [
"Find",
"node",
"associated",
"to",
"a",
"path",
"in",
"a",
"map",
".",
"May",
"be",
"a",
"string",
"an",
"object",
"a",
"function",
"or",
"a",
"instance",
"of",
"callback",
"or",
"null",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L323-L348 | |
27,235 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (evt) {
var loader = evt.src, cache = this._cache, itm, lps = loader.getLogicalPaths();
if (lps) {
// remove loader ref from all 'files' entries
var sz = lps.length;
for (var i = 0; sz > i; i++) {
itm = cache.getItem("f... | javascript | function (evt) {
var loader = evt.src, cache = this._cache, itm, lps = loader.getLogicalPaths();
if (lps) {
// remove loader ref from all 'files' entries
var sz = lps.length;
for (var i = 0; sz > i; i++) {
itm = cache.getItem("f... | [
"function",
"(",
"evt",
")",
"{",
"var",
"loader",
"=",
"evt",
".",
"src",
",",
"cache",
"=",
"this",
".",
"_cache",
",",
"itm",
",",
"lps",
"=",
"loader",
".",
"getLogicalPaths",
"(",
")",
";",
"if",
"(",
"lps",
")",
"{",
"// remove loader ref from ... | Internal method called when a file loader can be disposed
@param {aria.core.FileLoader:complete:event} evt
@private | [
"Internal",
"method",
"called",
"when",
"a",
"file",
"loader",
"can",
"be",
"disposed"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L401-L423 | |
27,236 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (logicalPath, content, hasErrors) {
var itm = this._cache.getItem("files", logicalPath, true);
if (hasErrors) {
itm.status = this._cache.STATUS_ERROR;
} else {
itm.value = content;
itm.status = this._cache.STATUS_AVAILABLE;
... | javascript | function (logicalPath, content, hasErrors) {
var itm = this._cache.getItem("files", logicalPath, true);
if (hasErrors) {
itm.status = this._cache.STATUS_ERROR;
} else {
itm.value = content;
itm.status = this._cache.STATUS_AVAILABLE;
... | [
"function",
"(",
"logicalPath",
",",
"content",
",",
"hasErrors",
")",
"{",
"var",
"itm",
"=",
"this",
".",
"_cache",
".",
"getItem",
"(",
"\"files\"",
",",
"logicalPath",
",",
"true",
")",
";",
"if",
"(",
"hasErrors",
")",
"{",
"itm",
".",
"status",
... | Function called by a file loader when a file content has been retrieved
@param {String} logicalPath the logical path of the file
@param {String} content the file content | [
"Function",
"called",
"by",
"a",
"file",
"loader",
"when",
"a",
"file",
"content",
"has",
"been",
"retrieved"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L430-L441 | |
27,237 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (logicalPath) {
var itm = this._cache.getItem("files", logicalPath, false);
if (itm && itm.status == this._cache.STATUS_AVAILABLE) {
return itm.value;
}
return null;
} | javascript | function (logicalPath) {
var itm = this._cache.getItem("files", logicalPath, false);
if (itm && itm.status == this._cache.STATUS_AVAILABLE) {
return itm.value;
}
return null;
} | [
"function",
"(",
"logicalPath",
")",
"{",
"var",
"itm",
"=",
"this",
".",
"_cache",
".",
"getItem",
"(",
"\"files\"",
",",
"logicalPath",
",",
"false",
")",
";",
"if",
"(",
"itm",
"&&",
"itm",
".",
"status",
"==",
"this",
".",
"_cache",
".",
"STATUS_... | Get the file content from its logical path Return null if file is in error
@param {String} logicalPath
@return {String} | [
"Get",
"the",
"file",
"content",
"from",
"its",
"logical",
"path",
"Return",
"null",
"if",
"file",
"is",
"in",
"error"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L448-L454 | |
27,238 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (classpath, cb) {
var logicalPath = Aria.getLogicalPath(classpath, ".tpl", true);
this.loadFile(logicalPath, {
fn : this._onTplFileContentReceive,
scope : this,
args : {
origCb : cb
}
}, null... | javascript | function (classpath, cb) {
var logicalPath = Aria.getLogicalPath(classpath, ".tpl", true);
this.loadFile(logicalPath, {
fn : this._onTplFileContentReceive,
scope : this,
args : {
origCb : cb
}
}, null... | [
"function",
"(",
"classpath",
",",
"cb",
")",
"{",
"var",
"logicalPath",
"=",
"Aria",
".",
"getLogicalPath",
"(",
"classpath",
",",
"\".tpl\"",
",",
"true",
")",
";",
"this",
".",
"loadFile",
"(",
"logicalPath",
",",
"{",
"fn",
":",
"this",
".",
"_onTp... | Gets tpl file content based on its classpath or retrieves it from the cache if it has been already loaded
@param {String} classpath Classpath of the template
@param {aria.core.CfgBeans:Callback} cb Callback to be called after tpl content is downloaded | [
"Gets",
"tpl",
"file",
"content",
"based",
"on",
"its",
"classpath",
"or",
"retrieves",
"it",
"from",
"the",
"cache",
"if",
"it",
"has",
"been",
"already",
"loaded"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L461-L470 | |
27,239 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (evt, args) {
var res = {
content : null
};
if (evt.downloadFailed) {
res.downloadFailed = evt.downloadFailed;
}
if (evt.logicalPaths.length > 0) {
res.content = this.getFileContent(evt.logicalPaths[0]);... | javascript | function (evt, args) {
var res = {
content : null
};
if (evt.downloadFailed) {
res.downloadFailed = evt.downloadFailed;
}
if (evt.logicalPaths.length > 0) {
res.content = this.getFileContent(evt.logicalPaths[0]);... | [
"function",
"(",
"evt",
",",
"args",
")",
"{",
"var",
"res",
"=",
"{",
"content",
":",
"null",
"}",
";",
"if",
"(",
"evt",
".",
"downloadFailed",
")",
"{",
"res",
".",
"downloadFailed",
"=",
"evt",
".",
"downloadFailed",
";",
"}",
"if",
"(",
"evt",... | Internal method called when tpl content is loaded
@param {aria.core.FileLoader:complete:event} evt
@param {Object} args Additonal arguments for the callback {origCb: {JSON callback} orignal callback to be
called after file load is complete}
@protected | [
"Internal",
"method",
"called",
"when",
"tpl",
"content",
"is",
"loaded"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L479-L490 | |
27,240 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (logicalPath, timestampNextTime) {
var content = this._cache.content;
delete content.files[logicalPath];
var url = this.resolveURL(logicalPath);
delete content.urls[url];
if (timestampNextTime) {
this.enableURLTimestamp(url, true); // ... | javascript | function (logicalPath, timestampNextTime) {
var content = this._cache.content;
delete content.files[logicalPath];
var url = this.resolveURL(logicalPath);
delete content.urls[url];
if (timestampNextTime) {
this.enableURLTimestamp(url, true); // ... | [
"function",
"(",
"logicalPath",
",",
"timestampNextTime",
")",
"{",
"var",
"content",
"=",
"this",
".",
"_cache",
".",
"content",
";",
"delete",
"content",
".",
"files",
"[",
"logicalPath",
"]",
";",
"var",
"url",
"=",
"this",
".",
"resolveURL",
"(",
"lo... | Remove the file content associated with logical path
@param {String} classpath
@param {Boolean} timestampNextTime if true, the next time the logical path is loaded, browser and server
cache will be bypassed by adding a timestamp to the url | [
"Remove",
"the",
"file",
"content",
"associated",
"with",
"logical",
"path"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L498-L506 | |
27,241 | ariatemplates/ariatemplates | src/aria/core/DownloadMgr.js | function (cb, evt) {
if (this._syncLoadCounter < this.MAX_LOAD_STACK) {
this._syncLoadCounter++;
this.$callback(cb, evt);
this._syncLoadCounter--;
} else {
var self = this;
Aria.$global.setTimeout(function () {
... | javascript | function (cb, evt) {
if (this._syncLoadCounter < this.MAX_LOAD_STACK) {
this._syncLoadCounter++;
this.$callback(cb, evt);
this._syncLoadCounter--;
} else {
var self = this;
Aria.$global.setTimeout(function () {
... | [
"function",
"(",
"cb",
",",
"evt",
")",
"{",
"if",
"(",
"this",
".",
"_syncLoadCounter",
"<",
"this",
".",
"MAX_LOAD_STACK",
")",
"{",
"this",
".",
"_syncLoadCounter",
"++",
";",
"this",
".",
"$callback",
"(",
"cb",
",",
"evt",
")",
";",
"this",
".",... | It calls the callback provided as argument. The call is synchronous unless the number of synchronous file
loads has exceeded the allowed limit
@protected
@param {aria.core.CfgBeans:Callback} cb Callback
@param {Object} evt Description of a "fileReady" event | [
"It",
"calls",
"the",
"callback",
"provided",
"as",
"argument",
".",
"The",
"call",
"is",
"synchronous",
"unless",
"the",
"number",
"of",
"synchronous",
"file",
"loads",
"has",
"exceeded",
"the",
"allowed",
"limit"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/DownloadMgr.js#L515-L527 | |
27,242 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (info) {
if (info.step == "CallBegin" && !aria.templates.ModuleCtrl.prototype[info.method]) {
ariaTemplatesRefreshManager.stop();
}
var evt = {
name : "method" + info.step, /*
* info.step contains either CallBegin, CallEnd or C... | javascript | function (info) {
if (info.step == "CallBegin" && !aria.templates.ModuleCtrl.prototype[info.method]) {
ariaTemplatesRefreshManager.stop();
}
var evt = {
name : "method" + info.step, /*
* info.step contains either CallBegin, CallEnd or C... | [
"function",
"(",
"info",
")",
"{",
"if",
"(",
"info",
".",
"step",
"==",
"\"CallBegin\"",
"&&",
"!",
"aria",
".",
"templates",
".",
"ModuleCtrl",
".",
"prototype",
"[",
"info",
".",
"method",
"]",
")",
"{",
"ariaTemplatesRefreshManager",
".",
"stop",
"("... | Callback method called each time a method from the public interface is called. It raises the methodCallBegin,
methodCallEnd and methodCallback events.
@param {Object} info Interceptor info. | [
"Callback",
"method",
"called",
"each",
"time",
"a",
"method",
"from",
"the",
"public",
"interface",
"is",
"called",
".",
"It",
"raises",
"the",
"methodCallBegin",
"methodCallEnd",
"and",
"methodCallback",
"events",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L177-L192 | |
27,243 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (targetService, jsonData, cb, options) {
var typeUtils = ariaUtilsType;
// change cb as an object if a string or a function is passed as a
// callback
if (typeUtils.isString(cb) || typeUtils.isFunction(cb)) {
var ncb = {
fn : c... | javascript | function (targetService, jsonData, cb, options) {
var typeUtils = ariaUtilsType;
// change cb as an object if a string or a function is passed as a
// callback
if (typeUtils.isString(cb) || typeUtils.isFunction(cb)) {
var ncb = {
fn : c... | [
"function",
"(",
"targetService",
",",
"jsonData",
",",
"cb",
",",
"options",
")",
"{",
"var",
"typeUtils",
"=",
"ariaUtilsType",
";",
"// change cb as an object if a string or a function is passed as a",
"// callback",
"if",
"(",
"typeUtils",
".",
"isString",
"(",
"c... | Submit a JSON Request
@see aria.modules.RequestMgr.
@param {String|Object} targetService, either :
<ul>
<li> the action path - e.g. 'search' or 'search?x=y'. This path will be automatically concatenated to the
module path determined from the class package </li>
<li> a 'service specification' structure, understood by th... | [
"Submit",
"a",
"JSON",
"Request"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L208-L251 | |
27,244 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (evt, args) {
var smList = this._smList;
if (smList) {
// smList can be null if the module is in the process of being disposed
for (var i = 0, l = smList.length; i < l; i++) {
if (smList[i] == evt.src) {
ariaUti... | javascript | function (evt, args) {
var smList = this._smList;
if (smList) {
// smList can be null if the module is in the process of being disposed
for (var i = 0, l = smList.length; i < l; i++) {
if (smList[i] == evt.src) {
ariaUti... | [
"function",
"(",
"evt",
",",
"args",
")",
"{",
"var",
"smList",
"=",
"this",
".",
"_smList",
";",
"if",
"(",
"smList",
")",
"{",
"// smList can be null if the module is in the process of being disposed",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",
"smLi... | Internal callback called anytime a "beforeDispose" sub-module event is triggered.
@param {Object} evt the event object
@param {Object} args some helpful info - e.g. args.smRef (sub-module reference)
@protected | [
"Internal",
"callback",
"called",
"anytime",
"a",
"beforeDispose",
"sub",
"-",
"module",
"event",
"is",
"triggered",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L281-L300 | |
27,245 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (smList, cb) {
// sub-module creation is now entirely managed in ModuleCtrlFactory
// simple shortcut for aria.templates.ModuleCtrlFactory.loadSubModules
ariaTemplatesModuleCtrlFactory.__loadSubModules(this, smList, {
fn : this.__onLoadSubModulesComplete,
... | javascript | function (smList, cb) {
// sub-module creation is now entirely managed in ModuleCtrlFactory
// simple shortcut for aria.templates.ModuleCtrlFactory.loadSubModules
ariaTemplatesModuleCtrlFactory.__loadSubModules(this, smList, {
fn : this.__onLoadSubModulesComplete,
... | [
"function",
"(",
"smList",
",",
"cb",
")",
"{",
"// sub-module creation is now entirely managed in ModuleCtrlFactory",
"// simple shortcut for aria.templates.ModuleCtrlFactory.loadSubModules",
"ariaTemplatesModuleCtrlFactory",
".",
"__loadSubModules",
"(",
"this",
",",
"smList",
",",... | Asynchrously load, create, initialize and reference sub-modules in the module controller and its data model
@param {Array} smList Array of module definition (of type aria.templates.CfgBeans.SubModuleDefinition)
@param {aria.core.CfgBeans:Callback} cb | [
"Asynchrously",
"load",
"create",
"initialize",
"and",
"reference",
"sub",
"-",
"modules",
"in",
"the",
"module",
"controller",
"and",
"its",
"data",
"model"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L319-L327 | |
27,246 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (res, cb) {
var subModules = res.subModules;
if (subModules && subModules.length > 0) {
if (!this._smList) {
this._smList = [];
}
this._smList = this._smList.concat(res.subModules);
}
this.$callb... | javascript | function (res, cb) {
var subModules = res.subModules;
if (subModules && subModules.length > 0) {
if (!this._smList) {
this._smList = [];
}
this._smList = this._smList.concat(res.subModules);
}
this.$callb... | [
"function",
"(",
"res",
",",
"cb",
")",
"{",
"var",
"subModules",
"=",
"res",
".",
"subModules",
";",
"if",
"(",
"subModules",
"&&",
"subModules",
".",
"length",
">",
"0",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_smList",
")",
"{",
"this",
".",
"... | Internal callback method called when all sub-modules requested in loadSubModules have been loaded.
@param {Array} res array of the sub-module public interfaces
@param {aria.core.CfgBeans:Callback} cb callback to be called at the end of this method
@private | [
"Internal",
"callback",
"method",
"called",
"when",
"all",
"sub",
"-",
"modules",
"requested",
"in",
"loadSubModules",
"have",
"been",
"loaded",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L335-L344 | |
27,247 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (data, merge) {
this.json.inject(data, this._data, merge);
if (this._dataBeanName) {
if (!ariaCoreJsonValidator.normalize({
json : this._data,
beanName : this._dataBeanName
})) {
this.$logError(t... | javascript | function (data, merge) {
this.json.inject(data, this._data, merge);
if (this._dataBeanName) {
if (!ariaCoreJsonValidator.normalize({
json : this._data,
beanName : this._dataBeanName
})) {
this.$logError(t... | [
"function",
"(",
"data",
",",
"merge",
")",
"{",
"this",
".",
"json",
".",
"inject",
"(",
"data",
",",
"this",
".",
"_data",
",",
"merge",
")",
";",
"if",
"(",
"this",
".",
"_dataBeanName",
")",
"{",
"if",
"(",
"!",
"ariaCoreJsonValidator",
".",
"n... | Set the data in the dataModel
@param {Object} data the new Data to set
@param {Boolean} merge If true, existing value in this._data will not be overriden | [
"Set",
"the",
"data",
"in",
"the",
"dataModel"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L367-L377 | |
27,248 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function () {
var res = this.__resources;
if (!res) {
var src = this.$resources;
if (src) {
this.__resources = res = {};
for (var itm in src) {
if (src.hasOwnProperty(itm)) {
... | javascript | function () {
var res = this.__resources;
if (!res) {
var src = this.$resources;
if (src) {
this.__resources = res = {};
for (var itm in src) {
if (src.hasOwnProperty(itm)) {
... | [
"function",
"(",
")",
"{",
"var",
"res",
"=",
"this",
".",
"__resources",
";",
"if",
"(",
"!",
"res",
")",
"{",
"var",
"src",
"=",
"this",
".",
"$resources",
";",
"if",
"(",
"src",
")",
"{",
"this",
".",
"__resources",
"=",
"res",
"=",
"{",
"}"... | MPI method available on all modules in order to retrieve the module resource set
@return {Object} The module resource set | [
"MPI",
"method",
"available",
"on",
"all",
"modules",
"in",
"order",
"to",
"retrieve",
"the",
"module",
"resource",
"set"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L383-L397 | |
27,249 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (dataToFind) {
if (this._smList) {
var sz = this._smList.length;
for (var i = 0; i < sz; i++) {
var subModule = this._smList[i];
if (subModule && dataToFind == subModule.getData()) {
return subModule;
... | javascript | function (dataToFind) {
if (this._smList) {
var sz = this._smList.length;
for (var i = 0; i < sz; i++) {
var subModule = this._smList[i];
if (subModule && dataToFind == subModule.getData()) {
return subModule;
... | [
"function",
"(",
"dataToFind",
")",
"{",
"if",
"(",
"this",
".",
"_smList",
")",
"{",
"var",
"sz",
"=",
"this",
".",
"_smList",
".",
"length",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"sz",
";",
"i",
"++",
")",
"{",
"var",
"subMo... | MPI method available on all modules in order to retrieve a sub-module data controller
@param {Object} dataToFind data object which may correspond to the root of a sub-module data controller
@return {Object} the sub-module data controller public interface whose root data model is dataToFind, or
this.$publicInterface() i... | [
"MPI",
"method",
"available",
"on",
"all",
"modules",
"in",
"order",
"to",
"retrieve",
"a",
"sub",
"-",
"module",
"data",
"controller"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L405-L416 | |
27,250 | ariatemplates/ariatemplates | src/aria/templates/ModuleCtrl.js | function (session) {
this._session = session;
if (this._smList) {
var sz = this._smList.length;
for (var i = 0; i < sz; i++) {
var subModule = this._smList[i];
if (subModule) {
subModule.setSession(se... | javascript | function (session) {
this._session = session;
if (this._smList) {
var sz = this._smList.length;
for (var i = 0; i < sz; i++) {
var subModule = this._smList[i];
if (subModule) {
subModule.setSession(se... | [
"function",
"(",
"session",
")",
"{",
"this",
".",
"_session",
"=",
"session",
";",
"if",
"(",
"this",
".",
"_smList",
")",
"{",
"var",
"sz",
"=",
"this",
".",
"_smList",
".",
"length",
";",
"for",
"(",
"var",
"i",
"=",
"0",
";",
"i",
"<",
"sz"... | Set this module and submodules session
@param {Object} session object containing paramName and id, the session id | [
"Set",
"this",
"module",
"and",
"submodules",
"session"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/ModuleCtrl.js#L455-L466 | |
27,251 | ariatemplates/ariatemplates | src/aria/templates/DomEventWrapper.js | function (domEvt) {
var DomWrapper = ariaTemplatesDomElementWrapper;
this.$DomEvent.constructor.call(this, domEvt);
/**
* Wrapper on the HTML element on which the event happened.
* @type aria.templates.DomElementWrapper
*/
this.target = (this.target ? new DomW... | javascript | function (domEvt) {
var DomWrapper = ariaTemplatesDomElementWrapper;
this.$DomEvent.constructor.call(this, domEvt);
/**
* Wrapper on the HTML element on which the event happened.
* @type aria.templates.DomElementWrapper
*/
this.target = (this.target ? new DomW... | [
"function",
"(",
"domEvt",
")",
"{",
"var",
"DomWrapper",
"=",
"ariaTemplatesDomElementWrapper",
";",
"this",
".",
"$DomEvent",
".",
"constructor",
".",
"call",
"(",
"this",
",",
"domEvt",
")",
";",
"/**\n * Wrapper on the HTML element on which the event happene... | Build a DomEventWrapper object.
@param {Object} domEvt DOM event object (passed directly) | [
"Build",
"a",
"DomEventWrapper",
"object",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/templates/DomEventWrapper.js#L33-L52 | |
27,252 | ariatemplates/ariatemplates | src/aria/storage/EventBus.js | function (location, key, value, old, nspace) {
this.$raiseEvent({
name : "change",
location : location,
namespace : nspace,
key : key,
newValue : value,
oldValue : old,
url : Aria.$window.location... | javascript | function (location, key, value, old, nspace) {
this.$raiseEvent({
name : "change",
location : location,
namespace : nspace,
key : key,
newValue : value,
oldValue : old,
url : Aria.$window.location... | [
"function",
"(",
"location",
",",
"key",
",",
"value",
",",
"old",
",",
"nspace",
")",
"{",
"this",
".",
"$raiseEvent",
"(",
"{",
"name",
":",
"\"change\"",
",",
"location",
":",
"location",
",",
"namespace",
":",
"nspace",
",",
"key",
":",
"key",
",... | Notify that a change event happened on a specific storage location
@param {String} location Storage location where the event is happening, i.e. local/session
@param {String} key Id of the value that is changing, null if clear
@param {String} value Value being set, null if removed
@param {String} old Old value being cha... | [
"Notify",
"that",
"a",
"change",
"event",
"happened",
"on",
"a",
"specific",
"storage",
"location"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/storage/EventBus.js#L45-L55 | |
27,253 | ariatemplates/ariatemplates | src/aria/widgets/Icon.js | function (out) {
// --------------------------------------------------- destructuring
var cfg = this._cfg;
var icon = cfg.icon;
var tooltip = cfg.tooltip;
var tabIndex = cfg.tabIndex;
var waiAria = cfg.waiAria;
var label = cfg.label;
... | javascript | function (out) {
// --------------------------------------------------- destructuring
var cfg = this._cfg;
var icon = cfg.icon;
var tooltip = cfg.tooltip;
var tabIndex = cfg.tabIndex;
var waiAria = cfg.waiAria;
var label = cfg.label;
... | [
"function",
"(",
"out",
")",
"{",
"// --------------------------------------------------- destructuring",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
";",
"var",
"icon",
"=",
"cfg",
".",
"icon",
";",
"var",
"tooltip",
"=",
"cfg",
".",
"tooltip",
";",
"var",
"tabIn... | Override widget _widgetMarkup method.
@protected
@override
@param {aria.templates.MarkupWriter} out the html output writer | [
"Override",
"widget",
"_widgetMarkup",
"method",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/Icon.js#L79-L171 | |
27,254 | ariatemplates/ariatemplates | src/aria/widgets/Icon.js | function (newIcon) {
// check if initialization was successful
if (!this._iconInfo) {
return;
}
var iconInfo = this._getIconInfo(newIcon);
// check
if (iconInfo) {
var domElt = this.getDom();
domElt... | javascript | function (newIcon) {
// check if initialization was successful
if (!this._iconInfo) {
return;
}
var iconInfo = this._getIconInfo(newIcon);
// check
if (iconInfo) {
var domElt = this.getDom();
domElt... | [
"function",
"(",
"newIcon",
")",
"{",
"// check if initialization was successful",
"if",
"(",
"!",
"this",
".",
"_iconInfo",
")",
"{",
"return",
";",
"}",
"var",
"iconInfo",
"=",
"this",
".",
"_getIconInfo",
"(",
"newIcon",
")",
";",
"// check",
"if",
"(",
... | Change the style to display a different icon.
@param {String} newIcon | [
"Change",
"the",
"style",
"to",
"display",
"a",
"different",
"icon",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/Icon.js#L182-L198 | |
27,255 | ariatemplates/ariatemplates | src/aria/widgets/Icon.js | function (icon) {
var iconParts = icon.split(":");
if (iconParts.length !== 2) {
this.$logError(this.ICON_BADLY_FORMATTED, [icon]);
return null;
} else {
var iconInfo = aria.widgets.AriaSkinInterface.getIcon(iconParts[0], iconParts[1]);... | javascript | function (icon) {
var iconParts = icon.split(":");
if (iconParts.length !== 2) {
this.$logError(this.ICON_BADLY_FORMATTED, [icon]);
return null;
} else {
var iconInfo = aria.widgets.AriaSkinInterface.getIcon(iconParts[0], iconParts[1]);... | [
"function",
"(",
"icon",
")",
"{",
"var",
"iconParts",
"=",
"icon",
".",
"split",
"(",
"\":\"",
")",
";",
"if",
"(",
"iconParts",
".",
"length",
"!==",
"2",
")",
"{",
"this",
".",
"$logError",
"(",
"this",
".",
"ICON_BADLY_FORMATTED",
",",
"[",
"icon... | Gets the icon info
@param {String} icon, something like myLib:myIcon
@protected
@return {Object} | [
"Gets",
"the",
"icon",
"info"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/Icon.js#L214-L227 | |
27,256 | ariatemplates/ariatemplates | src/aria/widgets/Icon.js | function (iconInfo) {
var cfg = this._cfg;
var vAlign = !cfg.verticalAlign ? "" : "vertical-align: " + cfg.verticalAlign;
var margins = "margin: 0 0 0 0 "; // default value
if (cfg.margins != null && cfg.margins.match(/^(\d+|x) (\d+|x) (\d+|x) (\d+|x)$/)) {
... | javascript | function (iconInfo) {
var cfg = this._cfg;
var vAlign = !cfg.verticalAlign ? "" : "vertical-align: " + cfg.verticalAlign;
var margins = "margin: 0 0 0 0 "; // default value
if (cfg.margins != null && cfg.margins.match(/^(\d+|x) (\d+|x) (\d+|x) (\d+|x)$/)) {
... | [
"function",
"(",
"iconInfo",
")",
"{",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
";",
"var",
"vAlign",
"=",
"!",
"cfg",
".",
"verticalAlign",
"?",
"\"\"",
":",
"\"vertical-align: \"",
"+",
"cfg",
".",
"verticalAlign",
";",
"var",
"margins",
"=",
"\"margin:... | Return the icon style for a given icon skin
@param {Object} iconInfo
@protected
@return {String} | [
"Return",
"the",
"icon",
"style",
"for",
"a",
"given",
"icon",
"skin"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/Icon.js#L235-L254 | |
27,257 | ariatemplates/ariatemplates | src/aria/widgets/Icon.js | function (iconInfo) {
var cfg = this._cfg;
var cssClasses = ariaCoreTplClassLoader.addPrintOptions(this._cssClassNames, cfg.printOptions);
if (iconInfo.cssClass) {
cssClasses += " " + iconInfo.cssClass;
}
if (cfg.block) {
cssCla... | javascript | function (iconInfo) {
var cfg = this._cfg;
var cssClasses = ariaCoreTplClassLoader.addPrintOptions(this._cssClassNames, cfg.printOptions);
if (iconInfo.cssClass) {
cssClasses += " " + iconInfo.cssClass;
}
if (cfg.block) {
cssCla... | [
"function",
"(",
"iconInfo",
")",
"{",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
";",
"var",
"cssClasses",
"=",
"ariaCoreTplClassLoader",
".",
"addPrintOptions",
"(",
"this",
".",
"_cssClassNames",
",",
"cfg",
".",
"printOptions",
")",
";",
"if",
"(",
"iconI... | Return the icon classes for a given icon
@param {Object} iconInfo
@protected
@return {String} | [
"Return",
"the",
"icon",
"classes",
"for",
"a",
"given",
"icon"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/Icon.js#L262-L272 | |
27,258 | ariatemplates/ariatemplates | src/aria/widgets/Icon.js | function (domEvent) {
var cfg = this._cfg;
if (cfg) {
var domEvtWrapper;
if (domEvent) {
domEvtWrapper = new aria.templates.DomEventWrapper(domEvent);
}
var returnValue = this.evalCallback(cfg.onclick, domEvtWrap... | javascript | function (domEvent) {
var cfg = this._cfg;
if (cfg) {
var domEvtWrapper;
if (domEvent) {
domEvtWrapper = new aria.templates.DomEventWrapper(domEvent);
}
var returnValue = this.evalCallback(cfg.onclick, domEvtWrap... | [
"function",
"(",
"domEvent",
")",
"{",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
";",
"if",
"(",
"cfg",
")",
"{",
"var",
"domEvtWrapper",
";",
"if",
"(",
"domEvent",
")",
"{",
"domEvtWrapper",
"=",
"new",
"aria",
".",
"templates",
".",
"DomEventWrapper",... | The method called when the markup is clicked
@param {aria.DomEvent} evt Event
@protected | [
"The",
"method",
"called",
"when",
"the",
"markup",
"is",
"clicked"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/Icon.js#L289-L303 | |
27,259 | ariatemplates/ariatemplates | src/aria/utils/css/Effects.js | function (htmlElem, properties, cfg) {
var animId;
cfg = cfg || {};
var elem = this._getHTMLElement(htmlElem), animInfo = {
props : []
};
if (elem == null) {
this.$logWarn(this.INVALID_HTML_ELEMENT);
... | javascript | function (htmlElem, properties, cfg) {
var animId;
cfg = cfg || {};
var elem = this._getHTMLElement(htmlElem), animInfo = {
props : []
};
if (elem == null) {
this.$logWarn(this.INVALID_HTML_ELEMENT);
... | [
"function",
"(",
"htmlElem",
",",
"properties",
",",
"cfg",
")",
"{",
"var",
"animId",
";",
"cfg",
"=",
"cfg",
"||",
"{",
"}",
";",
"var",
"elem",
"=",
"this",
".",
"_getHTMLElement",
"(",
"htmlElem",
")",
",",
"animInfo",
"=",
"{",
"props",
":",
"... | Starts the animation
@param {HTMLElement|String} element to be animated (or its id)
@param {Object} CSS properties
@param {Object} cfg animation configuration
@return {String} animation ID | [
"Starts",
"the",
"animation"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/css/Effects.js#L136-L186 | |
27,260 | ariatemplates/ariatemplates | src/aria/utils/css/Effects.js | function (queueId) {
var id = queueId;
if (queueId == null) {
id = this.DEFAULT_QUEUE_KEY;
}
var queue = this.queues[id];
if (queue && queue.list.length > 0) {
var curAnimInfo = queue.list.shift();
... | javascript | function (queueId) {
var id = queueId;
if (queueId == null) {
id = this.DEFAULT_QUEUE_KEY;
}
var queue = this.queues[id];
if (queue && queue.list.length > 0) {
var curAnimInfo = queue.list.shift();
... | [
"function",
"(",
"queueId",
")",
"{",
"var",
"id",
"=",
"queueId",
";",
"if",
"(",
"queueId",
"==",
"null",
")",
"{",
"id",
"=",
"this",
".",
"DEFAULT_QUEUE_KEY",
";",
"}",
"var",
"queue",
"=",
"this",
".",
"queues",
"[",
"id",
"]",
";",
"if",
"(... | Stops the execution of a queue and delete all its animations
@param {String} queue identifier
@return {Boolean} true if the related queue exists and is not empty, otherwise false | [
"Stops",
"the",
"execution",
"of",
"a",
"queue",
"and",
"delete",
"all",
"its",
"animations"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/css/Effects.js#L215-L232 | |
27,261 | ariatemplates/ariatemplates | src/aria/utils/css/Effects.js | function (idQueue) {
var id = idQueue;
if (idQueue == null) {
id = this.DEFAULT_QUEUE_KEY;
}
var queue = this.queues[id];
if (queue && queue.list.length > 0 && !queue.list[0].isRunning) {
// if first ... | javascript | function (idQueue) {
var id = idQueue;
if (idQueue == null) {
id = this.DEFAULT_QUEUE_KEY;
}
var queue = this.queues[id];
if (queue && queue.list.length > 0 && !queue.list[0].isRunning) {
// if first ... | [
"function",
"(",
"idQueue",
")",
"{",
"var",
"id",
"=",
"idQueue",
";",
"if",
"(",
"idQueue",
"==",
"null",
")",
"{",
"id",
"=",
"this",
".",
"DEFAULT_QUEUE_KEY",
";",
"}",
"var",
"queue",
"=",
"this",
".",
"queues",
"[",
"id",
"]",
";",
"if",
"(... | Resumes a paused queue
@param {String} queue identifier
@return {Boolean} true if the related queue exists and is not empty, otherwise false | [
"Resumes",
"a",
"paused",
"queue"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/css/Effects.js#L296-L312 | |
27,262 | ariatemplates/ariatemplates | src/aria/utils/css/Units.js | function (valueWithUnit, elem, property) {
var unit = this.getUnit(valueWithUnit, property);
var value = parseFloat(valueWithUnit, 10);
return this.__convertToPixels[unit].call(this, value, elem, property);
} | javascript | function (valueWithUnit, elem, property) {
var unit = this.getUnit(valueWithUnit, property);
var value = parseFloat(valueWithUnit, 10);
return this.__convertToPixels[unit].call(this, value, elem, property);
} | [
"function",
"(",
"valueWithUnit",
",",
"elem",
",",
"property",
")",
"{",
"var",
"unit",
"=",
"this",
".",
"getUnit",
"(",
"valueWithUnit",
",",
"property",
")",
";",
"var",
"value",
"=",
"parseFloat",
"(",
"valueWithUnit",
",",
"10",
")",
";",
"return",... | Converts the value of a given CSS property of a given HTML element from any CSS units into pixels
@param {String} valueWithUnit valid CSS value with unit e.g. "12pt", "1em", "10px"
@param {HTMLElement} elem Needed if <code>valueWithUnit</code> is in "em" or "%", can be null
otherwise.
@param {String} property camelCase... | [
"Converts",
"the",
"value",
"of",
"a",
"given",
"CSS",
"property",
"of",
"a",
"given",
"HTML",
"element",
"from",
"any",
"CSS",
"units",
"into",
"pixels"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/css/Units.js#L194-L198 | |
27,263 | ariatemplates/ariatemplates | src/aria/utils/css/Units.js | function (newUnit, valueInPixels, elem, property) {
return this.__convertFromPixels[newUnit].call(this, valueInPixels, elem, property);
} | javascript | function (newUnit, valueInPixels, elem, property) {
return this.__convertFromPixels[newUnit].call(this, valueInPixels, elem, property);
} | [
"function",
"(",
"newUnit",
",",
"valueInPixels",
",",
"elem",
",",
"property",
")",
"{",
"return",
"this",
".",
"__convertFromPixels",
"[",
"newUnit",
"]",
".",
"call",
"(",
"this",
",",
"valueInPixels",
",",
"elem",
",",
"property",
")",
";",
"}"
] | Converts the value of a given CSS property of a given HTML element from pixels into chosen CSS unit.
@param {String} newUnit e.g. "pt", "em"
@param {Number} valueInPixels
@param {HTMLElement} elem Needed if <code>newUnit</code> is in "em" or "%", can be null otherwise.
@param {String} property camelCased CSS property n... | [
"Converts",
"the",
"value",
"of",
"a",
"given",
"CSS",
"property",
"of",
"a",
"given",
"HTML",
"element",
"from",
"pixels",
"into",
"chosen",
"CSS",
"unit",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/css/Units.js#L208-L210 | |
27,264 | ariatemplates/ariatemplates | src/aria/utils/css/Units.js | function (element, property) {
if (this.isIE8orLess) {
return element.currentStyle[property] || element.style[property];
} else {
return Aria.$window.getComputedStyle(element, "")[property] || element.style[property];
}
... | javascript | function (element, property) {
if (this.isIE8orLess) {
return element.currentStyle[property] || element.style[property];
} else {
return Aria.$window.getComputedStyle(element, "")[property] || element.style[property];
}
... | [
"function",
"(",
"element",
",",
"property",
")",
"{",
"if",
"(",
"this",
".",
"isIE8orLess",
")",
"{",
"return",
"element",
".",
"currentStyle",
"[",
"property",
"]",
"||",
"element",
".",
"style",
"[",
"property",
"]",
";",
"}",
"else",
"{",
"return"... | Function created to not have circular dependency on aria.utils.Dom. To be used to retrieve the style for
properties which do not need any special treatment. | [
"Function",
"created",
"to",
"not",
"have",
"circular",
"dependency",
"on",
"aria",
".",
"utils",
".",
"Dom",
".",
"To",
"be",
"used",
"to",
"retrieve",
"the",
"style",
"for",
"properties",
"which",
"do",
"not",
"need",
"any",
"special",
"treatment",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/css/Units.js#L323-L329 | |
27,265 | ariatemplates/ariatemplates | src/aria/embed/Placeholder.js | function (out) {
var typeUtil = ariaUtilsType, placeholderManager = ariaEmbedPlaceholderManager;
var placeholderPath = this._placeholderPath;
var contents = placeholderManager.getContent(placeholderPath);
for (var i = 0, ii = contents.length; i < ii; i++) {
... | javascript | function (out) {
var typeUtil = ariaUtilsType, placeholderManager = ariaEmbedPlaceholderManager;
var placeholderPath = this._placeholderPath;
var contents = placeholderManager.getContent(placeholderPath);
for (var i = 0, ii = contents.length; i < ii; i++) {
... | [
"function",
"(",
"out",
")",
"{",
"var",
"typeUtil",
"=",
"ariaUtilsType",
",",
"placeholderManager",
"=",
"ariaEmbedPlaceholderManager",
";",
"var",
"placeholderPath",
"=",
"this",
".",
"_placeholderPath",
";",
"var",
"contents",
"=",
"placeholderManager",
".",
"... | Write the content of the placeholder
@param {aria.templates.MarkupWriter} out
@private | [
"Write",
"the",
"content",
"of",
"the",
"placeholder"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/embed/Placeholder.js#L114-L130 | |
27,266 | ariatemplates/ariatemplates | src/aria/embed/Placeholder.js | function (event) {
var paths = event.placeholderPaths;
if (ariaUtilsArray.contains(paths, this._placeholderPath)) {
var newSection = this._context.getRefreshedSection({
section : this._sectionId,
writerCallback : {
f... | javascript | function (event) {
var paths = event.placeholderPaths;
if (ariaUtilsArray.contains(paths, this._placeholderPath)) {
var newSection = this._context.getRefreshedSection({
section : this._sectionId,
writerCallback : {
f... | [
"function",
"(",
"event",
")",
"{",
"var",
"paths",
"=",
"event",
".",
"placeholderPaths",
";",
"if",
"(",
"ariaUtilsArray",
".",
"contains",
"(",
"paths",
",",
"this",
".",
"_placeholderPath",
")",
")",
"{",
"var",
"newSection",
"=",
"this",
".",
"_cont... | Method that is called when the Placeholder Manager raises the contentChange event
@param {Object} event Contains the placeholderpaths whose content has changed
@private | [
"Method",
"that",
"is",
"called",
"when",
"the",
"Placeholder",
"Manager",
"raises",
"the",
"contentChange",
"event"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/embed/Placeholder.js#L137-L149 | |
27,267 | ariatemplates/ariatemplates | src/aria/embed/Placeholder.js | function () {
var placeholderPath = "";
var currentContext = this._context;
while (currentContext) {
if (currentContext.placeholderPath) {
placeholderPath = currentContext.placeholderPath + ".";
break;
}
... | javascript | function () {
var placeholderPath = "";
var currentContext = this._context;
while (currentContext) {
if (currentContext.placeholderPath) {
placeholderPath = currentContext.placeholderPath + ".";
break;
}
... | [
"function",
"(",
")",
"{",
"var",
"placeholderPath",
"=",
"\"\"",
";",
"var",
"currentContext",
"=",
"this",
".",
"_context",
";",
"while",
"(",
"currentContext",
")",
"{",
"if",
"(",
"currentContext",
".",
"placeholderPath",
")",
"{",
"placeholderPath",
"="... | Computes the path of the placeholder by combining context information with the placeholder name
@return {String} path of the placeholder
@private | [
"Computes",
"the",
"path",
"of",
"the",
"placeholder",
"by",
"combining",
"context",
"information",
"with",
"the",
"placeholder",
"name"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/embed/Placeholder.js#L156-L167 | |
27,268 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (search) {
findFilterRes = null;
findFilterSearch = search;
if (typeUtils.isString(search)) {
return findByClasspath;
} else if (typeUtils.isInstanceOf(search, "aria.core.IOFilter")) {
return findByInstance;
} else if (typeUtils.isObject(search)) ... | javascript | function (search) {
findFilterRes = null;
findFilterSearch = search;
if (typeUtils.isString(search)) {
return findByClasspath;
} else if (typeUtils.isInstanceOf(search, "aria.core.IOFilter")) {
return findByInstance;
} else if (typeUtils.isObject(search)) ... | [
"function",
"(",
"search",
")",
"{",
"findFilterRes",
"=",
"null",
";",
"findFilterSearch",
"=",
"search",
";",
"if",
"(",
"typeUtils",
".",
"isString",
"(",
"search",
")",
")",
"{",
"return",
"findByClasspath",
";",
"}",
"else",
"if",
"(",
"typeUtils",
... | Initialize the search and return one of the findByClasspath, findByInstance or findByClasspathAndInitArgs
functions depending on the type of the search parameter.
@param {MultiTypes} search Filter to be found. Can be of any type accepted for the parameter of isFilterPresent.
@return {Function} either null (if the searc... | [
"Initialize",
"the",
"search",
"and",
"return",
"one",
"of",
"the",
"findByClasspath",
"findByInstance",
"or",
"findByClasspathAndInitArgs",
"functions",
"depending",
"on",
"the",
"type",
"of",
"the",
"search",
"parameter",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L89-L101 | |
27,269 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (newFilter) {
var filterInfo = {};
if (typeUtils.isString(newFilter)) {
filterInfo.filterClasspath = newFilter;
filterInfo.initArgs = null;
this._filtersToBeLoaded++;
} else if (typeUtils.isInstanceOf(ne... | javascript | function (newFilter) {
var filterInfo = {};
if (typeUtils.isString(newFilter)) {
filterInfo.filterClasspath = newFilter;
filterInfo.initArgs = null;
this._filtersToBeLoaded++;
} else if (typeUtils.isInstanceOf(ne... | [
"function",
"(",
"newFilter",
")",
"{",
"var",
"filterInfo",
"=",
"{",
"}",
";",
"if",
"(",
"typeUtils",
".",
"isString",
"(",
"newFilter",
")",
")",
"{",
"filterInfo",
".",
"filterClasspath",
"=",
"newFilter",
";",
"filterInfo",
".",
"initArgs",
"=",
"n... | Add an IO filter.
@param {MultiTypes} newFilter It can be one of the following possibilities:
<ul>
<li>An instance of a filter class.</li>
<li>An object containing two properties: classpath and initArgs. In this case, the filter class with the
given classpath will be instantiated when needed. Its constructor will be ca... | [
"Add",
"an",
"IO",
"filter",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L169-L195 | |
27,270 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (filterDef) {
var filters = this._filters;
// stop here if there are no filters
if (!filters) {
return false;
}
var isWrongFilter = getFindFilterFunction(filterDef);
if (isWrongFilter == null) {
... | javascript | function (filterDef) {
var filters = this._filters;
// stop here if there are no filters
if (!filters) {
return false;
}
var isWrongFilter = getFindFilterFunction(filterDef);
if (isWrongFilter == null) {
... | [
"function",
"(",
"filterDef",
")",
"{",
"var",
"filters",
"=",
"this",
".",
"_filters",
";",
"// stop here if there are no filters",
"if",
"(",
"!",
"filters",
")",
"{",
"return",
"false",
";",
"}",
"var",
"isWrongFilter",
"=",
"getFindFilterFunction",
"(",
"f... | Find if a filter is present in the list of filters.
@param {MultiTypes} filter It can be one of the following possibilities:
<ul>
<li>An instance of a filter class.</li>
<li>An object containing two properties: classpath and initArgs.</li>
<li>The classpath of a filter class.</li>
</ul>
@return {Boolean} return true if... | [
"Find",
"if",
"a",
"filter",
"is",
"present",
"in",
"the",
"list",
"of",
"filters",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L208-L228 | |
27,271 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (oldFilter) {
var filters = this._filters;
// stop here if there are no filters
if (!filters) {
return false;
}
var selectionCallback = getFindFilterFunction(oldFilter);
if (selectionCallback == ... | javascript | function (oldFilter) {
var filters = this._filters;
// stop here if there are no filters
if (!filters) {
return false;
}
var selectionCallback = getFindFilterFunction(oldFilter);
if (selectionCallback == ... | [
"function",
"(",
"oldFilter",
")",
"{",
"var",
"filters",
"=",
"this",
".",
"_filters",
";",
"// stop here if there are no filters",
"if",
"(",
"!",
"filters",
")",
"{",
"return",
"false",
";",
"}",
"var",
"selectionCallback",
"=",
"getFindFilterFunction",
"(",
... | Remove a filter added with addFilter, and dispose it.
@param {MultiTypes} oldFilter It can be one of the following possibilities:
<ul>
<li>An instance of a filter class.</li>
<li>An object containing two properties: classpath and initArgs.</li>
<li>The classpath of a filter class.</li>
</ul>
@return {Boolean} return tr... | [
"Remove",
"a",
"filter",
"added",
"with",
"addFilter",
"and",
"dispose",
"it",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L241-L275 | |
27,272 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (isResponse, request, cb) {
if (!this._filters) {
this.$callback(cb);
return;
}
var args = {
isResponse : isResponse,
request : request,
cb : cb,
... | javascript | function (isResponse, request, cb) {
if (!this._filters) {
this.$callback(cb);
return;
}
var args = {
isResponse : isResponse,
request : request,
cb : cb,
... | [
"function",
"(",
"isResponse",
",",
"request",
",",
"cb",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_filters",
")",
"{",
"this",
".",
"$callback",
"(",
"cb",
")",
";",
"return",
";",
"}",
"var",
"args",
"=",
"{",
"isResponse",
":",
"isResponse",
",",... | If there are filters to be loaded, load them, then call all the filters.
@param {Boolean} isResponse
@param {aria.core.CfgBeans:IOAsyncRequestCfg} req request object
@param {aria.core.CfgBeans:Callback} cb callback
@private | [
"If",
"there",
"are",
"filters",
"to",
"be",
"loaded",
"load",
"them",
"then",
"call",
"all",
"the",
"filters",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L304-L328 | |
27,273 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (unused, args) {
var filters = args.filters;
var request = args.request;
var curFilter;
// initialize the delay
request.delay = 0;
if (args.isResponse) {
for (var i = args.nbFilters - 1; i >= 0; ... | javascript | function (unused, args) {
var filters = args.filters;
var request = args.request;
var curFilter;
// initialize the delay
request.delay = 0;
if (args.isResponse) {
for (var i = args.nbFilters - 1; i >= 0; ... | [
"function",
"(",
"unused",
",",
"args",
")",
"{",
"var",
"filters",
"=",
"args",
".",
"filters",
";",
"var",
"request",
"=",
"args",
".",
"request",
";",
"var",
"curFilter",
";",
"// initialize the delay",
"request",
".",
"delay",
"=",
"0",
";",
"if",
... | Effectively call filters in the right order.
@param {MultiTypes} unused
@param {Object} args object containing the following properties: isResponse, request, cb, filters and
nbFilters
@private | [
"Effectively",
"call",
"filters",
"in",
"the",
"right",
"order",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L337-L369 | |
27,274 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (cb) {
var filters = this._filters;
var curFilter;
var classpathsToLoad = [];
for (var i = 0, l = filters.length; i < l; i++) {
curFilter = filters[i];
if (curFilter.obj == null) {
cl... | javascript | function (cb) {
var filters = this._filters;
var curFilter;
var classpathsToLoad = [];
for (var i = 0, l = filters.length; i < l; i++) {
curFilter = filters[i];
if (curFilter.obj == null) {
cl... | [
"function",
"(",
"cb",
")",
"{",
"var",
"filters",
"=",
"this",
".",
"_filters",
";",
"var",
"curFilter",
";",
"var",
"classpathsToLoad",
"=",
"[",
"]",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",
"filters",
".",
"length",
";",
"i",
"<"... | Load the filters which were added but not yet loaded.
@param {aria.core.CfgBeans:Callback} cb callback to be called when the load of filters is finished
@private | [
"Load",
"the",
"filters",
"which",
"were",
"added",
"but",
"not",
"yet",
"loaded",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L388-L410 | |
27,275 | ariatemplates/ariatemplates | src/aria/core/IOFiltersMgr.js | function (args) {
var filters = args.filters;
for (var i = 0, l = args.nbFilters; i < l; i++) {
var curFilter = filters[i];
// not that filterClasspath can be null if the filter was removed in the meantime.
if (curFilter.filterC... | javascript | function (args) {
var filters = args.filters;
for (var i = 0, l = args.nbFilters; i < l; i++) {
var curFilter = filters[i];
// not that filterClasspath can be null if the filter was removed in the meantime.
if (curFilter.filterC... | [
"function",
"(",
"args",
")",
"{",
"var",
"filters",
"=",
"args",
".",
"filters",
";",
"for",
"(",
"var",
"i",
"=",
"0",
",",
"l",
"=",
"args",
".",
"nbFilters",
";",
"i",
"<",
"l",
";",
"i",
"++",
")",
"{",
"var",
"curFilter",
"=",
"filters",
... | Create instances of each filter once they are loaded.
@param {Object} args object containing the following properties: cb, filters, nbFilters
@private | [
"Create",
"instances",
"of",
"each",
"filter",
"once",
"they",
"are",
"loaded",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/IOFiltersMgr.js#L417-L428 | |
27,276 | ariatemplates/ariatemplates | src/aria/widgets/container/Container.js | function (propagate) {
// PROFILING // this.$logTimestamp("updateContainerSize");
var cfg = this._cfg, domElt = this.getDom();
if (!domElt) {
return;
}
var widthConf = this._getWidthConf();
var heightConf = this._getHeightConf();
... | javascript | function (propagate) {
// PROFILING // this.$logTimestamp("updateContainerSize");
var cfg = this._cfg, domElt = this.getDom();
if (!domElt) {
return;
}
var widthConf = this._getWidthConf();
var heightConf = this._getHeightConf();
... | [
"function",
"(",
"propagate",
")",
"{",
"// PROFILING // this.$logTimestamp(\"updateContainerSize\");",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
",",
"domElt",
"=",
"this",
".",
"getDom",
"(",
")",
";",
"if",
"(",
"!",
"domElt",
")",
"{",
"return",
";",
"}",
... | Update the size of the container according to its width, height, minWidth, maxWidth, minHeight, maxHeight
properties.
@param {Boolean} propagate propagate change to parent | [
"Update",
"the",
"size",
"of",
"the",
"container",
"according",
"to",
"its",
"width",
"height",
"minWidth",
"maxWidth",
"minHeight",
"maxHeight",
"properties",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/container/Container.js#L113-L151 | |
27,277 | ariatemplates/ariatemplates | src/aria/widgets/form/Input.js | function () {
var elt = this._getInputMarkupDomElt();
if (elt) {
this._initInputMarkup(elt);
}
var lbl = this._getInputLabelMarkupDomElt();
if (lbl) {
this._initLabelMarkup(lbl);
}
} | javascript | function () {
var elt = this._getInputMarkupDomElt();
if (elt) {
this._initInputMarkup(elt);
}
var lbl = this._getInputLabelMarkupDomElt();
if (lbl) {
this._initLabelMarkup(lbl);
}
} | [
"function",
"(",
")",
"{",
"var",
"elt",
"=",
"this",
".",
"_getInputMarkupDomElt",
"(",
")",
";",
"if",
"(",
"elt",
")",
"{",
"this",
".",
"_initInputMarkup",
"(",
"elt",
")",
";",
"}",
"var",
"lbl",
"=",
"this",
".",
"_getInputLabelMarkupDomElt",
"("... | Override the Widget _init method
@protected | [
"Override",
"the",
"Widget",
"_init",
"method"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/Input.js#L145-L154 | |
27,278 | ariatemplates/ariatemplates | src/aria/widgets/form/Input.js | function () {
var markup = [];
if (this._cfg.waiAria) {
var labelledBy = this._cfg.waiLabelledBy;
if (this._cfg.waiLabel) {
markup.push(' aria-label="' + ariaUtilsString.encodeForQuotedHTMLAttribute(this._cfg.waiLabel) + '" ');}
... | javascript | function () {
var markup = [];
if (this._cfg.waiAria) {
var labelledBy = this._cfg.waiLabelledBy;
if (this._cfg.waiLabel) {
markup.push(' aria-label="' + ariaUtilsString.encodeForQuotedHTMLAttribute(this._cfg.waiLabel) + '" ');}
... | [
"function",
"(",
")",
"{",
"var",
"markup",
"=",
"[",
"]",
";",
"if",
"(",
"this",
".",
"_cfg",
".",
"waiAria",
")",
"{",
"var",
"labelledBy",
"=",
"this",
".",
"_cfg",
".",
"waiLabelledBy",
";",
"if",
"(",
"this",
".",
"_cfg",
".",
"waiLabel",
"... | Returns the markup for the aria-label related attributes on a DOM element if accessibility is enabled.
@protected | [
"Returns",
"the",
"markup",
"for",
"the",
"aria",
"-",
"label",
"related",
"attributes",
"on",
"a",
"DOM",
"element",
"if",
"accessibility",
"is",
"enabled",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/Input.js#L167-L184 | |
27,279 | ariatemplates/ariatemplates | src/aria/widgets/form/Input.js | function () {
var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label), idx;
if (showLabel) {
idx = ((cfg.labelPos === "right" && !this._fullWidth) || cfg.labelPos === "bottom") ? 0 : 1;
} else {
idx = 0;
}
var dom = thi... | javascript | function () {
var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label), idx;
if (showLabel) {
idx = ((cfg.labelPos === "right" && !this._fullWidth) || cfg.labelPos === "bottom") ? 0 : 1;
} else {
idx = 0;
}
var dom = thi... | [
"function",
"(",
")",
"{",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
",",
"showLabel",
"=",
"(",
"!",
"cfg",
".",
"hideLabel",
"&&",
"!",
"!",
"cfg",
".",
"label",
")",
",",
"idx",
";",
"if",
"(",
"showLabel",
")",
"{",
"idx",
"=",
"(",
"(",
"c... | Get the DOM elt associated to the Input Markup placeholder
@return {HTMLElement} the dom elt or null if not found
@protected | [
"Get",
"the",
"DOM",
"elt",
"associated",
"to",
"the",
"Input",
"Markup",
"placeholder"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/Input.js#L260-L272 | |
27,280 | ariatemplates/ariatemplates | src/aria/widgets/form/Input.js | function () {
var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label);
if (showLabel) {
var dom = this.getDom();
if (this._isIE7OrLess) {
dom = dom ? dom.firstChild : null;
}
var elems = ariaUtilsDom.get... | javascript | function () {
var cfg = this._cfg, showLabel = (!cfg.hideLabel && !!cfg.label);
if (showLabel) {
var dom = this.getDom();
if (this._isIE7OrLess) {
dom = dom ? dom.firstChild : null;
}
var elems = ariaUtilsDom.get... | [
"function",
"(",
")",
"{",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
",",
"showLabel",
"=",
"(",
"!",
"cfg",
".",
"hideLabel",
"&&",
"!",
"!",
"cfg",
".",
"label",
")",
";",
"if",
"(",
"showLabel",
")",
"{",
"var",
"dom",
"=",
"this",
".",
"getDo... | Get the DOM elt associated to the Label Markup HTML element
@return {HTMLElement} Label element
@protected | [
"Get",
"the",
"DOM",
"elt",
"associated",
"to",
"the",
"Label",
"Markup",
"HTML",
"element"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/Input.js#L278-L297 | |
27,281 | ariatemplates/ariatemplates | src/aria/widgets/form/Input.js | function () {
var label = this.getLabel();
if (label) {
label.className = 'x' + this._skinnableClass + '_' + this._cfg.sclass + '_' + this._state + '_label'
+ this._getFloatingLabelClass();
}
} | javascript | function () {
var label = this.getLabel();
if (label) {
label.className = 'x' + this._skinnableClass + '_' + this._cfg.sclass + '_' + this._state + '_label'
+ this._getFloatingLabelClass();
}
} | [
"function",
"(",
")",
"{",
"var",
"label",
"=",
"this",
".",
"getLabel",
"(",
")",
";",
"if",
"(",
"label",
")",
"{",
"label",
".",
"className",
"=",
"'x'",
"+",
"this",
".",
"_skinnableClass",
"+",
"'_'",
"+",
"this",
".",
"_cfg",
".",
"sclass",
... | Updates the CSS class of the label to match the current state of the widget. | [
"Updates",
"the",
"CSS",
"class",
"of",
"the",
"label",
"to",
"match",
"the",
"current",
"state",
"of",
"the",
"widget",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/Input.js#L382-L388 | |
27,282 | ariatemplates/ariatemplates | src/aria/widgets/form/Input.js | function (cfg) {
var metaDataObject, localMetaDataObject, localMetaParam;
var toBind = this.automaticallyBindedProperties;
var value = null;
if (cfg) {
if (cfg.bind) {
value = cfg.bind.value; // get any binding on the value
... | javascript | function (cfg) {
var metaDataObject, localMetaDataObject, localMetaParam;
var toBind = this.automaticallyBindedProperties;
var value = null;
if (cfg) {
if (cfg.bind) {
value = cfg.bind.value; // get any binding on the value
... | [
"function",
"(",
"cfg",
")",
"{",
"var",
"metaDataObject",
",",
"localMetaDataObject",
",",
"localMetaParam",
";",
"var",
"toBind",
"=",
"this",
".",
"automaticallyBindedProperties",
";",
"var",
"value",
"=",
"null",
";",
"if",
"(",
"cfg",
")",
"{",
"if",
... | Apply the automatic bindings
@param {aria.widgets.CfgBeans:InputCfg|aria.widgets.CfgBeans:ActionWidgetCfg} cfg
@protected | [
"Apply",
"the",
"automatic",
"bindings"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/Input.js#L511-L580 | |
27,283 | ariatemplates/ariatemplates | src/aria/utils/VisualFocus.js | function (element) {
if (this.__focusedElement) {
this.removeVisualFocus();
}
this.__focusedElement = element;
if (this.__style) {
var document = Aria.$window.document;
// for anchors and buttons it looks better to have the... | javascript | function (element) {
if (this.__focusedElement) {
this.removeVisualFocus();
}
this.__focusedElement = element;
if (this.__style) {
var document = Aria.$window.document;
// for anchors and buttons it looks better to have the... | [
"function",
"(",
"element",
")",
"{",
"if",
"(",
"this",
".",
"__focusedElement",
")",
"{",
"this",
".",
"removeVisualFocus",
"(",
")",
";",
"}",
"this",
".",
"__focusedElement",
"=",
"element",
";",
"if",
"(",
"this",
".",
"__style",
")",
"{",
"var",
... | Add visual focus. It sets the outline CSS property of the appropriate HTML Element to the value specified in
the appOutLineStyle of the application configuration
@param {HTMLElement} Element on focus | [
"Add",
"visual",
"focus",
".",
"It",
"sets",
"the",
"outline",
"CSS",
"property",
"of",
"the",
"appropriate",
"HTML",
"Element",
"to",
"the",
"value",
"specified",
"in",
"the",
"appOutLineStyle",
"of",
"the",
"application",
"configuration"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/VisualFocus.js#L119-L151 | |
27,284 | ariatemplates/ariatemplates | src/aria/utils/VisualFocus.js | function () {
if (this.__style && this.__outlinedElement) {
// restore the previous outline
if (ariaCoreBrowser.isIE8) {
this.__outlinedElement.style.cssText = this.__previousStyle;
} else {
this.__outlinedElement.style.... | javascript | function () {
if (this.__style && this.__outlinedElement) {
// restore the previous outline
if (ariaCoreBrowser.isIE8) {
this.__outlinedElement.style.cssText = this.__previousStyle;
} else {
this.__outlinedElement.style.... | [
"function",
"(",
")",
"{",
"if",
"(",
"this",
".",
"__style",
"&&",
"this",
".",
"__outlinedElement",
")",
"{",
"// restore the previous outline",
"if",
"(",
"ariaCoreBrowser",
".",
"isIE8",
")",
"{",
"this",
".",
"__outlinedElement",
".",
"style",
".",
"css... | Restore the outline to its previous value | [
"Restore",
"the",
"outline",
"to",
"its",
"previous",
"value"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/VisualFocus.js#L156-L168 | |
27,285 | ariatemplates/ariatemplates | src/aria/utils/VisualFocus.js | function (newStyle) {
var styleToApply = (newStyle) ? newStyle : ariaUtilsEnvironmentVisualFocus.getAppOutlineStyle();
this.__style = !ariaCoreBrowser.isIE7 ? styleToApply : null;
this.__updateVisualFocus();
} | javascript | function (newStyle) {
var styleToApply = (newStyle) ? newStyle : ariaUtilsEnvironmentVisualFocus.getAppOutlineStyle();
this.__style = !ariaCoreBrowser.isIE7 ? styleToApply : null;
this.__updateVisualFocus();
} | [
"function",
"(",
"newStyle",
")",
"{",
"var",
"styleToApply",
"=",
"(",
"newStyle",
")",
"?",
"newStyle",
":",
"ariaUtilsEnvironmentVisualFocus",
".",
"getAppOutlineStyle",
"(",
")",
";",
"this",
".",
"__style",
"=",
"!",
"ariaCoreBrowser",
".",
"isIE7",
"?",
... | Changes the outline style. If the newStyle argument is not provided, the appOutlineStyle of the application
environment is chosen. This method is called after the "environmentChanged" event raised by
aria.core.environment.Environment
@param {String} newStyle [optional] outline style that you want to apply | [
"Changes",
"the",
"outline",
"style",
".",
"If",
"the",
"newStyle",
"argument",
"is",
"not",
"provided",
"the",
"appOutlineStyle",
"of",
"the",
"application",
"environment",
"is",
"chosen",
".",
"This",
"method",
"is",
"called",
"after",
"the",
"environmentChang... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/VisualFocus.js#L176-L180 | |
27,286 | ariatemplates/ariatemplates | src/aria/tools/contextual/ContextualMenu.js | function (value) {
var document = Aria.$window.document;
if (value) {
// add event listeners if AriaSkin is available
// (required as it uses widgets)
// TODO: investigate to plug with event delegation
// whe... | javascript | function (value) {
var document = Aria.$window.document;
if (value) {
// add event listeners if AriaSkin is available
// (required as it uses widgets)
// TODO: investigate to plug with event delegation
// whe... | [
"function",
"(",
"value",
")",
"{",
"var",
"document",
"=",
"Aria",
".",
"$window",
".",
"document",
";",
"if",
"(",
"value",
")",
"{",
"// add event listeners if AriaSkin is available",
"// (required as it uses widgets)",
"// TODO: investigate to plug with event delegation... | Enables or disables the contextual menu. Shoule not be called directly. Instead, the value should be set
in the app environment.
@param {Boolean} value if true, it enables the contextual menu, if false, it disables it
@protected | [
"Enables",
"or",
"disables",
"the",
"contextual",
"menu",
".",
"Shoule",
"not",
"be",
"called",
"directly",
".",
"Instead",
"the",
"value",
"should",
"be",
"set",
"in",
"the",
"app",
"environment",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/tools/contextual/ContextualMenu.js#L144-L180 | |
27,287 | ariatemplates/ariatemplates | src/aria/tools/contextual/ContextualMenu.js | function (event) {
if (!this._enabled) {
return;
}
event = new ariaDomEvent(event);
if (ariaCoreBrowser.isSafari) {
event.ctrlKey = this._safariCtrlKey;
}
// ctrl right click only
... | javascript | function (event) {
if (!this._enabled) {
return;
}
event = new ariaDomEvent(event);
if (ariaCoreBrowser.isSafari) {
event.ctrlKey = this._safariCtrlKey;
}
// ctrl right click only
... | [
"function",
"(",
"event",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_enabled",
")",
"{",
"return",
";",
"}",
"event",
"=",
"new",
"ariaDomEvent",
"(",
"event",
")",
";",
"if",
"(",
"ariaCoreBrowser",
".",
"isSafari",
")",
"{",
"event",
".",
"ctrlKey",
... | Handler for context menu call on document.body
@protected
@param {Event} event | [
"Handler",
"for",
"context",
"menu",
"call",
"on",
"document",
".",
"body"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/tools/contextual/ContextualMenu.js#L197-L217 | |
27,288 | ariatemplates/ariatemplates | src/aria/tools/contextual/ContextualMenu.js | function (target, position) {
// look for existing Contextual menu
if (this._popup) {
aria.tools.contextual.ContextualMenu.close();
}
// first check the position else get positon from dom
// element
var d... | javascript | function (target, position) {
// look for existing Contextual menu
if (this._popup) {
aria.tools.contextual.ContextualMenu.close();
}
// first check the position else get positon from dom
// element
var d... | [
"function",
"(",
"target",
",",
"position",
")",
"{",
"// look for existing Contextual menu",
"if",
"(",
"this",
".",
"_popup",
")",
"{",
"aria",
".",
"tools",
".",
"contextual",
".",
"ContextualMenu",
".",
"close",
"(",
")",
";",
"}",
"// first check the posi... | To call the Contexual Menu
@public
@param {aria.templates.TemplateCtxt} templateCtxt or DOM element
@param {Object} obj the object to set left and top position of the contextual menu | [
"To",
"call",
"the",
"Contexual",
"Menu"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/tools/contextual/ContextualMenu.js#L224-L255 | |
27,289 | ariatemplates/ariatemplates | src/aria/tools/contextual/ContextualMenu.js | function (target, x, y) {
// check for template context
var previousTarget;
// look for the first template
var body = Aria.$window.document.body;
while (target && target != body && !target.__template) {
previousTarget = ... | javascript | function (target, x, y) {
// check for template context
var previousTarget;
// look for the first template
var body = Aria.$window.document.body;
while (target && target != body && !target.__template) {
previousTarget = ... | [
"function",
"(",
"target",
",",
"x",
",",
"y",
")",
"{",
"// check for template context",
"var",
"previousTarget",
";",
"// look for the first template",
"var",
"body",
"=",
"Aria",
".",
"$window",
".",
"document",
".",
"body",
";",
"while",
"(",
"target",
"&&... | Internal function used to notify Contextual menu
@param {HTMLElement} elm DOM element
@param {Number} xpos
@param {Number} ypos
@private | [
"Internal",
"function",
"used",
"to",
"notify",
"Contextual",
"menu"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/tools/contextual/ContextualMenu.js#L263-L289 | |
27,290 | ariatemplates/ariatemplates | src/aria/tools/contextual/ContextualMenu.js | function (templateCtxt, xpos, ypos) {
// bridge is open -> inspector will handle this as well
var bridge = aria.tools.ToolsBridge;
if (bridge && bridge.isOpen) {
bridge.$raiseEvent({
name : "forwardEvent",
... | javascript | function (templateCtxt, xpos, ypos) {
// bridge is open -> inspector will handle this as well
var bridge = aria.tools.ToolsBridge;
if (bridge && bridge.isOpen) {
bridge.$raiseEvent({
name : "forwardEvent",
... | [
"function",
"(",
"templateCtxt",
",",
"xpos",
",",
"ypos",
")",
"{",
"// bridge is open -> inspector will handle this as well",
"var",
"bridge",
"=",
"aria",
".",
"tools",
".",
"ToolsBridge",
";",
"if",
"(",
"bridge",
"&&",
"bridge",
".",
"isOpen",
")",
"{",
"... | Handle what to do when a target for inspection if retrieve
@protected
@param {aria.templates.TemplateCtxt} templateCtxt
@param {Number} xpos
@param {Number} ypos | [
"Handle",
"what",
"to",
"do",
"when",
"a",
"target",
"for",
"inspection",
"if",
"retrieve"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/tools/contextual/ContextualMenu.js#L310-L380 | |
27,291 | ariatemplates/ariatemplates | src/aria/tools/contextual/ContextualMenu.js | function () {
if (!aria.tools.ToolsBridge || !aria.tools.ToolsBridge.isOpen) {
Aria.load({
classes : ['aria.tools.ToolsBridge'],
oncomplete : function () {
aria.tools.ToolsBridge.open();
... | javascript | function () {
if (!aria.tools.ToolsBridge || !aria.tools.ToolsBridge.isOpen) {
Aria.load({
classes : ['aria.tools.ToolsBridge'],
oncomplete : function () {
aria.tools.ToolsBridge.open();
... | [
"function",
"(",
")",
"{",
"if",
"(",
"!",
"aria",
".",
"tools",
".",
"ToolsBridge",
"||",
"!",
"aria",
".",
"tools",
".",
"ToolsBridge",
".",
"isOpen",
")",
"{",
"Aria",
".",
"load",
"(",
"{",
"classes",
":",
"[",
"'aria.tools.ToolsBridge'",
"]",
",... | Start the tools module with a template context to inspect | [
"Start",
"the",
"tools",
"module",
"with",
"a",
"template",
"context",
"to",
"inspect"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/tools/contextual/ContextualMenu.js#L395-L405 | |
27,292 | ariatemplates/ariatemplates | src/aria/jsunit/RobotJavaSelenium.js | function (cb) {
if (!this._robot) {
this._robot = Aria.$frameworkWindow.top.SeleniumJavaRobot;
this._robot.getOffset({
fn : this._offsetReceived,
scope : this
});
}
if (cb) {
if (t... | javascript | function (cb) {
if (!this._robot) {
this._robot = Aria.$frameworkWindow.top.SeleniumJavaRobot;
this._robot.getOffset({
fn : this._offsetReceived,
scope : this
});
}
if (cb) {
if (t... | [
"function",
"(",
"cb",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_robot",
")",
"{",
"this",
".",
"_robot",
"=",
"Aria",
".",
"$frameworkWindow",
".",
"top",
".",
"SeleniumJavaRobot",
";",
"this",
".",
"_robot",
".",
"getOffset",
"(",
"{",
"fn",
":",
... | Initialize the robot, if not already done. This must be called before any other method on the robot.
@param {aria.core.CfgBeans:Callback} callback callback to be called when the robot is ready to be used. | [
"Initialize",
"the",
"robot",
"if",
"not",
"already",
"done",
".",
"This",
"must",
"be",
"called",
"before",
"any",
"other",
"method",
"on",
"the",
"robot",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/jsunit/RobotJavaSelenium.js#L79-L96 | |
27,293 | ariatemplates/ariatemplates | src/aria/core/environment/EnvironmentBase.js | function (evt) {
var changedProperties = evt.changedProperties;
var localCfg = this._localDefCfg;
var doUpdate = (changedProperties == null); // always do an update on reset
if (changedProperties) {
// look if the changed keys are part of this local enviro... | javascript | function (evt) {
var changedProperties = evt.changedProperties;
var localCfg = this._localDefCfg;
var doUpdate = (changedProperties == null); // always do an update on reset
if (changedProperties) {
// look if the changed keys are part of this local enviro... | [
"function",
"(",
"evt",
")",
"{",
"var",
"changedProperties",
"=",
"evt",
".",
"changedProperties",
";",
"var",
"localCfg",
"=",
"this",
".",
"_localDefCfg",
";",
"var",
"doUpdate",
"=",
"(",
"changedProperties",
"==",
"null",
")",
";",
"// always do an update... | Listener for the changingEnvironment event from the aria.core.AppEnvironment. It checks if the changes in the
environment are managed by this class and calls _normAndApplyEnv if it is the case.
@param {Object} evt event object | [
"Listener",
"for",
"the",
"changingEnvironment",
"event",
"from",
"the",
"aria",
".",
"core",
".",
"AppEnvironment",
".",
"It",
"checks",
"if",
"the",
"changes",
"in",
"the",
"environment",
"are",
"managed",
"by",
"this",
"class",
"and",
"calls",
"_normAndAppl... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/environment/EnvironmentBase.js#L71-L89 | |
27,294 | ariatemplates/ariatemplates | src/aria/core/environment/EnvironmentBase.js | function (callback) {
var validConfig = ariaCoreJsonValidator.normalize({
json : ariaCoreAppEnvironment.applicationSettings,
beanName : this._cfgPackage
});
if (validConfig) {
this._applyEnvironment(callback);
this.$rais... | javascript | function (callback) {
var validConfig = ariaCoreJsonValidator.normalize({
json : ariaCoreAppEnvironment.applicationSettings,
beanName : this._cfgPackage
});
if (validConfig) {
this._applyEnvironment(callback);
this.$rais... | [
"function",
"(",
"callback",
")",
"{",
"var",
"validConfig",
"=",
"ariaCoreJsonValidator",
".",
"normalize",
"(",
"{",
"json",
":",
"ariaCoreAppEnvironment",
".",
"applicationSettings",
",",
"beanName",
":",
"this",
".",
"_cfgPackage",
"}",
")",
";",
"if",
"("... | Normalize the part of the environment managed by this class, then calls _applyEnvironment to apply it if the
environment is valid. Normalization is immediate. Applying the environment can be asynchronous. The callback
is called either synchronously or asynchronously.
@param {aria.core.CfgBeans:Callback} callback Will b... | [
"Normalize",
"the",
"part",
"of",
"the",
"environment",
"managed",
"by",
"this",
"class",
"then",
"calls",
"_applyEnvironment",
"to",
"apply",
"it",
"if",
"the",
"environment",
"is",
"valid",
".",
"Normalization",
"is",
"immediate",
".",
"Applying",
"the",
"en... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/environment/EnvironmentBase.js#L97-L108 | |
27,295 | ariatemplates/ariatemplates | src/aria/widgets/form/InputWithFrame.js | function () {
this.$Input._init.call(this);
var label = this.getLabel();
if (label) {
ariaUtilsEvent.addListener(label, "click", {
fn : this._onLabelClick,
scope : this
});
}
} | javascript | function () {
this.$Input._init.call(this);
var label = this.getLabel();
if (label) {
ariaUtilsEvent.addListener(label, "click", {
fn : this._onLabelClick,
scope : this
});
}
} | [
"function",
"(",
")",
"{",
"this",
".",
"$Input",
".",
"_init",
".",
"call",
"(",
"this",
")",
";",
"var",
"label",
"=",
"this",
".",
"getLabel",
"(",
")",
";",
"if",
"(",
"label",
")",
"{",
"ariaUtilsEvent",
".",
"addListener",
"(",
"label",
",",
... | Override the Input _init method
@protected | [
"Override",
"the",
"Input",
"_init",
"method"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/InputWithFrame.js#L99-L108 | |
27,296 | ariatemplates/ariatemplates | src/aria/widgets/form/InputWithFrame.js | function (out) {
var cfg = this._cfg;
this._frame = ariaWidgetsFramesFrameWithIcons.createFrame({
sclass : cfg.sclass,
id : this._domId,
skinnableClass : this._skinnableClass,
width : this._inputMarkupWidth,
state : ... | javascript | function (out) {
var cfg = this._cfg;
this._frame = ariaWidgetsFramesFrameWithIcons.createFrame({
sclass : cfg.sclass,
id : this._domId,
skinnableClass : this._skinnableClass,
width : this._inputMarkupWidth,
state : ... | [
"function",
"(",
"out",
")",
"{",
"var",
"cfg",
"=",
"this",
".",
"_cfg",
";",
"this",
".",
"_frame",
"=",
"ariaWidgetsFramesFrameWithIcons",
".",
"createFrame",
"(",
"{",
"sclass",
":",
"cfg",
".",
"sclass",
",",
"id",
":",
"this",
".",
"_domId",
",",... | Internal method to override to process the input block markup
@param {aria.templates.MarkupWriter} out the writer Object to use to output markup
@protected | [
"Internal",
"method",
"to",
"override",
"to",
"process",
"the",
"input",
"block",
"markup"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/InputWithFrame.js#L123-L149 | |
27,297 | ariatemplates/ariatemplates | src/aria/core/transport/BaseXHR.js | function (reqId, connection, callback) {
// Interval for processing the response from the server
var scope = this;
connection.onreadystatechange = function () {
if (connection && connection.readyState === 4) {
connection.onreadystatechange = Aria.e... | javascript | function (reqId, connection, callback) {
// Interval for processing the response from the server
var scope = this;
connection.onreadystatechange = function () {
if (connection && connection.readyState === 4) {
connection.onreadystatechange = Aria.e... | [
"function",
"(",
"reqId",
",",
"connection",
",",
"callback",
")",
"{",
"// Interval for processing the response from the server",
"var",
"scope",
"=",
"this",
";",
"connection",
".",
"onreadystatechange",
"=",
"function",
"(",
")",
"{",
"if",
"(",
"connection",
"... | A timer that binds a callback to the onreadystatechange event.
Upon readyState 4, handleTransactionResponse will process the response.
@param {Number} reqId Requst identifier
@param {Object} connection The connection object (XHR or ActiveX)
@param {aria.core.CfgBeans:Callback} callback Callback from aria.core.IO
@priva... | [
"A",
"timer",
"that",
"binds",
"a",
"callback",
"to",
"the",
"onreadystatechange",
"event",
".",
"Upon",
"readyState",
"4",
"handleTransactionResponse",
"will",
"process",
"the",
"response",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/transport/BaseXHR.js#L114-L129 | |
27,298 | ariatemplates/ariatemplates | src/aria/core/transport/BaseXHR.js | function (reqId, connection, callback) {
var httpStatus, responseObject;
try {
var connectionStatus = connection.status;
if (connectionStatus) {
httpStatus = connectionStatus || 200;
} else if (!connectionStatus && connection.r... | javascript | function (reqId, connection, callback) {
var httpStatus, responseObject;
try {
var connectionStatus = connection.status;
if (connectionStatus) {
httpStatus = connectionStatus || 200;
} else if (!connectionStatus && connection.r... | [
"function",
"(",
"reqId",
",",
"connection",
",",
"callback",
")",
"{",
"var",
"httpStatus",
",",
"responseObject",
";",
"try",
"{",
"var",
"connectionStatus",
"=",
"connection",
".",
"status",
";",
"if",
"(",
"connectionStatus",
")",
"{",
"httpStatus",
"=",... | Attempts to interpret the server response and determine whether the transaction was successful, or if an
error or exception was encountered.
@private
@param {Number} reqId Requst identifier
@param {Object} connection The connection object (XHR or ActiveX)
@param {aria.core.CfgBeans:Callback} callback Callback from aria... | [
"Attempts",
"to",
"interpret",
"the",
"server",
"response",
"and",
"determine",
"whether",
"the",
"transaction",
"was",
"successful",
"or",
"if",
"an",
"error",
"or",
"exception",
"was",
"encountered",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/transport/BaseXHR.js#L139-L182 | |
27,299 | ariatemplates/ariatemplates | src/aria/core/transport/BaseXHR.js | function (connection) {
var headerStr = connection.getAllResponseHeaders(), headers = {};
if (headerStr) {
var headerLines = headerStr.split("\n");
for (var i = 0; i < headerLines.length; i++) {
var delimitPos = headerLines[i].indexOf(":");
... | javascript | function (connection) {
var headerStr = connection.getAllResponseHeaders(), headers = {};
if (headerStr) {
var headerLines = headerStr.split("\n");
for (var i = 0; i < headerLines.length; i++) {
var delimitPos = headerLines[i].indexOf(":");
... | [
"function",
"(",
"connection",
")",
"{",
"var",
"headerStr",
"=",
"connection",
".",
"getAllResponseHeaders",
"(",
")",
",",
"headers",
"=",
"{",
"}",
";",
"if",
"(",
"headerStr",
")",
"{",
"var",
"headerLines",
"=",
"headerStr",
".",
"split",
"(",
"\"\\... | Generate a valid server response.
@protected
@param {Object} connection Connection status
@return {aria.core.CfgBeans:IOAsyncRequestResponseCfg} | [
"Generate",
"a",
"valid",
"server",
"response",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/core/transport/BaseXHR.js#L190-L213 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.