_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
52
373k
language
stringclasses
1 value
meta_information
dict
q57200
train
function (popup) { var curZIndex = popup.getZIndex(); var newBaseZIndex = this.currentZIndex; if (curZIndex === newBaseZIndex) { // already top most, nothing to do in any case! return; } // gets all p...
javascript
{ "resource": "" }
q57201
train
function (event) { var domEvent = /** @type aria.DomEvent */ new ariaDomEvent(event), target = /** @type HTMLElement */ domEvent.target; if (this.openedPopups.length === 0) { domEvent.$dispose(); return; ...
javascript
{ "resource": "" }
q57202
train
function (event) { var domEvent = /** @type aria.DomEvent */ new ariaDomEvent(event); var fromTarget = /** @type HTMLElement */ domEvent.target; var toTarget = /** @type HTMLElement */ domEvent.relatedTarget; ...
javascript
{ "resource": "" }
q57203
train
function (event) { var domEvent = /** @type aria.DomEvent */ new ariaDomEvent(event); // Retrieve the dom target var target = /** @type HTMLElement */ domEvent.target; // Close first popup on the stack that can be closed ...
javascript
{ "resource": "" }
q57204
train
function (popup) { if (utilsArray.isEmpty(this.openedPopups)) { this.connectEvents(); } if (popup.modalMaskDomElement) { if (this.modalPopups === 0) { this.connectModalEvents(); this.$...
javascript
{ "resource": "" }
q57205
train
function (popup) { var openedPopups = this.openedPopups; utilsArray.remove(openedPopups, popup); if (popup.modalMaskDomElement) { this.modalPopups -= 1; if (this.modalPopups === 0) { this.disconnectModalEvent...
javascript
{ "resource": "" }
q57206
train
function (popup) { if (utilsArray.contains(this.openedPopups, popup)) { utilsArray.remove(this.openedPopups, popup); } if (utilsArray.contains(this.popups, popup)) { utilsArray.remove(this.popups, popup); } ...
javascript
{ "resource": "" }
q57207
train
function (domElement) { var popups = this.popups; for (var i = 0, l = popups.length; i < l; i++) { var curPopup = popups[i]; if (curPopup.domElement == domElement) { return curPopup; } } ...
javascript
{ "resource": "" }
q57208
train
function (evt) { if (this._inOnBoundPropertyChange) { return; } if (evt.name == "update") { if (evt.properties["startDate"]) { this.setProperty("startDate", this._subTplData.settings.startDate); } } else ...
javascript
{ "resource": "" }
q57209
train
function () { var res = []; var cfg = this._cfg; if (cfg.fromDate || cfg.toDate) { var cssPrefix = "x" + this._skinnableClass + "_" + this._cfg.sclass; res.push({ fromDate : cfg.fromDate || cfg.toDate, toDate : c...
javascript
{ "resource": "" }
q57210
train
function (propertyName, newValue, oldValue) { this._inOnBoundPropertyChange = true; try { if (propertyName == "startDate") { this._subTplModuleCtrl.navigate({}, { date : newValue }); } else if (proper...
javascript
{ "resource": "" }
q57211
train
function (domEvt) { var domElt = this.getDom(); if (this.sendKey(domEvt.charCode, domEvt.keyCode)) { domEvt.preventDefault(true); domElt.focus(); } }
javascript
{ "resource": "" }
q57212
train
function () { this._plannedFocusUpdate = null; if (this._focusStyle == this._hasFocus) { // nothing to do! return; } var moduleCtrl = this._subTplModuleCtrl, dom = this.getDom(); if (moduleCtrl && dom && this._cfg.tabIndex != nu...
javascript
{ "resource": "" }
q57213
train
function (charCode, keyCode) { var moduleCtrl = this._subTplModuleCtrl; if (moduleCtrl) { var value = this._subTplData.settings.value; if ((keyCode == 13 || keyCode == 32) && value) { // SPACE or ENTER -> call dateSelect thi...
javascript
{ "resource": "" }
q57214
train
function (options, storage, throwIfMissing) { this.$AbstractStorage.constructor.call(this, options); /** * Type of html5 storage. E.g. localStorage, sessionStorage * @type String */ this.type = storage; /** * Keep a reference to the global storage ob...
javascript
{ "resource": "" }
q57215
train
function (event) { // In FF 3.6 this event is raised also inside the same window if (aria.storage.EventBus.stop) { return; } var isInteresting = this.namespace ? event.key.substring(0, this.namespace.length) === this.namespace ...
javascript
{ "resource": "" }
q57216
train
function () { if (!this.storage) { return; } var listeners = !!this._listeners; var registeredBrowserEvent = !!this._browserEventCb; if (listeners !== registeredBrowserEvent) { if (listeners) { this._browser...
javascript
{ "resource": "" }
q57217
train
function () { this.$Test._endTest.call(this); this.checkExpectedEventListEnd(); this.resetClassOverrides(); this.assertLogsEmpty(false, false); this._assertCount = 0; this._currentTestName = ''; this._isFini...
javascript
{ "resource": "" }
q57218
train
function (value, optMsg) { this._assertCount++; this._totalAssertCount++; if (value !== true) { var msg = "Assert #" + this._assertCount + " failed"; if (optMsg) { msg += " : " + optMsg; }...
javascript
{ "resource": "" }
q57219
train
function (errorMsg, count) { var res = null; var logAppender = this._logAppender; var logs = logAppender.getLogs(), errFound = false, newLogs = []; if (!errorMsg) { this.assertTrue(false, "assertErrorInLogs was called with a null error ...
javascript
{ "resource": "" }
q57220
train
function (evtName) { for (var i = 0; i < this.evtLogs.length; i++) { if (this.evtLogs[i].name == evtName) { return this.evtLogs[i]; } } return null; }
javascript
{ "resource": "" }
q57221
train
function () { if (this._expectedEventsList != null) { this.$raiseEvent({ name : "failure", testClass : this.$classpath, testState : this._currentTestName, description : 'Not all expected e...
javascript
{ "resource": "" }
q57222
train
function (initialClass, mockClass) { if (this._overriddenClasses == null) { this._overriddenClasses = {}; } var cacheKey = Aria.getLogicalPath(initialClass, ".js", true); var clsInfos = this._overriddenClasses[initialClass]; ...
javascript
{ "resource": "" }
q57223
train
function () { if (this._overriddenClasses != null) { for (var i in this._overriddenClasses) { var clsInfos = this._overriddenClasses[i]; // restore the global classpath to point to the original var ns = Aria.nsp...
javascript
{ "resource": "" }
q57224
train
function () { if (this._isProcessing) { return; } this.$assert(33, this._logicalPaths.length > 0); this._isProcessing = true; (require("./IO")).asyncRequest({ sender : { classpath : this.$classpath, ...
javascript
{ "resource": "" }
q57225
train
function (args, ex) { if (ex) { this.$logError(this.EXCEPTION_CREATING_MODULECTRL, [args.desc.classpath], ex); } this.$callback(args.cb, { error : true }); }
javascript
{ "resource": "" }
q57226
train
function (desc, cb, skipInit) { var args = { desc : desc, cb : cb, skipInit : skipInit }; createModuleCtrl.call(this, args); }
javascript
{ "resource": "" }
q57227
train
function (moduleCtrlPrivate, subModulesArray, cb) { var res = getModulePrivateInfoWithCheck(moduleCtrlPrivate, "loadSubModules"); if (!res) { return this.$callback(cb, { error : true }); } loa...
javascript
{ "resource": "" }
q57228
train
function (moduleCtrlPrivate) { if (moduleCtrlPrivate == null) { return false; } var k = moduleCtrlPrivate[MODULECTRL_ID_PROPERTY]; var res = modulesPrivateInfo[k]; if (!res) { return false; ...
javascript
{ "resource": "" }
q57229
train
function (moduleCtrlPrivate, cb) { var res = getModulePrivateInfoWithCheck(moduleCtrlPrivate, "reloadModuleCtrl"); if (!res) { // error is already logged return; } var subModuleInfos = res.subModuleInfos; ...
javascript
{ "resource": "" }
q57230
train
function (moduleCtrlPrivate) { var k = moduleCtrlPrivate[MODULECTRL_ID_PROPERTY]; var res = getModulePrivateInfoWithCheck(moduleCtrlPrivate, "notifyModuleCtrlDisposed"); if (!res) { // error is already logged return; ...
javascript
{ "resource": "" }
q57231
train
function (widgetName, skinClass, skipError) { var widgetSkinObj = this.getSkinClasses(widgetName); if (widgetSkinObj) { if (skinClass == null) { skinClass = 'std'; } var skinClassObj = widgetSkinObj[skinClass]; i...
javascript
{ "resource": "" }
q57232
train
function (widgetName) { var widgetSkinObj = aria.widgets.AriaSkin.skinObject[widgetName]; if (!widgetSkinObj || !widgetSkinObj['aria:skinNormalized']) { var newValue = ariaWidgetsAriaSkinNormalization.normalizeWidget(widgetName, widgetSkinObj); if (newValue && new...
javascript
{ "resource": "" }
q57233
train
function (sprite, icon) { var curSprite = this.getSkinObject("Icon", sprite, true), iconContent, iconLeft = 0, iconTop = 0; if (curSprite && (iconContent = curSprite.content[icon]) !== undefined) { if (curSprite.biDimensional) { var XY = iconContent.split("_")...
javascript
{ "resource": "" }
q57234
train
function (object, images) { if (object) { var skinImageProperties = this.skinImageProperties; for (var i = 0, l = skinImageProperties.length; i < l; i++) { var propName = skinImageProperties[i]; var value = object[propName]; ...
javascript
{ "resource": "" }
q57235
train
function (color, imageurl, otherparams) { var fullUrl = ""; var gifUrl = ""; if (imageurl) { var imageFullUrl = /^(data|https?):/i.test(imageurl) ? imageurl : this.getSkinImageFullUrl(imageurl); fullUrl = "url(" + imageFullUrl + ") "; ...
javascript
{ "resource": "" }
q57236
train
function (evt) { this.$DropDownTextInput._frame_events.apply(this, arguments); if (evt.event.hasPreventDefault) { evt.event.stopPropagation(); } }
javascript
{ "resource": "" }
q57237
train
function (evt) { // when clicking on a date in the calendar, close the calendar, and save the date var date = evt.date; this._closeDropdown(); var report = this.controller.checkValue(date); this._reactToControllerReport(report); }
javascript
{ "resource": "" }
q57238
train
function (property, targetCfg) { var cfg = this._cfg, skinObj = this._skinObj; var calendarProp = 'calendar' + property.substring(0, 1).toUpperCase() + property.substring(1); targetCfg[property] = (typeof cfg[calendarProp] != 'undefined') ? cfg[calendarProp] ...
javascript
{ "resource": "" }
q57239
train
function (domEvtWrapper) { if (domEvtWrapper.keyCode === 32) { domEvtWrapper.charCode = 32; } if (this._isShiftF10Pressed(domEvtWrapper)) { this._toggleDropdown(); return; } this._handleKey(domEvtWrapper); ...
javascript
{ "resource": "" }
q57240
train
function (proto) { // Using push instead of resetting the reference because items are not copied from proto but from the // parameter of tplScriptDefinition directly proto.ICONS.push({ type : ariaUtilsData.TYPE_ERROR, icon : "std:error" }, ...
javascript
{ "resource": "" }
q57241
train
function () { var messageTypes = this.data.messageTypes; var res = this.DEFAULT_ICON; var icons = this.ICONS; for (var i = 0, l = icons.length; i < l; i++) { var curIcon = icons[i]; if (messageTypes[curIcon.type] > 0) { ...
javascript
{ "resource": "" }
q57242
train
function (msg) { if (this.data.displayCodes && (msg.code || msg.code === 0)) { return msg.localizedMessage + " (" + msg.code + ")"; } return msg.localizedMessage; }
javascript
{ "resource": "" }
q57243
train
function (pageId, moduleId) { var isCommon = (moduleId.indexOf("common:") != -1); var refpath = this.buildModuleRefpath(moduleId.replace(/^common:/, ""), isCommon, pageId); return this._utils.resolvePath(refpath, this); }
javascript
{ "resource": "" }
q57244
train
function (pageId, modulesDescription, callback) { var definitions = []; var descriptions = []; var modules, refpath, isCommon, def; var loopArray = [{ modules : modulesDescription.page, isCommon : false }...
javascript
{ "resource": "" }
q57245
train
function (args) { var modules = args.modules; for (var i = 0; i < modules.length; i += 1) { var services = modules[i].services, refpath = modules[i].refpath, moduleInstance = this._utils.resolvePath(refpath, this); if (services) { for (var serv...
javascript
{ "resource": "" }
q57246
train
function (modRefpaths) { var refpath; for (var i = 0, len = modRefpaths.length; i < len; i++) { refpath = modRefpaths[i]; this._disconnectModuleBindings(refpath); this.disposeSubModule(this._utils.resolvePath(refpath, this)); if (th...
javascript
{ "resource": "" }
q57247
train
function (pageId) { var modRefpaths = (pageId && this._modulesPaths.page[pageId]) ? this._modulesPaths.page[pageId] : []; this._unloadModules(modRefpaths); delete this._modulesPaths.page[pageId]; }
javascript
{ "resource": "" }
q57248
train
function () { this.unloadCommonModules(); var pageModRefpaths = this._modulesPaths.page; for (var pageId in pageModRefpaths) { if (pageModRefpaths.hasOwnProperty(pageId)) { this.unloadPageModules(pageId); } } }
javascript
{ "resource": "" }
q57249
train
function (pageId, isCommon, refpath) { var modulesPath = this._modulesPaths; if (isCommon) { modulesPath.common.push(refpath); return; } modulesPath.page[pageId] = modulesPath.page[pageId] || []; modulesPath.page[pageId].push(re...
javascript
{ "resource": "" }
q57250
train
function (refpath) { var bindings = this._bindings[refpath]; if (bindings) { for (var bind in bindings) { if (bindings.hasOwnProperty(bind)) { var moduleDescription = this._getModuleDataDescription(refpath, bind); ...
javascript
{ "resource": "" }
q57251
train
function () { var bindings = this._bindings; for (var refpath in bindings) { if (bindings.hasOwnProperty(refpath)) { var moduleBindings = bindings[refpath]; for (var bind in moduleBindings) { if (moduleBindings.hasOw...
javascript
{ "resource": "" }
q57252
train
function (refpath, bind) { var moduleData = this._utils.resolvePath(refpath, this._data); // If the path is not present in the module, set it to null if (!this._utils.resolvePath(bind, moduleData)) { this._pathUtils.setValue(moduleData, bind, null); } ...
javascript
{ "resource": "" }
q57253
train
function (res, args) { var newValue = args.moduleDescription.container[args.moduleDescription.property]; var boundTo = args.boundTo; if (this._utils.resolvePath(boundTo.path, boundTo.storage) == null) { this._pathUtils.setValue(boundTo.storage, boundTo.path, null); ...
javascript
{ "resource": "" }
q57254
train
function (event) { if (this._cfg.autoFill && event.domEvent) { // Closing the dropdown after typing is not a domEvent var value = this.controller.getDataModel().value; if (value != null) { var report = this.controller.checkDropdownValue(val...
javascript
{ "resource": "" }
q57255
train
function(event, cb) { if (this._cfg.waiAria) { var field = this.getTextInputField(); var listWidget = this.controller.getListWidget(); var ariaActiveDescendant = listWidget ? listWidget.getSelectedOptionDomId() : null; if (ariaActiveDescendant ...
javascript
{ "resource": "" }
q57256
train
function () { if (this._cfg.waiAria) { var field = this.getTextInputField(); field.removeAttribute("aria-owns"); var dropDownIcon = this._getDropdownIcon(); if (dropDownIcon) { dropDownIcon.setAttribute("aria-expanded", "fa...
javascript
{ "resource": "" }
q57257
train
function (conf) { this.conf = conf; if (conf.waiAria == null) { conf.waiAria = environment.isWaiAria(); } ariaCoreJsonValidator.normalize({ json : conf, beanName : "aria.popups.Beans.PopupConf" }); ...
javascript
{ "resource": "" }
q57258
train
function () { var document = this._document; var cfg = this.conf; var div = document.createElement("div"); div.style.cssText = "position:absolute;top:-15000px;left:-15000px;"; document.body.appendChild(div); var html = [ "<div ", ...
javascript
{ "resource": "" }
q57259
train
function (className) { var document = this._document; var div = document.createElement("div"); div.className = className || "xModalMask-default"; div.style.cssText = "position:absolute;top:-15000px;left:-15000px;visibility:hidden;display:block;"; return this.p...
javascript
{ "resource": "" }
q57260
train
function (size) { var position, isInViewSet; if (this.conf.maximized) { var offset = this.conf.offset; var containerScroll = this.popupContainer.getContainerScroll(); position = { top : containerScroll.scrollTop - offset.top, ...
javascript
{ "resource": "" }
q57261
train
function () { if (!this.domElement) { return; } if (this.conf.animateOut) { this._startAnimation(this.conf.animateOut, { from : this.domElement, type : 1 }, true); } else { ...
javascript
{ "resource": "" }
q57262
train
function (conf) { if (conf) { if ("center" in conf) { this.conf.center = conf.center; } if ("absolutePosition" in conf) { this.setPositionAsReference(conf.absolutePosition); } } th...
javascript
{ "resource": "" }
q57263
train
function (domEvent) { if (this.conf.closeOnMouseClick) { var event = { name : "onMouseClickClose", cancelClose : false, domEvent : domEvent }; this.$raiseEvent(event); // timeout need...
javascript
{ "resource": "" }
q57264
train
function (domEvent) { if (this.conf.closeOnMouseOut) { if (!this.conf.closeOnMouseOutDelay) { // If delay is not set // OR is equal to zero this.close(domEvent); } else { this.cancelMouseOutTimer(); ...
javascript
{ "resource": "" }
q57265
train
function (element) { var size = ariaUtilsSize.getSize(element), domUtil = ariaUtilsDom; domUtil.scrollIntoView(element); var position = this.popupContainer.calculatePosition(element); this.reference = element; this.referencePosition = position; th...
javascript
{ "resource": "" }
q57266
train
function (section) { // PROFILING // var profilingId = this.$startMeasure("Inserting // section in DOM"); ariaUtilsDom.replaceHTML(this.domElement, section.html); // var sectionDomElement = this.domElement.firstChild; // Maybe the initWidget should be done a...
javascript
{ "resource": "" }
q57267
train
function (zIndex, modalMaskZIndex) { var computedStyle = this.computedStyle; if (computedStyle) { computedStyle.zIndex = zIndex; if (modalMaskZIndex != null) { this.modalMaskZIndex = modalMaskZIndex; } this.refre...
javascript
{ "resource": "" }
q57268
train
function (path, inside) { if (ariaUtilsType.isString(path)) { path = this.parse(path); } inside = inside ? inside : Aria.$window; if (ariaUtilsType.isArray(path)) { for (var index = 0, param, len = path.length; index < len; index++) { ...
javascript
{ "resource": "" }
q57269
train
function (path) { // edge case if (!path) { return []; } // first letter will give the type var first = path.charAt(0), closing, part, next, nextParse; // case brackets if (first == "[") { closing = pat...
javascript
{ "resource": "" }
q57270
train
function (pathParts) { var path = [pathParts[0]]; for (var index = 1, len = pathParts.length; index < len; index++) { path.push("[\"" + ("" + pathParts[index]).replace(/"/gi, '\\"') + "\"]"); } return path.join(''); }
javascript
{ "resource": "" }
q57271
train
function (evt) { if (!evt || !evt.changedProperties || ArrayUtils.contains(evt.changedProperties, "contextualMenu")) { Aria.load({ classes : ["aria.tools.contextual.ContextualMenu"] }); } }
javascript
{ "resource": "" }
q57272
train
function (event) { var containerSize = this._popupContainer.getClientSize(); if (!this._popup.isOpen || containerSize.width <= 0 || containerSize.height <= 0) { // do nothing if the container is not visible // or if the popup was manually hidden from external code...
javascript
{ "resource": "" }
q57273
train
function (cfg) { // Note also some related operations are done beforehand, in _registerBindings if (!("macro" in cfg) && !("bind" in cfg && "macro" in cfg.bind)) { this.$logError(this.MISSING_CONTENT_MACRO); } var appEnvDialogSettings = aria.widgets.enviro...
javascript
{ "resource": "" }
q57274
train
function (out) { var cfg = this._cfg; var containerSize = this._popupContainer.getClientSize(); // constrain dialog to containerSize var math = ariaUtilsMath; var maxHeight, maxWidth; if (this._cfg.maximized) { maxHeight = containe...
javascript
{ "resource": "" }
q57275
train
function (propertyName, newValue, oldValue) { if (propertyName === "visible") { this._cfg.visible = newValue; if (newValue) { this.open(); } else { this.close(); } } else if (propertyName ===...
javascript
{ "resource": "" }
q57276
train
function () { var cfg = this._cfg; var waiEscapeMsg = cfg.waiEscapeMsg; var confirmed = !(cfg.waiAria && waiEscapeMsg); if (!confirmed) { var now = new Date().getTime(); confirmed = this._firstEscapeTime && (now - this._firstEscapeTime) <= ...
javascript
{ "resource": "" }
q57277
train
function () { // --------------------------------------------------- destructuring var cfg = this._cfg; var modal = cfg.modal; var waiAria = cfg.waiAria; // ------------------------------------------------------ processing // refreshParams ----...
javascript
{ "resource": "" }
q57278
train
function () { var cfg = this._cfg; var getDomElementChild = ariaUtilsDom.getDomElementChild; this._domElt = this._popup.domElement; var titleBarDomElt = this._titleBarDomElt = getDomElementChild(this._domElt, 0, titleLast); this._titleDomElt = getDomElementChi...
javascript
{ "resource": "" }
q57279
train
function () { if (aria.utils.dragdrop && aria.utils.dragdrop.Drag) { this._createDraggable(); } else { Aria.load({ classes : ["aria.utils.dragdrop.Drag"], oncomplete : { fn : this._createDraggable, ...
javascript
{ "resource": "" }
q57280
train
function () { if (aria.utils.resize && aria.utils.resize.Resize) { this._createResize(); } else { Aria.load({ classes : ["aria.utils.resize.Resize"], oncomplete : { fn : this._createResize, ...
javascript
{ "resource": "" }
q57281
train
function () { var cfg = this._cfg; var modal = cfg.modal; if (this._showBack != null) { this._showBack(); this._showBack = null; } if (this._popup) { this.waiReadText(cfg.waiCloseMsg); this._de...
javascript
{ "resource": "" }
q57282
train
function () { if (this._popup && this._popup.isOpen) { this._popup.moveTo({ center : this._cfg.center, absolutePosition : { left : this._cfg.xpos, // in maximized mode, positioning is handled by the Popup itself ...
javascript
{ "resource": "" }
q57283
train
function () { if (!this._cfg.maximized) { // in maximized mode, positioning is handled by the Popup itself var position = this._popupContainer.calculatePosition(this._domElt); this.setProperty("xpos", position.left); this.setProperty("ypos", position.top); ...
javascript
{ "resource": "" }
q57284
train
function () { var opts = this._optionsBeforeMaximize; if (!opts) { return; } // reapply the old options if (this._popup) { this._popup.conf.maximized = false; this._popup.conf.offset = this._shadowsZero; ...
javascript
{ "resource": "" }
q57285
train
function (cfg) { return { center : cfg.center, width : cfg.width, height : cfg.height, maxWidth : cfg.maxWidth, maxHeight : cfg.maxHeight, xpos : cfg.xpos, ypos : cfg.ypos, contain...
javascript
{ "resource": "" }
q57286
train
function () { if (!this._popup || !this._popup.isOpen || this._draggable) { // maybe the popup was closed while loading aria.utils.dragdrop.Drag, // or it was closed and re-opened very quickly (and we should avoid // creating the _draggable object twice) ...
javascript
{ "resource": "" }
q57287
train
function () { if (!this._popup || !this._popup.isOpen || this._resizable) { // maybe the popup was closed while loading aria.utils.resize.Resize, // or it was closed and re-opened very quickly (and we should avoid // creating the _resizable object twice) ...
javascript
{ "resource": "" }
q57288
train
function () { // this.updatePosition(); if (this._popup) { this._popup.refreshProcessingIndicators(); } this.setProperty("center", false); this._calculatePosition(); this.updatePosition(); this.evalCallback(this._cfg.ond...
javascript
{ "resource": "" }
q57289
train
function () { this._calculatePosition(); this._calculateSize(); this.setProperty("center", false); if (this._popup) { this._onDimensionsChanged(); this._popup.refreshProcessingIndicators(); } this.evalCallback(this._...
javascript
{ "resource": "" }
q57290
train
function () { if (!this._draggable) { return; } this._draggable.$removeListeners({ "dragstart" : { fn : this._onDragStart, scope : this }, "move" : { fn : this...
javascript
{ "resource": "" }
q57291
train
function () { var handleArr = this._handlesArr; if (!handleArr || !this._resizable) { return; } for (var i = 0, ii = handleArr.length; i < ii; i++) { var cursor = handleArr[i]; if (this._resizable[cursor]) { ...
javascript
{ "resource": "" }
q57292
train
function () { var cache = this._cache; var expirationTime = ((new Date()).getTime() - this._expiresAfter * 1000); for (var url in cache) { if (cache.hasOwnProperty(url) && cache[url].age < expirationTime) { delete cache[url]; } ...
javascript
{ "resource": "" }
q57293
callNormalizedCallback
train
function callNormalizedCallback (callback, arg) { callback.fn.call(callback.scope, arg, callback.args); }
javascript
{ "resource": "" }
q57294
typeCallback
train
function typeCallback (callbackArray) { this._typeCallback = null; var callback; for (var i = 0, count = callbackArray.length; i < count; i++) { callback = this.$normCallback.call(this._context._tpl, callbackArray[i]); callNormalizedCallback(callback, this._domElt.value);...
javascript
{ "resource": "" }
q57295
keyDownToType
train
function keyDownToType (event, callbackArray) { this._typeCallback = ariaCoreTimer.addCallback({ fn : typeCallback, scope : this, delay : 12, args : callbackArray }); }
javascript
{ "resource": "" }
q57296
keyDownCallback
train
function keyDownCallback (event) { if (this._hasPlaceholder) { if (!ariaUtilsArray.contains(specialKeys, event.keyCode)) { this._removePlaceholder(); } else { event.preventDefault(); } } }
javascript
{ "resource": "" }
q57297
train
function (listeners, context) { if (listeners.type) { this._chainListener(listeners, "keydown", { fn : keyDownToType, scope : this, args : ariaUtilsType.isArray(listeners.type) ? listeners.type : [listeners.type]...
javascript
{ "resource": "" }
q57298
train
function () { if (this._hasPlaceholder) { var element = this._domElt; var cssClass = new aria.utils.ClassList(element); element.value = ""; this._hasPlaceholder = false; cssClass.remove('placeholder'); ...
javascript
{ "resource": "" }
q57299
train
function (element) { var pos = { start : 0, end : 0 }; if ("selectionStart" in element) { // w3c standard, available in all but IE<9 pos.start = element.selectionStart; pos.end = element.selectionEnd; ...
javascript
{ "resource": "" }