repo stringlengths 5 67 | path stringlengths 4 116 | func_name stringlengths 0 58 | original_string stringlengths 52 373k | language stringclasses 1
value | code stringlengths 52 373k | code_tokens list | docstring stringlengths 4 11.8k | docstring_tokens list | sha stringlengths 40 40 | url stringlengths 86 226 | partition stringclasses 1
value |
|---|---|---|---|---|---|---|---|---|---|---|---|
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (eventOrCharCode, keyCode) {
// -------------------------------------- input arguments processing
var event;
var charCode;
if (ariaUtilsType.isObject(eventOrCharCode)) {
event = eventOrCharCode;
charCode = event.charCode;
... | javascript | function (eventOrCharCode, keyCode) {
// -------------------------------------- input arguments processing
var event;
var charCode;
if (ariaUtilsType.isObject(eventOrCharCode)) {
event = eventOrCharCode;
charCode = event.charCode;
... | [
"function",
"(",
"eventOrCharCode",
",",
"keyCode",
")",
"{",
"// -------------------------------------- input arguments processing",
"var",
"event",
";",
"var",
"charCode",
";",
"if",
"(",
"ariaUtilsType",
".",
"isObject",
"(",
"eventOrCharCode",
")",
")",
"{",
"even... | Return true to cancel default action.
@param {aria.DomEvent|Number} eventOrCharCode Original event or character code directly
@param {Number} keyCode Ignored if the original event has been passed, otherwise the code of the button pressed
@return {Boolean} | [
"Return",
"true",
"to",
"cancel",
"default",
"action",
"."
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L98-L139 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (event) {
if (this._subTplModuleCtrl) {
if (!event.isSpecialKey && event.charCode != event.KC_SPACE) {
this.sendKey(event);
}
}
} | javascript | function (event) {
if (this._subTplModuleCtrl) {
if (!event.isSpecialKey && event.charCode != event.KC_SPACE) {
this.sendKey(event);
}
}
} | [
"function",
"(",
"event",
")",
"{",
"if",
"(",
"this",
".",
"_subTplModuleCtrl",
")",
"{",
"if",
"(",
"!",
"event",
".",
"isSpecialKey",
"&&",
"event",
".",
"charCode",
"!=",
"event",
".",
"KC_SPACE",
")",
"{",
"this",
".",
"sendKey",
"(",
"event",
"... | DOM callback function called on key press | [
"DOM",
"callback",
"function",
"called",
"on",
"key",
"press"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L207-L213 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (event) {
// event.cancelBubble = true;
if (this._subTplModuleCtrl) {
if (event.isSpecialKey) {
this.sendKey(event);
}
}
if (event.keyCode != event.KC_TAB) {
event.preventDefault(); // Removing d... | javascript | function (event) {
// event.cancelBubble = true;
if (this._subTplModuleCtrl) {
if (event.isSpecialKey) {
this.sendKey(event);
}
}
if (event.keyCode != event.KC_TAB) {
event.preventDefault(); // Removing d... | [
"function",
"(",
"event",
")",
"{",
"// event.cancelBubble = true;",
"if",
"(",
"this",
".",
"_subTplModuleCtrl",
")",
"{",
"if",
"(",
"event",
".",
"isSpecialKey",
")",
"{",
"this",
".",
"sendKey",
"(",
"event",
")",
";",
"}",
"}",
"if",
"(",
"event",
... | DOM callback function called on key down | [
"DOM",
"callback",
"function",
"called",
"on",
"key",
"down"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L228-L239 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function () {
var data = this._subTplModuleCtrl.getData();
var toFocus = data.itemsView.items[data.focusIndex].initIndex;
if (data.items[toFocus].currentlyDisabled) {
data.focusIndex = this._getFirstEnabledItem().id;
}
this._subTplModuleCtrl.se... | javascript | function () {
var data = this._subTplModuleCtrl.getData();
var toFocus = data.itemsView.items[data.focusIndex].initIndex;
if (data.items[toFocus].currentlyDisabled) {
data.focusIndex = this._getFirstEnabledItem().id;
}
this._subTplModuleCtrl.se... | [
"function",
"(",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_subTplModuleCtrl",
".",
"getData",
"(",
")",
";",
"var",
"toFocus",
"=",
"data",
".",
"itemsView",
".",
"items",
"[",
"data",
".",
"focusIndex",
"]",
".",
"initIndex",
";",
"if",
"(",
"dat... | DOM callback function called on focus | [
"DOM",
"callback",
"function",
"called",
"on",
"focus"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L244-L251 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (key, newValue, oldValue) {
// If the template needs a refresh, refreshNeeded has to be set to true
// by each of the updates below that needs a refresh
var refreshNeeded = false;
var moduleCtrl = this._subTplModuleCtrl;
// var data = this._subTplCtxt... | javascript | function (key, newValue, oldValue) {
// If the template needs a refresh, refreshNeeded has to be set to true
// by each of the updates below that needs a refresh
var refreshNeeded = false;
var moduleCtrl = this._subTplModuleCtrl;
// var data = this._subTplCtxt... | [
"function",
"(",
"key",
",",
"newValue",
",",
"oldValue",
")",
"{",
"// If the template needs a refresh, refreshNeeded has to be set to true",
"// by each of the updates below that needs a refresh",
"var",
"refreshNeeded",
"=",
"false",
";",
"var",
"moduleCtrl",
"=",
"this",
... | Called when json data that we have properties bound to are externally changed. In general we need to update
our internal data model and refresh the sub template if needed.
@param {String} key The property changed
@param {Object} newValue
@param {Object} oldValue | [
"Called",
"when",
"json",
"data",
"that",
"we",
"have",
"properties",
"bound",
"to",
"are",
"externally",
"changed",
".",
"In",
"general",
"we",
"need",
"to",
"update",
"our",
"internal",
"data",
"model",
"and",
"refresh",
"the",
"sub",
"template",
"if",
"... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L260-L287 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (property) {
var bindings = this._cfg.bind, bind = bindings[property];
if (bindings && bind && bindings.hasOwnProperty(property) && property === "items") {
var callback = {
fn : this._notifyDataChange,
scope : this,
... | javascript | function (property) {
var bindings = this._cfg.bind, bind = bindings[property];
if (bindings && bind && bindings.hasOwnProperty(property) && property === "items") {
var callback = {
fn : this._notifyDataChange,
scope : this,
... | [
"function",
"(",
"property",
")",
"{",
"var",
"bindings",
"=",
"this",
".",
"_cfg",
".",
"bind",
",",
"bind",
"=",
"bindings",
"[",
"property",
"]",
";",
"if",
"(",
"bindings",
"&&",
"bind",
"&&",
"bindings",
".",
"hasOwnProperty",
"(",
"property",
")"... | Register listeners for the bindings associated to this widget
@protected | [
"Register",
"listeners",
"for",
"the",
"bindings",
"associated",
"to",
"this",
"widget"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L293-L319 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (propertyName, newValue) {
if (!this._cfg) {
return;
}
if (propertyName === "items" && this._cfg.bind.hasOwnProperty(propertyName)) {
var oldValue = this.getProperty(propertyName);
this._cfg[propertyName] = newValue;
... | javascript | function (propertyName, newValue) {
if (!this._cfg) {
return;
}
if (propertyName === "items" && this._cfg.bind.hasOwnProperty(propertyName)) {
var oldValue = this.getProperty(propertyName);
this._cfg[propertyName] = newValue;
... | [
"function",
"(",
"propertyName",
",",
"newValue",
")",
"{",
"if",
"(",
"!",
"this",
".",
"_cfg",
")",
"{",
"return",
";",
"}",
"if",
"(",
"propertyName",
"===",
"\"items\"",
"&&",
"this",
".",
"_cfg",
".",
"bind",
".",
"hasOwnProperty",
"(",
"propertyN... | Set property for this widget, and reflect change on itself, but not in the associated datamodel
@param {String} propertyName in the configuration
@param {Object} newValue to set | [
"Set",
"property",
"for",
"this",
"widget",
"and",
"reflect",
"change",
"on",
"itself",
"but",
"not",
"in",
"the",
"associated",
"datamodel"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L326-L337 | train | |
ariatemplates/ariatemplates | src/aria/widgets/form/list/List.js | function (optionIndex) {
if (this._subTplCtxt) {
var data = this._subTplModuleCtrl.getData();
if (data.waiAria && optionIndex > -1 && optionIndex < data.items.length) {
return this._subTplCtxt.$getId(data.listItemDomIdPrefix + optionIndex);
... | javascript | function (optionIndex) {
if (this._subTplCtxt) {
var data = this._subTplModuleCtrl.getData();
if (data.waiAria && optionIndex > -1 && optionIndex < data.items.length) {
return this._subTplCtxt.$getId(data.listItemDomIdPrefix + optionIndex);
... | [
"function",
"(",
"optionIndex",
")",
"{",
"if",
"(",
"this",
".",
"_subTplCtxt",
")",
"{",
"var",
"data",
"=",
"this",
".",
"_subTplModuleCtrl",
".",
"getData",
"(",
")",
";",
"if",
"(",
"data",
".",
"waiAria",
"&&",
"optionIndex",
">",
"-",
"1",
"&&... | Returns the id of the DOM element corresponding to the item in the list at the given index.
This method only works if accessibility was enabled at the time the list widget was created.
@param {Integer} optionIndex index of the item whose id should be returned
@return {String} id of the DOM element or undefined if the l... | [
"Returns",
"the",
"id",
"of",
"the",
"DOM",
"element",
"corresponding",
"to",
"the",
"item",
"in",
"the",
"list",
"at",
"the",
"given",
"index",
".",
"This",
"method",
"only",
"works",
"if",
"accessibility",
"was",
"enabled",
"at",
"the",
"time",
"the",
... | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/widgets/form/list/List.js#L354-L361 | train | |
ariatemplates/ariatemplates | src/aria/utils/HashManager.js | function (cb) {
var hcC = this._hashChangeCallbacks;
if (hcC != null) {
var len = hcC.length, i = 0;
while (i < len && hcC[i] != cb) {
i++;
}
if (i < len) {
hcC.splice(i, 1);
... | javascript | function (cb) {
var hcC = this._hashChangeCallbacks;
if (hcC != null) {
var len = hcC.length, i = 0;
while (i < len && hcC[i] != cb) {
i++;
}
if (i < len) {
hcC.splice(i, 1);
... | [
"function",
"(",
"cb",
")",
"{",
"var",
"hcC",
"=",
"this",
".",
"_hashChangeCallbacks",
";",
"if",
"(",
"hcC",
"!=",
"null",
")",
"{",
"var",
"len",
"=",
"hcC",
".",
"length",
",",
"i",
"=",
"0",
";",
"while",
"(",
"i",
"<",
"len",
"&&",
"hcC"... | Remove a callback to hashchange event
@param {aria.core.CfgBeans:Callback} cb | [
"Remove",
"a",
"callback",
"to",
"hashchange",
"event"
] | 7ed5d065818ae159bf361c9dfb209b1cf3883c90 | https://github.com/ariatemplates/ariatemplates/blob/7ed5d065818ae159bf361c9dfb209b1cf3883c90/src/aria/utils/HashManager.js#L249-L264 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train | |
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 | train |
Subsets and Splits
SQL Console for semeru/code-text-javascript
Retrieves 20,000 non-null code samples labeled as JavaScript, providing a basic overview of the dataset.