_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
52
373k
language
stringclasses
1 value
meta_information
dict
q57000
train
function (evt) { if (evt && evt._ariaDomEvent) { evt._wrapperNumber++; return evt; } else { return new aria.DomEvent(evt); } }
javascript
{ "resource": "" }
q57001
train
function (kc, specials) { // changed for PTR04462051 as spaces were included and this was breaking the AutoComplete widget. if (kc > 32 && kc < 41) { return true; // space, page or arrow } if (kc == 8 || kc == 9 || kc == 13 || kc == 27)...
javascript
{ "resource": "" }
q57002
train
function (type, target) { var evt = new aria.DomEvent({ type : type }); evt.type = type; evt.target = target; return evt; }
javascript
{ "resource": "" }
q57003
train
function (event) { // PROFILING // var profilingId = this.$startMeasure("handle key " + String.fromCharCode(event.charCode) // PROFILING // + " (" + event.charCode + ")"); if (this.controller) { if (!event.ctrlKey && !event.altKey) { // we ignore C...
javascript
{ "resource": "" }
q57004
train
function (event) { if (this._cfg.waiAria && !this._dropdownPopup && event.keyCode === DomEvent.KC_DOWN) { // disable arrow down key when waiAria is enabled and the popup is closed return; } var controller = this.controller; var cp = this.ge...
javascript
{ "resource": "" }
q57005
train
function (event) { var browser = ariaCoreBrowser; if (browser.isAndroid && browser.isChrome && !event.isSpecialKey && event.keyCode == 229) { event.charCode = 0; this._handleKey(event); } this.$TextInput._dom_onkeyup.call(this, event); ...
javascript
{ "resource": "" }
q57006
train
function () { var touchFocusSpan = this._touchFocusSpan; if (!touchFocusSpan) { touchFocusSpan = this._touchFocusSpan = Aria.$window.document.createElement("span"); touchFocusSpan.setAttribute("tabIndex", "-1"); var widgetDomElt = this.getDom(); ...
javascript
{ "resource": "" }
q57007
train
function (evt) { var domEvent = evt.domEvent; if (domEvent.target == this.getTextInputField()) { // Clicking on the input should directly give the focus to the input. // Setting this boolean to false prevents the focus from being given // to this._...
javascript
{ "resource": "" }
q57008
train
function () { var dropDownIcon = this._dropDownIcon; if (!dropDownIcon && this._frame && this._frame.getIcon) { dropDownIcon = this._dropDownIcon = this._frame.getIcon("dropdown"); } return dropDownIcon; }
javascript
{ "resource": "" }
q57009
train
function () { this._hasFocus = false; this._updateState(); if (this._cfg.formatError && this._cfg.validationEvent === 'onBlur') {// show // errortip on blur used for debug purposes this._validationPopupShow(); } else { // dispose of error t...
javascript
{ "resource": "" }
q57010
train
function (evt) { var target = evt.target; var inputDomElt = this._getInputMarkupDomElt(); if (this.controller && ariaUtilsDom.isAncestor(target, inputDomElt)) { this._toggleDropdown(); evt.preventDefault(); // prevent the selection of the text when cli...
javascript
{ "resource": "" }
q57011
train
function (event) { var domEvent = aria.DomEvent; if (event.keyCode === domEvent.KC_ENTER) { this._updateValue(false); } this.$DropDownInput._dom_onkeypress.call(this, event); }
javascript
{ "resource": "" }
q57012
train
function (includeController) { var hasChanged = null; if (this._skinObj.simpleHTML) { hasChanged = this.setProperty("value", this.getSelectField().value); } else if (includeController) { var controller = this.controller; var dataModel =...
javascript
{ "resource": "" }
q57013
train
function (out) { var cfg = this._cfg; var width = this._frame.innerWidth; var disabledOrReadonly = cfg.disabled || cfg.readOnly; var tabIndex = disabledOrReadonly ? '' : ' tabindex="' + this._calculateTabIndex() + '"'; if (this._skinObj.simpleHTML) { ...
javascript
{ "resource": "" }
q57014
train
function (propertyName, newValue, oldValue) { if (propertyName === 'value') { this._checkValue();// checks the value changed in the data model is a valid value from the select // options if (this.controller) { var report = this.controller.c...
javascript
{ "resource": "" }
q57015
train
function (value) { var selectField = this.getSelectField(); var options = selectField.options; for (var i = 0; i < options.length; i++) { var option = options[i]; if (option.value === value) { option.selected = true; ...
javascript
{ "resource": "" }
q57016
train
function (title) { var document = window.document; if (ariaUtilsType.isString(title)) { document.title = title; } else { title = document.title; } return title; }
javascript
{ "resource": "" }
q57017
train
function () { stateMemory.discarded = []; if (this._isIE7OrLess) { stateMemory.states = [stateMemory.states[this._currentPos]]; return; } var states = stateMemory.states; var expirationTime = ((new Da...
javascript
{ "resource": "" }
q57018
train
function (evt) { var state = ariaUtilsJson.copy(evt.state), title; if (state && state.__info) { title = state.__info.title; delete state.__info; } else { var stateInfo = this._retrieveFromMemory(); ...
javascript
{ "resource": "" }
q57019
train
function () { var stateInfo = this._retrieveFromMemory(); var id = stateInfo ? stateInfo.state.id : null; if (id && this._currentId != id && this._applyState(stateInfo)) { this.state = this.getState(); this.$raiseEvent({ ...
javascript
{ "resource": "" }
q57020
train
function (cfg) { var skinObject = cfg.skinObject; this._baseId = cfg.id; this._skinObject = skinObject; this._stateName = cfg.state; this._iconsLeft = cfg.iconsLeft; this._iconsRight = cfg.iconsRight; this._icons = {}; /** * Labels for the to...
javascript
{ "resource": "" }
q57021
train
function (skinObject, hideIconNames) { // normalize the skin: if (skinObject.iconsLeft == null || skinObject.iconsLeft === "") { skinObject.iconsLeft = []; } else if (ariaUtilsType.isString(skinObject.iconsLeft)) { skinObject.iconsLeft = skinObject.ico...
javascript
{ "resource": "" }
q57022
train
function (iconsList, iconNames) { if (iconNames && iconNames.length > 0) { var icons = []; ariaUtilsArray.forEach(iconsList, function (item, i) { if (!ariaUtilsArray.contains(iconNames, iconsList[i])) { icons.push(iconsList[i]); ...
javascript
{ "resource": "" }
q57023
train
function (out) { var oSelf = this; ariaUtilsArray.forEach(this._iconsLeft, function (value) { oSelf._writeIcon(value, out); }); this._frame.writeMarkupBegin(out); }
javascript
{ "resource": "" }
q57024
train
function (iconName) { this._icons[iconName].domElts = null; ariaUtilsDelegate.remove(this._icons[iconName].iconDelegateId); this._icons[iconName] = null; delete this._icons[iconName]; }
javascript
{ "resource": "" }
q57025
train
function () { var param = { width : 0, activeIconIndex : 0 }, oSelf = this; ariaUtilsArray.forEach(this._iconsLeft, function (value) { oSelf._computeIconSize(value, param); }); ariaUtilsArray.forEach(this._iconsR...
javascript
{ "resource": "" }
q57026
train
function () { var outerWidth = this._outerWidth; var newValue; if (outerWidth < 0) { newValue = -1; } else { newValue = outerWidth - this._iconsWidth; if (newValue < 0) { newValue = 0; } ...
javascript
{ "resource": "" }
q57027
train
function (icon, param) { var stateObject = this.getStateObject(); var iconParts = stateObject.icons[icon].split(":"); var iconInfo = ariaWidgetsAriaSkinInterface.getIcon(iconParts[0], iconParts[1]); var active = stateObject.icons[icon + "IsActive"]; if (iconIn...
javascript
{ "resource": "" }
q57028
train
function (iconInfo, active) { // TODO: mutualize with the icon widget var style = ['padding:0;display:inline-block;background-position:-', iconInfo.iconLeft, 'px -', iconInfo.iconTop, 'px;width:', iconInfo.width, 'px;height:', iconInfo.height, 'px;vertical...
javascript
{ "resource": "" }
q57029
train
function (event, iconName) { var eventType = event.type; if (eventType == "safetap" && !registerSafeTap(event)) { // $SafeTap does not load the SafeTap class on non-touch devices // however, that class may be loaded for any other reason, in which case ...
javascript
{ "resource": "" }
q57030
train
function (config, options) { if (this._subWindow) { if (this._subWindow.closed) { // we probably did not catch correctly the unload event this.close(); } else { // TODO: log error return; ...
javascript
{ "resource": "" }
q57031
train
function () { // start working in subwindow var Aria = this._subWindow.Aria, aria = this._subWindow.aria; // link the url map and the root map in the sub-window // to the corresponding maps in the main window: Aria.rootFolderPath = this.getAria().rootFolderPat...
javascript
{ "resource": "" }
q57032
train
function () { // continue working in subwindow // var Aria = this._subWindow.Aria; var aria = this._subWindow.aria; // creates module instance first to be able to dispose it when window close var self = this; aria.templates.ModuleCtrlFactory.create...
javascript
{ "resource": "" }
q57033
train
function (moduleCtrlObject) { // finish working in subwindow var Aria = this._subWindow.Aria; // , aria = this._subWindow.aria; var moduleCtrl = moduleCtrlObject.moduleCtrlPrivate; Aria.loadTemplate({ classpath : this._config.displayClasspath, ...
javascript
{ "resource": "" }
q57034
train
function () { var subWindow = this._subWindow; if (subWindow) { this._subWindow = null; if (!subWindow.closed) { if (this._rootTplCtxtRef) { this._rootTplCtxtRef.$dispose(); } if (...
javascript
{ "resource": "" }
q57035
train
function () { var cfg = this._cfg; return ariaCoreBrowser.isIE11 && cfg.waiAria && cfg.disabled && this._isChecked() && cfg._inputType === "checkbox"; }
javascript
{ "resource": "" }
q57036
train
function (hasIds, visible) { var cfg = this._cfg; var waiAria = cfg.waiAria; var markup = ['<input type="', cfg._inputType, '"', ' value="', cfg.value, '"']; var checked = this._isChecked(); if (checked) { markup.push(' checked'); }...
javascript
{ "resource": "" }
q57037
train
function () { var newState = this._state; if (this._icon) { this._icon.changeIcon(this._getIconName(newState)); } var inpEl = this._getFocusableElement(); if (inpEl != null) { var hasWaiWorkaroundMarkup = this._hasWaiWorkarou...
javascript
{ "resource": "" }
q57038
train
function () { var newValue = !this.getProperty("value"); this._cfg.value = newValue; this.setProperty("value", newValue); // setProperty on value might destroy the widget if (this._cfg) { this._setState(); this._updateDomForStat...
javascript
{ "resource": "" }
q57039
train
function () { var bindings = this._cfg.bind; var binding = bindings.disabled; if (binding) { var newValue = this._transform(binding.transform, binding.inside[binding.to], "toWidget"); if (ariaUtilsType.isBoolean(newValue)) { this._d...
javascript
{ "resource": "" }
q57040
train
function (tree, optionsOrAllDeps, callback, context, debug, skipLogError) { var options = normalizeOptions(optionsOrAllDeps, context, debug, skipLogError); this.__buildClass(tree, options, callback); }
javascript
{ "resource": "" }
q57041
train
function (statements) { for (var i = 0, len = statements.length; i < len; i += 1) { var statement = statements[i]; this.STATEMENTS[statement] = this.ALLSTATEMENTS[statement]; } }
javascript
{ "resource": "" }
q57042
train
function (tree, options, callback) { ariaCoreJsonValidator.check(tree, "aria.templates.TreeBeans.Root"); var out = new ariaTemplatesClassWriter({ fn : this.__processStatement, scope : this }, options.skipLogError ? null : { fn : this.__...
javascript
{ "resource": "" }
q57043
train
function (out, tree) { var rootStatement = tree.content[0]; if (tree.content.length != 1 || (rootStatement.name != this._rootStatement)) { return out.logError(tree, this.TEMPLATE_STATEMENT_EXPECTED, [this._rootStatement]); } if (rootStatement.content == nu...
javascript
{ "resource": "" }
q57044
train
function (out, statement) { var statname = statement.name; if (statname.charAt(0) == '@') { statname = '@'; } var handler = this.STATEMENTS[statname]; if (handler == null) { out.logError(statement, this.UNKNOWN_STATEMENT, [stat...
javascript
{ "resource": "" }
q57045
train
function (statement, msgId, msgArgs, errorContext) { if (msgArgs == null) { msgArgs = []; } msgArgs.push(statement.lineNumber); this.$logError(msgId, msgArgs, errorContext); }
javascript
{ "resource": "" }
q57046
train
function (out) { out.newBlock("main", 0); out.newBlock("classDefinition", 0); out.newBlock("prototype", 2); out.newBlock("globalVars", 5); out.newBlock("initTemplate", 3); out.newBlock("classInit", 3); }
javascript
{ "resource": "" }
q57047
train
function (out) { var tplParam = out.templateParam; out.writeln("module.exports = Aria.classDefinition({"); out.increaseIndent(); out.writeln("$classpath: ", out.stringify(tplParam.$classpath), ","); if (out.parentClasspath) { out.writeln("$exte...
javascript
{ "resource": "" }
q57048
train
function (out) { var tplParam = out.templateParam; // normal inheritance processing: set out.parentClasspath, out.parentClassName and out.parentClassType if (tplParam.$extends) { out.parentClasspath = tplParam.$extends; out.parentClassType = this._clas...
javascript
{ "resource": "" }
q57049
train
function (out) { var tplParam = out.templateParam; if (tplParam.$hasScript) { out.scriptClasspath = tplParam.$classpath + "Script"; out.scriptClassName = this._getClassName(out.scriptClasspath); out.addDependency(out.scriptClasspath); }...
javascript
{ "resource": "" }
q57050
train
function (out) { out.writeln("$constructor: function() { "); out.increaseIndent(); var parentClassName = out.parentClassName; if (parentClassName) { out.writeln("this.$", parentClassName, ".constructor.call(this);"); } var scriptCla...
javascript
{ "resource": "" }
q57051
train
function (out, res) { if (typeof res == "string") { var logicalPath = Aria.getLogicalPath(res); var serverRes = /([^\/]*)\/Res$/.exec(logicalPath); return 'require("ariatemplates/$resources").' + (serverRes ? "module(" + out.stringify(serverRes[1]) + "," : "fi...
javascript
{ "resource": "" }
q57052
train
function (out) { var tplParam = out.templateParam; var res = tplParam.$res; if (res) { out.writeln("$resources: {"); out.increaseIndent(); var first = true; for (var key in res) { if (res.hasOwnProper...
javascript
{ "resource": "" }
q57053
train
function (out) { out.writeln("$prototype: {"); out.increaseIndent(); out.write(out.getBlockContent("prototype")); out.decreaseIndent(); out.writeln("}"); out.decreaseIndent(); out.writeln("});"); out.leaveBlock(); }
javascript
{ "resource": "" }
q57054
train
function (arg) { var out = arg.out; var statement = arg.statement; // Add dependencies specified explicitly in the template declaration this._processDependencies(out); this._createBlocks(out); this._processInheritance(out); this._proc...
javascript
{ "resource": "" }
q57055
train
function (elt1, elt2) { if (elt1.sortKey == elt2.sortKey) { return 0; } return (elt1.sortKey > elt2.sortKey ? 1 : -1); }
javascript
{ "resource": "" }
q57056
train
function (obj) { if (!(ariaUtilsType.isObject(obj) || ariaUtilsType.isArray(obj))) { this.$logError(this.INVALID_TYPE_OF_ARGUMENT); return; } /** * Contains the initial array or map from which the view is built. This can be changed outsi...
javascript
{ "resource": "" }
q57057
train
function (changeType) { if (changeType) { this.notifyChange(changeType); } var curState = this._currentState; // initial array synchronization this._refreshInitialArray(); this.$assert(156, curState.initi...
javascript
{ "resource": "" }
q57058
train
function (items) { var itemsLength = items.length; for (var i = 0; i < itemsLength; i++) { json.removeListener(items[i], "filteredIn", this._jsonChangeCallback); } }
javascript
{ "resource": "" }
q57059
train
function () { var curState = this._currentState; var initialArray = this.initialArray; var oldValues; // map of old values if (curState.initialArray == initialArray && !(this._changes & this.CHANGED_INITIAL_ARRAY)) { return; ...
javascript
{ "resource": "" }
q57060
train
function (oldValues) { var initialArray = this.initialArray; var items = []; var filteredOutElements = 0; var arrayLength = initialArray.length; for (var i = 0; i < arrayLength; i++) { var iaElt = initialArray[i]; ...
javascript
{ "resource": "" }
q57061
train
function (oldValues) { var j = 0, items = [], filteredOutElements = 0; var initialArray = this.initialArray; for (var p in initialArray) { if (initialArray.hasOwnProperty(p) && !json.isMetadata(p)) { var iaElt = initialArray[p];...
javascript
{ "resource": "" }
q57062
train
function () { var oldItems = this.items; var oldItemsLength = oldItems.length; var newItems = []; var initialArray = this.initialArray; if (ariaUtilsType.isObject(initialArray)) { var oldItemsMap = new ariaUtilsStackHas...
javascript
{ "resource": "" }
q57063
train
function () { var sortKeyGetter = this.sortKeyGetter; var items = this.items; var itemsLength = items.length; for (var i = 0; i < itemsLength; i++) { var elt = items[i]; elt.sortKey = sortKeyGetter.fn.call(sortKeyGet...
javascript
{ "resource": "" }
q57064
train
function () { var items = this.items; var itemsLength = items.length; var pageSize = this.pageSize; if (pageSize <= 0) { pageSize = -1; } var pages = [], pageLength = 0; var pageIndex = 0;...
javascript
{ "resource": "" }
q57065
train
function (filteredIn) { if (filteredIn == null) { filteredIn = true; } // if not already done, we must first refresh the initial array before marking all elements: this._refreshInitialArray(); var items = this.items; ...
javascript
{ "resource": "" }
q57066
train
function (filterType, filterCallback) { // normalize callback only once filterCallback = this.$normCallback(filterCallback); var filterFn = filterCallback.fn, filterScope = filterCallback.scope; // if not already done, we must first refresh the initial arr...
javascript
{ "resource": "" }
q57067
train
function (array) { if (!(ariaUtilsType.isObject(array) || ariaUtilsType.isArray(array))) { this.$logError(this.INVALID_TYPE_OF_ARGUMENT); return; } this.initialArray = array; this._refreshInitialArray(); ...
javascript
{ "resource": "" }
q57068
train
function (instances) { var r = 10000000 * Math.random(); // todo: could be replaced with algo generating keys with numbers and // letters var key = '' + (r | r); // r|r = equivalent to Math.floor - but faster in old browsers while (instances[key]) { key += 'x'; } ...
javascript
{ "resource": "" }
q57069
train
function (def, classpath, member) { var res; if (typeUtils.isFunction(def)) { // should already be normalized: return __simpleFunctionDefinition; } else if (typeUtils.isString(def)) { res = { $type : def }; } else if (typeUt...
javascript
{ "resource": "" }
q57070
train
function (src) { var res = {}; for (var k in src) { if (src.hasOwnProperty(k)) { res[k] = src[k]; } } return res; }
javascript
{ "resource": "" }
q57071
sliceArguments
train
function sliceArguments(args, startIndex) { if (startIndex == null) { startIndex = 0; } return Array.prototype.slice.call(args, startIndex); }
javascript
{ "resource": "" }
q57072
createHiddenElement
train
function createHiddenElement() { // -------------------------------------------------------------- properties var element = document.createElement('div'); var style = element.style; style.width = 0; style.height = 0; element.setAttribute('aria-hidden', 'true'); // -----------------------...
javascript
{ "resource": "" }
q57073
train
function (args) { if (!this._cfg) { //template has been disposed no need to refresh return; } if (ariaTemplatesRefreshManager.isStopped()) { // look for the section to be refreshed, and notify it: if (args) { ...
javascript
{ "resource": "" }
q57074
train
function (element) { if (element.tagName === "BODY" || !ariaUtilsDom.isInDom(element)) { return []; } var Ids = []; while (!element.__widget) { element = element.parentElement || element.parentNode; // Fx < 9 compat } ...
javascript
{ "resource": "" }
q57075
train
function (macro) { /* must not be already linked */ this.$assert(299, this._cfg.tplDiv == null); /* must not have already been called */ this.$assert(301, this._mainSection == null); // run the section var section = this.getRefreshedSection({ ...
javascript
{ "resource": "" }
q57076
train
function (tplDiv) { var params = this._cfg; /* check parameter: */ this.$assert(320, tplDiv != null); /* must not be already linked: */ this.$assert(322, params.tplDiv == null); /* must already have a markup waiting to be linked: */ thi...
javascript
{ "resource": "" }
q57077
train
function (tplDiv) { if (tplDiv && tplDiv.setAttribute) { tplDiv.setAttribute("_template", this.tplClasspath); tplDiv.__template = this._tpl; tplDiv.__moduleCtrl = (this.moduleCtrlPrivate ? this.moduleCtrlPrivate : this.moduleCtrl); tplDiv.__dat...
javascript
{ "resource": "" }
q57078
train
function (tplDiv) { if (tplDiv) { tplDiv.__data = null; tplDiv.__moduleCtrl = null; tplDiv.__template = null; } }
javascript
{ "resource": "" }
q57079
train
function (args) { // PROFILING // var profilingId = this.$startMeasure("Generate markup for " + this.tplClasspath); var validatorParam = { json : args, beanName : "aria.templates.CfgBeans.GetRefreshedSectionCfg" }; ariaCoreJsonValidator.nor...
javascript
{ "resource": "" }
q57080
train
function (out) { this._out = out; var macrolibs = this._macrolibs || []; for (var i = 0, l = macrolibs.length; i < l; i++) { macrolibs[i]._setOut(out); } }
javascript
{ "resource": "" }
q57081
train
function (out, args) { var sections = args.sections; for (var i = 0, l = sections.length; i < l; i++) { this.__$insertSection(null, sections[i]); } }
javascript
{ "resource": "" }
q57082
train
function (callback, options) { if (this._out != null) { // calling refresh while the HTML is being generated is not permitted this.$logError(this.INVALID_STATE_FOR_REFRESH, [this.tplClasspath]); return null; } var out = new ariaTemplate...
javascript
{ "resource": "" }
q57083
train
function (section, skipInsertHTML, refreshArgs) { // PROFILING // var profilingId = this.$startMeasure("Inserting section in DOM from " + // PROFILING // this.tplClasspath); var differed; var params = this._cfg; var tpl = this._tpl; var domElt = se...
javascript
{ "resource": "" }
q57084
train
function (evt) { if (evt) { var src = evt.src, differed = this._differed; if (differed) { ariaUtilsArray.remove(differed, src); } } if (!differed || !differed.length) { this._differed = null; ...
javascript
{ "resource": "" }
q57085
train
function (baseId) { baseId = this._id + "_" + baseId.replace(/\+/g, ""); // Calculate and return the new id var prefixIds = this._prefixIds; var id = prefixIds[baseId] = (prefixIds[baseId] || 0) + 1; return baseId + "_auto_" + id; }
javascript
{ "resource": "" }
q57086
train
function (id) { var id = id + ""; if (id && id.indexOf("+") != -1) { if (Aria.testMode) { return this.$getAutoId(id); } return null; } return this.$getId(id); }
javascript
{ "resource": "" }
q57087
train
function () { var res = this._persistentStorage; if (res == null) { if (this.data) { res = this.data[Aria.FRAMEWORK_PREFIX + "persist::" + this.tplClasspath]; if (res == null) { res = {}; this...
javascript
{ "resource": "" }
q57088
train
function (idArray) { ariaUtilsDelegate.ieFocusFix(); var idToFocus; if (ariaUtilsType.isArray(idArray)) { idArray = idArray.slice(0); idToFocus = idArray.shift(); } else { idToFocus = idArray; idArray = []; ...
javascript
{ "resource": "" }
q57089
train
function (evt) { var reloading = evt.reloadingObject; var tmpCfg = this._getReloadCfg(); var isUsingModuleData = reloading && (this.moduleCtrl.getData() == tmpCfg.data); Aria.disposeTemplate(tmpCfg.div); // dispose the old template if (reloading) { ...
javascript
{ "resource": "" }
q57090
train
function () { var container = this.getContainerDiv(); var origCP = this._cfg.origClasspath ? this._cfg.origClasspath : this._cfg.classpath; var tmpCfg = { classpath : origCP, width : this._cfg.width, height : this._cfg.height, ...
javascript
{ "resource": "" }
q57091
train
function (tmpCfg, callback) { var div = tmpCfg.div; // check if the div is still in the dom // (because it could be inside a template which was refreshed, so no longer in the dom) if (!ariaUtilsDom.isInDom(div)) { this.$callback(callback); ...
javascript
{ "resource": "" }
q57092
train
function (onlyCSSDep) { var classes = this._cssClasses; if (!classes) { if (this._cfg.isRootTemplate) { // PTR 05086835: load the global CSS here, and remember that it was loaded var deps = ['aria.templates.GlobalStyle']; ...
javascript
{ "resource": "" }
q57093
train
function (status, id) { this.$assert(1200, id != null); if (status) { this.__loadingOverlays.push(id); } else { ariaUtilsArray.remove(this.__loadingOverlays, id); } }
javascript
{ "resource": "" }
q57094
train
function () { var scrollPositions = null; var containerDiv = this.getContainerDiv(); if (containerDiv) { scrollPositions = { scrollLeft : containerDiv.scrollLeft, scrollTop : containerDiv.scrollTop }; ...
javascript
{ "resource": "" }
q57095
train
function (scrollPositions) { var containerDiv = this.getContainerDiv(); if (containerDiv && scrollPositions) { if (scrollPositions.hasOwnProperty('scrollLeft') && scrollPositions.scrollLeft != null) { containerDiv.scrollLeft = scrollPositions.scrollLeft; ...
javascript
{ "resource": "" }
q57096
train
function () { this.$DropDownTextInput._checkCfgConsistency.call(this); var opt = this._cfg.options; var values = []; var dupValues = []; var map = {}; for (var count = 0; count < opt.length; count++) { if (map[opt[count].value]) { ...
javascript
{ "resource": "" }
q57097
train
function (propertyName, newValue, oldValue) { if (propertyName === "options") { this.controller.setListOptions(newValue); var report = this.controller.checkValue(null); this._reactToControllerReport(report, { stopValueProp : true ...
javascript
{ "resource": "" }
q57098
train
function () { var bindings = this._cfg.bind; var isBound = false; // it doesn't make sense to bind both index and value, // so we just state that the index takes precedence on the value if (bindings.selectedIndex) { var index = this._transform...
javascript
{ "resource": "" }
q57099
train
function () { if (!this.options) { this.options = []; if (this._domElt.options) { for (var i = 0, l = this._domElt.options.length; i < l; i++) { var elementToPush = { value : this._domElt.options[i].value...
javascript
{ "resource": "" }