_id stringlengths 2 6 | title stringlengths 0 58 | partition stringclasses 3
values | text stringlengths 52 373k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q56700 | train | function (eventOrCharCode, keyCode) {
// -------------------------------------- input arguments processing
var event;
var charCode;
if (ariaUtilsType.isObject(eventOrCharCode)) {
event = eventOrCharCode;
charCode = event.charCode;
... | javascript | {
"resource": ""
} | |
q56701 | train | function (event) {
if (this._subTplModuleCtrl) {
if (!event.isSpecialKey && event.charCode != event.KC_SPACE) {
this.sendKey(event);
}
}
} | javascript | {
"resource": ""
} | |
q56702 | train | 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 | {
"resource": ""
} | |
q56703 | train | 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 | {
"resource": ""
} | |
q56704 | train | 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 | {
"resource": ""
} | |
q56705 | train | 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 | {
"resource": ""
} | |
q56706 | train | 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 | {
"resource": ""
} | |
q56707 | train | 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 | {
"resource": ""
} | |
q56708 | train | 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 | {
"resource": ""
} | |
q56709 | train | function (hashObject) {
var hashStringArray = [];
for (var key in hashObject) {
if (hashObject.hasOwnProperty(key)) {
hashStringArray.push(encodeURIComponent(key) + "=" + encodeURIComponent(hashObject[key]));
}
}
return ... | javascript | {
"resource": ""
} | |
q56710 | train | 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 | {
"resource": ""
} | |
q56711 | train | function () {
if (!this._isIE7OrLess) {
this._hashChangeCallbackAdded = true;
ariaUtilsAriaWindow.attachWindow();
ariaUtilsEvent.addListener(Aria.$window, 'hashchange', {
fn : this._internalCallback,
scope : this
... | javascript | {
"resource": ""
} | |
q56712 | train | function () {
if (this._enableIEpolling) {
this._hashPollCallback = ariaCoreTimer.addCallback({
fn : this._hashPoll,
scope : this,
delay : this.ie7PollDelay
});
var documentHash = this.getHashString(... | javascript | {
"resource": ""
} | |
q56713 | train | 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 | {
"resource": ""
} | |
q56714 | train | function () {
if (!this._isIE7OrLess && this._hashChangeCallbackAdded) {
this._hashChangeCallbackAdded = false;
ariaUtilsEvent.removeListener(Aria.$window, 'hashchange', {
fn : this._internalCallback
});
ariaUtilsAriaWindow.... | javascript | {
"resource": ""
} | |
q56715 | train | 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 | {
"resource": ""
} | |
q56716 | train | 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 | {
"resource": ""
} | |
q56717 | train | 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 | {
"resource": ""
} | |
q56718 | train | 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 | {
"resource": ""
} | |
q56719 | train | 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 | {
"resource": ""
} | |
q56720 | train | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._popup && this._associatedWidget == widget) {
this._popup.cancelMouseOutTimer();
}
if (!this._showTimeout) {
this... | javascript | {
"resource": ""
} | |
q56721 | train | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._showTimeout && this._cfg.showOnlyOnMouseStill) {
timer.cancelCallback(this._showTimeout);
this._showTimeout = timer.addCallback({
... | javascript | {
"resource": ""
} | |
q56722 | train | function (widget, domEvt) {
if (!this._cfgOk) {
return;
}
if (this._popup) {
this._popup.closeOnMouseOut(domEvt);
}
if (this._showTimeout) {
timer.cancelCallback(this._showTimeout)... | javascript | {
"resource": ""
} | |
q56723 | train | 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 | {
"resource": ""
} | |
q56724 | train | 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 | {
"resource": ""
} | |
q56725 | train | 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 | {
"resource": ""
} | |
q56726 | train | 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 | {
"resource": ""
} | |
q56727 | train | function (items, selectedValues, selectedIdx) {
var arrayUtil = ariaUtilsArray;
var preselect = this._checkPreselect(selectedIdx);
selectedIdx = (preselect === undefined) ? selectedIdx : preselect;
var maxSelectedCount = this._getTrueMaxSelectedCount(items);
v... | javascript | {
"resource": ""
} | |
q56728 | train | function (flowOrientation, focusIndex, numberOfRows, numberOfColumns, keyCode, numberItems) {
var moveFocus = focusIndex;
if (numberOfColumns == 1) {
if (keyCode == ariaDomEvent.KC_ARROW_UP) {
moveFocus--;
}
if (keyCode == ari... | javascript | {
"resource": ""
} | |
q56729 | train | function (evtInfo) {
var data = this._data;
var evt = {
name : "keyevent",
charCode : evtInfo.charCode,
keyCode : evtInfo.keyCode,
focusIndex : data.focusIndex,
cancelDefault : false
};
thi... | javascript | {
"resource": ""
} | |
q56730 | train | 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 | {
"resource": ""
} | |
q56731 | train | 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 | {
"resource": ""
} | |
q56732 | train | 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 | {
"resource": ""
} | |
q56733 | train | 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 | {
"resource": ""
} | |
q56734 | train | 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 | {
"resource": ""
} | |
q56735 | train | 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 | {
"resource": ""
} | |
q56736 | train | 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 | {
"resource": ""
} | |
q56737 | train | 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 | {
"resource": ""
} | |
q56738 | train | function (newlySelectedIndexes, newlyUnselectedIndexes) {
var data = this._data;
if (newlySelectedIndexes.length === 0 && data.selectedCount === 0) {
var preselect = this._checkPreselect();
if (preselect != null) {
newlySelectedIndexes = [prese... | javascript | {
"resource": ""
} | |
q56739 | train | function (flowOrientation, numberOfRows, numberOfCols, noItems) {
var numItemsLastCol;
if (flowOrientation == 'vertical') {
if (!numberOfRows) {
if (numberOfCols) {
numberOfRows = Math.ceil(noItems / numberOfCols);
... | javascript | {
"resource": ""
} | |
q56740 | train | 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 | {
"resource": ""
} | |
q56741 | train | 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 | {
"resource": ""
} | |
q56742 | train | 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 | {
"resource": ""
} | |
q56743 | train | 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 | {
"resource": ""
} | |
q56744 | train | 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 | {
"resource": ""
} | |
q56745 | train | 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 | {
"resource": ""
} | |
q56746 | train | function (logicalPath) {
var itm = this._cache.getItem("files", logicalPath, false);
if (itm && itm.status == this._cache.STATUS_AVAILABLE) {
return itm.value;
}
return null;
} | javascript | {
"resource": ""
} | |
q56747 | train | function (classpath, cb) {
var logicalPath = Aria.getLogicalPath(classpath, ".tpl", true);
this.loadFile(logicalPath, {
fn : this._onTplFileContentReceive,
scope : this,
args : {
origCb : cb
}
}, null... | javascript | {
"resource": ""
} | |
q56748 | train | 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 | {
"resource": ""
} | |
q56749 | train | 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 | {
"resource": ""
} | |
q56750 | train | 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 | {
"resource": ""
} | |
q56751 | train | 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 | {
"resource": ""
} | |
q56752 | train | 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 | {
"resource": ""
} | |
q56753 | train | 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 | {
"resource": ""
} | |
q56754 | train | 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 | {
"resource": ""
} | |
q56755 | train | 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 | {
"resource": ""
} | |
q56756 | train | 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 | {
"resource": ""
} | |
q56757 | train | 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 | {
"resource": ""
} | |
q56758 | train | 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 | {
"resource": ""
} | |
q56759 | train | 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 | {
"resource": ""
} | |
q56760 | train | 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 | {
"resource": ""
} | |
q56761 | train | 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 | {
"resource": ""
} | |
q56762 | train | 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 | {
"resource": ""
} | |
q56763 | train | 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 | {
"resource": ""
} | |
q56764 | train | 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 | {
"resource": ""
} | |
q56765 | train | 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 | {
"resource": ""
} | |
q56766 | train | 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 | {
"resource": ""
} | |
q56767 | train | 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 | {
"resource": ""
} | |
q56768 | train | 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 | {
"resource": ""
} | |
q56769 | train | 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 | {
"resource": ""
} | |
q56770 | train | 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 | {
"resource": ""
} | |
q56771 | train | 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 | {
"resource": ""
} | |
q56772 | train | function (newUnit, valueInPixels, elem, property) {
return this.__convertFromPixels[newUnit].call(this, valueInPixels, elem, property);
} | javascript | {
"resource": ""
} | |
q56773 | train | function (element, property) {
if (this.isIE8orLess) {
return element.currentStyle[property] || element.style[property];
} else {
return Aria.$window.getComputedStyle(element, "")[property] || element.style[property];
}
... | javascript | {
"resource": ""
} | |
q56774 | train | 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 | {
"resource": ""
} | |
q56775 | train | function (event) {
var paths = event.placeholderPaths;
if (ariaUtilsArray.contains(paths, this._placeholderPath)) {
var newSection = this._context.getRefreshedSection({
section : this._sectionId,
writerCallback : {
f... | javascript | {
"resource": ""
} | |
q56776 | train | function () {
var placeholderPath = "";
var currentContext = this._context;
while (currentContext) {
if (currentContext.placeholderPath) {
placeholderPath = currentContext.placeholderPath + ".";
break;
}
... | javascript | {
"resource": ""
} | |
q56777 | train | 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 | {
"resource": ""
} | |
q56778 | train | function (newFilter) {
var filterInfo = {};
if (typeUtils.isString(newFilter)) {
filterInfo.filterClasspath = newFilter;
filterInfo.initArgs = null;
this._filtersToBeLoaded++;
} else if (typeUtils.isInstanceOf(ne... | javascript | {
"resource": ""
} | |
q56779 | train | 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 | {
"resource": ""
} | |
q56780 | train | function (oldFilter) {
var filters = this._filters;
// stop here if there are no filters
if (!filters) {
return false;
}
var selectionCallback = getFindFilterFunction(oldFilter);
if (selectionCallback == ... | javascript | {
"resource": ""
} | |
q56781 | train | function (isResponse, request, cb) {
if (!this._filters) {
this.$callback(cb);
return;
}
var args = {
isResponse : isResponse,
request : request,
cb : cb,
... | javascript | {
"resource": ""
} | |
q56782 | train | 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 | {
"resource": ""
} | |
q56783 | train | 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 | {
"resource": ""
} | |
q56784 | train | 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 | {
"resource": ""
} | |
q56785 | train | 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 | {
"resource": ""
} | |
q56786 | train | function () {
var elt = this._getInputMarkupDomElt();
if (elt) {
this._initInputMarkup(elt);
}
var lbl = this._getInputLabelMarkupDomElt();
if (lbl) {
this._initLabelMarkup(lbl);
}
} | javascript | {
"resource": ""
} | |
q56787 | train | 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 | {
"resource": ""
} | |
q56788 | train | 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 | {
"resource": ""
} | |
q56789 | train | 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 | {
"resource": ""
} | |
q56790 | train | function () {
var label = this.getLabel();
if (label) {
label.className = 'x' + this._skinnableClass + '_' + this._cfg.sclass + '_' + this._state + '_label'
+ this._getFloatingLabelClass();
}
} | javascript | {
"resource": ""
} | |
q56791 | train | 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 | {
"resource": ""
} | |
q56792 | train | 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 | {
"resource": ""
} | |
q56793 | train | function () {
if (this.__style && this.__outlinedElement) {
// restore the previous outline
if (ariaCoreBrowser.isIE8) {
this.__outlinedElement.style.cssText = this.__previousStyle;
} else {
this.__outlinedElement.style.... | javascript | {
"resource": ""
} | |
q56794 | train | function (newStyle) {
var styleToApply = (newStyle) ? newStyle : ariaUtilsEnvironmentVisualFocus.getAppOutlineStyle();
this.__style = !ariaCoreBrowser.isIE7 ? styleToApply : null;
this.__updateVisualFocus();
} | javascript | {
"resource": ""
} | |
q56795 | train | 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 | {
"resource": ""
} | |
q56796 | train | function (event) {
if (!this._enabled) {
return;
}
event = new ariaDomEvent(event);
if (ariaCoreBrowser.isSafari) {
event.ctrlKey = this._safariCtrlKey;
}
// ctrl right click only
... | javascript | {
"resource": ""
} | |
q56797 | train | 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 | {
"resource": ""
} | |
q56798 | train | 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 | {
"resource": ""
} | |
q56799 | train | 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 | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.