_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
52
373k
language
stringclasses
1 value
meta_information
dict
q56900
train
function (requestPath, params) { if (!params || params.length === 0) { // Nothing to do if there are no parameters return requestPath; } // Flatten the array of global parameters var flat = []; for (var i = 0, len = params.leng...
javascript
{ "resource": "" }
q56901
train
function (requestPath, params) { requestPath = requestPath || ""; if (!params) { // Nothing to do if there are no parameters return requestPath; } var idx = requestPath.indexOf('?'); /* * Just in case we want to c...
javascript
{ "resource": "" }
q56902
train
function (actionName) { actionName = actionName || ""; var idx = actionName.indexOf("?"); var object = { name : "", params : "" }; if (idx < 0) { object.name = actionName; } else { o...
javascript
{ "resource": "" }
q56903
train
function () { if (!this._urlService) { var cfg = ariaModulesUrlServiceEnvironmentUrlService.getUrlServiceCfg(), actionUrlPattern = cfg.args[0], i18nUrlPattern = cfg.args[1]; var ClassRef = Aria.getClassRef(cfg.implementation); this._urlService = new (ClassRef)...
javascript
{ "resource": "" }
q56904
train
function () { if (!this._requestHandler) { var cfg = ariaModulesRequestHandlerEnvironmentRequestHandler.getRequestHandlerCfg(); this._requestHandler = Aria.getClassInstance(cfg.implementation, cfg.args); } return this._requestHandler; }
javascript
{ "resource": "" }
q56905
train
function () { var val = this._value; if (val >= this._switchThreshold) { this._onContainer.style.width = this._cfg.width + "px"; this._onContainer.style.left = "0px"; this._offContainer.style.width = "0px"; this._value = 1; ...
javascript
{ "resource": "" }
q56906
train
function () { var binding = this._binding; if (binding) { ariaUtilsJson.setValue(binding.inside, binding.to, this._value, this._bindingCallback); } }
javascript
{ "resource": "" }
q56907
train
function () { var dragVal = this._slider.offsetLeft; this._onContainer.style.width = (this._sliderWidth + dragVal) + "px"; this._offContainer.style.left = dragVal + "px"; this._offContainer.style.width = (this._cfg.width - dragVal) + "px"; }
javascript
{ "resource": "" }
q56908
train
function () { var pos = this._savedX, newValue = Math.max(pos / this._railWidth, 0); if (newValue !== this._value) { this._value = newValue; this._storeValue(); } else { this._notifyDataChange(); } return; ...
javascript
{ "resource": "" }
q56909
train
function (applySwitchMargins) { var value; var binding = this._binding; if (!binding) { return; } value = binding.inside[binding.to]; if (value == null) { value = 0; } if (value < 0) { ...
javascript
{ "resource": "" }
q56910
train
function (evt) { if (evt.type === "tap") { var cfg = this._cfg; if (!cfg) { // Widget already disposed return true; } if ((cfg.tapToToggle || cfg.tapToMove) && this._isSwitch) { // Wi...
javascript
{ "resource": "" }
q56911
train
function (container, cfg) { var localMapStatus = this.mapManager.getMapStatus(cfg.id); var mapDom = mapDoms[cfg.id]; if (localMapStatus === null) { this._createMap(container, cfg); } else { container.appendChild(mapD...
javascript
{ "resource": "" }
q56912
train
function (evt) { var args = mapReadyHandlerArgs[evt.mapId]; if (args) { this._triggerLoadingIndicator(args.container, false); delete mapReadyHandlerArgs[evt.mapId]; this._listeners--; if (this._listeners === ...
javascript
{ "resource": "" }
q56913
train
function (container, cfg) { var id = cfg.id; if (cfg.loadingIndicator) { this._triggerLoadingIndicator(container, false); } var mapDom = mapDoms[id]; if (mapDom) { var parent = mapDom.parentNode; ...
javascript
{ "resource": "" }
q56914
connectMouseEvents
train
function connectMouseEvents (scope) { var root = (aria.core.Browser.isIE7 || aria.core.Browser.isIE8) ? Aria.$window.document.body : Aria.$window; eventUtil.addListener(root, "mousemove", { fn : scope._onMouseMove, scope : scope }); eventUtil.addListener(root, "mo...
javascript
{ "resource": "" }
q56915
disconnectMouseEvents
train
function disconnectMouseEvents (scope) { var root = (aria.core.Browser.isIE7 || aria.core.Browser.isIE8) ? Aria.$window.document.body : Aria.$window; eventUtil.removeListener(root, "mousemove", { fn : scope._onMouseMove, scope : scope }); eventUtil.removeListener(...
javascript
{ "resource": "" }
q56916
findByAttribute
train
function findByAttribute (start, attribute, maxDepth, stopper) { var target = start, expandoValue; while (maxDepth && target && target != stopper) { if (target.attributes) { var expandoValue = target.attributes[attribute]; if (expandoValue) { ...
javascript
{ "resource": "" }
q56917
train
function () { eventUtil.addListener(Aria.$window.document.body, "mousedown", { fn : this._onMouseDown, scope : this }); eventUtil.addListener(Aria.$window.document.body, "touchstart", { fn : this._onMouseDown, ...
javascript
{ "resource": "" }
q56918
train
function () { eventUtil.removeListener(Aria.$window.document.body, "mousedown", { fn : this._onMouseDown, scope : this }); eventUtil.removeListener(Aria.$window.document.body, "touchstart", { fn : this._onMouseDo...
javascript
{ "resource": "" }
q56919
train
function (gesture, id) { if (this._idList[gesture]) { var element = this._idList[gesture][id]; if (gesture == "drag" && element && element == this._activeDrag) { // the element being dragged has been disposed, // ter...
javascript
{ "resource": "" }
q56920
train
function (evt) { var event = new ariaDomEvent(evt); connectMouseEvents(this); if (evt.type === "touchstart") { // The position of touch events is not determined correctly by clientX/Y var elementPosition = ariaTouchEvent.getPositi...
javascript
{ "resource": "" }
q56921
train
function (evt) { var stopper = Aria.$window.document.body; var elementId = findByAttribute(evt.target, this.DRAGGABLE_ATTRIBUTE, this.maxDepth, stopper); if (!elementId) { return; } var candidate = this._idList.drag[ele...
javascript
{ "resource": "" }
q56922
train
function (coordinates) { var element = this._candidateForDrag; if (!element) { return; } this._activeDrag = element; this._dragStarted = true; element.start(coordinates); }
javascript
{ "resource": "" }
q56923
train
function (evt) { var event = new ariaDomEvent(evt); if (event.type === "touchmove") { var elementPosition = ariaTouchEvent.getPositions(evt); if (elementPosition.length === 1) { event.clientX = elementPosition[0].x; ...
javascript
{ "resource": "" }
q56924
train
function (evt) { this._dragStartPosition = null; disconnectMouseEvents(this); var element = this._activeDrag; if (element) { element.end(); } this._candidateForDrag = null; this._activeD...
javascript
{ "resource": "" }
q56925
train
function (element, overlay) { // --------------------------------------------------- destructuring var window = Aria.$window; var document = window.document; var body = document.body; // ------------------------------------------------- local functions ...
javascript
{ "resource": "" }
q56926
train
function (className, msg, level) { var logObject = { classpath : className, msg : msg, level : level, time : new Date().getTime() }; this._logStack.push(logObject); this._processStack(); }
javascript
{ "resource": "" }
q56927
train
function () { // The strategy to send logs is either after a certain delay, or when the stack is bigger than ... var now = new Date().getTime(); if (this._logStack.length > this.minimumLogNb && now > this._lastLogSent + this.minimumInterval) { this._lastLogSent = new ...
javascript
{ "resource": "" }
q56928
train
function () { // stringify the json data var data = ariaUtilsJson.convertToJsonString({ logs : this._logStack }, { maxDepth : 4 }); // Send json post request ariaCoreIO.asyncRequest({ sender : { ...
javascript
{ "resource": "" }
q56929
train
function (e) { var str = ""; if (typeof e == 'undefined' || e == null) { return str; } str = "\nException"; str += "\n" + '---------------------------------------------------'; if (e.fileName) str += '\nFile: ' + e...
javascript
{ "resource": "" }
q56930
train
function (element, orientation) { if (element.style && element.color) { if (orientation == "V") { return element.leftWidth + element.rightWidth; } else if (orientation == "H") { return element.topWidth + element.bottomWidth; ...
javascript
{ "resource": "" }
q56931
train
function (allInterceptors, name, scope, fn) { for (var i in allInterceptors[name]) { if (allInterceptors[name].hasOwnProperty(i)) { __removeCallback(allInterceptors[name], i, scope, fn); } } }
javascript
{ "resource": "" }
q56932
train
function (callbacksMap, name, scope, fn, src, firstOnly) { if (callbacksMap == null) { return; // nothing to remove } var arr = callbacksMap[name]; if (arr) { var length = arr.length, removeThis = false, cb; for (var i = 0; i < length; i++) { ...
javascript
{ "resource": "" }
q56933
train
function (info) { var methodName = require("../utils/String").capitalize(info.method); var fctRef = this["on" + methodName + info.step]; if (fctRef) { return fctRef.call(this, info); } fctRef = this["on" + info.method + info.step]; if (fctRef) { re...
javascript
{ "resource": "" }
q56934
train
function (args, commonInfo, interceptorIndex) { if (interceptorIndex >= commonInfo.nbInterceptors) { // end of recursion: call the real method: return this[commonInfo.method].apply(this, args); } var interc = commonInfo.interceptors[interceptorIndex]; if (interc.r...
javascript
{ "resource": "" }
q56935
train
function (res, args) { var interc = args.interc; if (interc.removed) { // the interceptor was removed in the mean time, call the original callback directly return this.$callback(args.origCb, res); } var info = args.info; info.step = "Callback"; inf...
javascript
{ "resource": "" }
q56936
train
function (interfaceMethods, interceptor, allInterceptors) { var interceptedMethods = allInterceptors || {}; // for a callback, intercept all methods of an interface for (var i in interfaceMethods) { if (interfaceMethods.hasOwnProperty(i)) { (interceptedMethods[i] || (...
javascript
{ "resource": "" }
q56937
train
function (interfaceMethods, interceptor, allInterceptors) { var interceptedMethods = allInterceptors || {}; // for a class object, intercept specific methods for (var m in interfaceMethods) { if (interfaceMethods.hasOwnProperty(m) && __hasBeenIntercepted(m, interceptor)) { ...
javascript
{ "resource": "" }
q56938
train
function () { this.$destructor(); // call $destructor // TODO - cleanup object if (this._listeners) { this._listeners = null; delete this._listeners; } if (this.__$interceptors) { ...
javascript
{ "resource": "" }
q56939
train
function (msg, msgArgs, err) { // replaced by the true logging function when // aria.core.Log is loaded // If it's not replaced because the log is never // downloaded, at least there will be errors in the // console. if (Ari...
javascript
{ "resource": "" }
q56940
train
function (cb, res, errorId) { try { if (!cb) { return; // callback is sometimes not used } if (cb.$Callback) { return cb.call(res); } // perf optimisation...
javascript
{ "resource": "" }
q56941
train
function (cb) { var scope = cb.scope, callback; scope = scope ? scope : this; if (!cb.fn) { callback = cb; } else { callback = cb.fn; } if (typeof(callback) == 'string') { ...
javascript
{ "resource": "" }
q56942
train
function (itf, interceptor) { // get the interface constructor: var itfCstr = this.$interfaces[itf]; if (!itfCstr) { this.$logError(this.INTERFACE_NOT_SUPPORTED, [itf, this.$classpath]); return; } var...
javascript
{ "resource": "" }
q56943
train
function (itf, scope, fn) { var itfCstr = this.$interfaces[itf]; var allInterceptors = this.__$interceptors; if (!itfCstr || !allInterceptors) { return; } var itfs = itfCstr.prototype.$interfaces; // also...
javascript
{ "resource": "" }
q56944
train
function (interfaceName, methodName, args, asyncCbParam) { var interceptors; if (this.__$interceptors == null || this.__$interceptors[interfaceName] == null || (interceptors = this.__$interceptors[interfaceName][methodName]) == null) { // no in...
javascript
{ "resource": "" }
q56945
train
function (lstCfg, itfWrap) { if (this._listeners == null) { return; } var defaultScope = (lstCfg.scope) ? lstCfg.scope : null; var lsn; for (var evt in lstCfg) { if (!lstCfg.hasOwnProperty(evt)) { ...
javascript
{ "resource": "" }
q56946
train
function (scope, itfWrap) { if (this._listeners == null) { return; } // We must check itfWrap == null, so that it is not possible to unregister all the events of an object // from its interface, if they have not been registered through ...
javascript
{ "resource": "" }
q56947
train
function (position, callback) { var lastPosition = this._lastMousePosition; lastPosition.x = position.x; lastPosition.y = position.y; this._sendEvent('mousemove', position.x, position.y); this._callCallback(callback); }
javascript
{ "resource": "" }
q56948
train
function (from, to, duration, cb) { var translatedFromPosition = this._translateCoordinates(from); var translatedToPosition = this._translateCoordinates(to); this.smoothAbsoluteMouseMove(translatedFromPosition, translatedToPosition, duration, cb); }
javascript
{ "resource": "" }
q56949
train
function (from, to, duration, cb) { this.absoluteMouseMove(from, { fn : this._stepSmoothAbsoluteMouseMove, scope : this, resIndex : -1, args : { from : from, to : to, duration : durati...
javascript
{ "resource": "" }
q56950
train
function (button, cb) { var lastPosition = this._lastMousePosition; this._sendEvent('mousedown', lastPosition.x, lastPosition.y, this.BUTTONS[button]); this._callCallback(cb); }
javascript
{ "resource": "" }
q56951
train
function (keyCode, cb) { if (keyCode == this.KEYS.VK_SHIFT) { this._keyShift = true; } if (keyCode == this.KEYS.VK_CTRL) { this._keyCtrl = true; } if (typeof keyCode == "string" && this._keyShift) { keyCode = key...
javascript
{ "resource": "" }
q56952
train
function (skipBorder, icons) { var hasBorder = (skipBorder === false); if (skipBorder == "dependsOnIcon") { hasBorder = (icons.length === 0); } return hasBorder; }
javascript
{ "resource": "" }
q56953
train
function () { var window = Aria.$window; if (typeof(window.orientation) != "undefined") { // check if browser support orientation change this.screenOrientation = window.orientation; this.isPortrait = this.__isPortrait(); // start listening native event orinetationcha...
javascript
{ "resource": "" }
q56954
train
function () { this.screenOrientation = Aria.$window.orientation; this.isPortrait = this.__isPortrait(); // raise event "change" to notify about orientation change along with properties for current orientation this.$raiseEvent({ name : "change", ...
javascript
{ "resource": "" }
q56955
train
function () { var value, binding = this._binding; if (!binding) { return; } value = binding.inside[binding.to]; if (ariaUtilsType.isArray(value)) { // Constrain values to be between 0 and 1 and the first to be smaller ...
javascript
{ "resource": "" }
q56956
train
function () { var first = Math.max(0, Math.min(this.value[0], this.value[1], 1)); var second = Math.min(1, Math.max(this.value[0], this.value[1], 0)); this._savedX1 = Math.floor(first * this._railWidth); this._savedX2 = Math.ceil(second * this._railWidth + this._firstWidt...
javascript
{ "resource": "" }
q56957
train
function () { var left = this._savedX1 + this._firstWidth / 2; var widthHighlight = this._savedX2 + (this._secondWidth / 2) - left; this._highlight.style.left = left + "px"; this._highlight.style.width = widthHighlight + "px"; }
javascript
{ "resource": "" }
q56958
train
function (evt) { this._oldValue = [this.value[0], this.value[1]]; // Just store the initial position of the element to compute the move later this._initialDrag = evt.src.posX; this._initialSavedX = evt.src.id === this._firstDomId ? this._savedX1 : this._savedX2; }
javascript
{ "resource": "" }
q56959
train
function () { var left = this._savedX1, right = this._savedX2; var first = Math.max(left / this._railWidth, 0); var second = Math.min((right - this._firstWidth) / this._railWidth, 1); if (this.value[0] !== first || this.value[1] !== second) { this.value ...
javascript
{ "resource": "" }
q56960
train
function (frame, cb, options) { this.loadBootstrap({ fn : this._loadATInFrameCb1, scope : this, args : { options : options || {}, frame : frame, cb : cb } }); }
javascript
{ "resource": "" }
q56961
train
function (pattern) { var scripts = Aria.$frameworkWindow.document.getElementsByTagName("script"); for (var i = 0, l = scripts.length; i < l; i++) { var script = scripts[i]; if (script.attributes && script.attributes["src"]) { var src = script.a...
javascript
{ "resource": "" }
q56962
train
function (res, cb) { if (res.downloadFailed) { this.__onFailure(res, cb.args); } else { var fileContent = ariaCoreDownloadMgr.getFileContent(res.logicalPaths[0]); var responseJSON = ariaUtilsJson.load(fileContent); if (responseJSON)...
javascript
{ "resource": "" }
q56963
train
function (pageRequest) { var map = this.__urlMap.urlToPageId, pageId = pageRequest.pageId, url = pageRequest.url; if (pageId) { return pageId; } if (url) { var returnUrl = map[url] || map[url + "/"] || map[url.replace(/\/$/, "")]; ...
javascript
{ "resource": "" }
q56964
train
function (cfg, callback, update) { update = !!update; var keys = ariaUtilsObject.keys(cfg); if (update) { ariaUtilsJson.inject(cfg, this.applicationSettings, true); } else { if (keys.length === 0) { // reset stored appli...
javascript
{ "resource": "" }
q56965
train
function (textContent) { // String cast if (textContent !== null) { textContent = '' + textContent; } else { textContent = ''; } var dom = this.getDom(); if (dom) { var stringUtils = ariaUtilsString; ...
javascript
{ "resource": "" }
q56966
train
function (providerName, provider) { if (providers[providerName]) { this.$logError(this.DUPLICATED_PROVIDER, providerName); } else { if (ariaUtilsType.isObject(provider)) { if (this._isValidProvider(provider)) { ...
javascript
{ "resource": "" }
q56967
train
function (providerName) { this.destroyAllMaps(providerName); delete providers[providerName]; if (providerInstancesToDispose[providerName]) { providerInstancesToDispose[providerName].$dispose(); delete providerInstancesToDispose[prov...
javascript
{ "resource": "" }
q56968
train
function (provider) { var valid = true, methods = ["load", "getMap", "disposeMap"]; for (var i = 0; i < methods.length; i++) { valid = valid && provider[methods[i]] && ariaUtilsType.isFunction(provider[methods[i]]); } return valid; ...
javascript
{ "resource": "" }
q56969
train
function (res, cfg) { var providerInstance = providerInstances[cfg.provider]; providerInstance.load({ fn : this._retrieveMapInstance, scope : this, args : cfg }); }
javascript
{ "resource": "" }
q56970
train
function () { var freeTxtStatus = false, dataListContent = this._dataModel.listContent; for (var i = 0, len = dataListContent.length; i < len; i += 1) { if (this._dataModel.text === dataListContent[i].value.label) { freeTxtStatus = true; ...
javascript
{ "resource": "" }
q56971
train
function (value) { var report = new ariaWidgetsControllersReportsDropDownControllerReport(), dataModel = this._dataModel; if (value == null) { // can be null either because it bound to null or because a request is in progress dataModel.text = (this...
javascript
{ "resource": "" }
q56972
train
function (suggestions, textEntry) { var matchValueIndex = -1, suggestion; for (var index = 0, len = suggestions.length, label, ariaLabel; index < len; index += 1) { suggestion = suggestions[index]; // if it's the first exact match, store it ...
javascript
{ "resource": "" }
q56973
train
function (config, event) { return (event.altKey == !!config.alt) && (event.shiftKey == !!config.shift) && (event.ctrlKey == !!config.ctrl); }
javascript
{ "resource": "" }
q56974
train
function (event) { var specialKey = false, keyCode = event.keyCode; for (var index = 0, keyMap; index < this.selectionKeys.length; index++) { keyMap = this.selectionKeys[index]; if (this._validateModifiers(keyMap, event)) { ...
javascript
{ "resource": "" }
q56975
train
function (el) { var document = Aria.$window.document; // Need to make sure the new element has the same exact styling applied as the original element so we use // the same tag, class, style and append it to the same parent var tempSizerEl = document.createElement(el.tagN...
javascript
{ "resource": "" }
q56976
train
function (relatedTarget) { if (this.callbackID) { ariaCoreTimer.cancelCallback(this.callbackID); } if (this._popup != null) { if (!ariaUtilsDom.isAncestor(relatedTarget, this._popup.domElement)) { if (this._popup) { ...
javascript
{ "resource": "" }
q56977
train
function (fn, context) { var args = []; for (var i = 2; i < arguments.length; i++) { args.push(arguments[i]); } return function () { // need to make a copy each time var finalArgs = args.slice(0); // concat w...
javascript
{ "resource": "" }
q56978
train
function (src, dest, fnNames, prefix) { if (!prefix) { prefix = ''; } for (var index = 0, l = fnNames.length; index < l; index++) { var key = fnNames[index]; dest[prefix + key] = this.bind(src[key], src); } }
javascript
{ "resource": "" }
q56979
train
function (options) { var dataModel = this._dataModel; // normalize labels to lowerCase var sz = options.length, item; for (var i = 0; sz > i; i++) { item = options[i]; item[this.LABEL_META] = item.label.toLowerCase()...
javascript
{ "resource": "" }
q56980
train
function (includeValue) { var dataModel = this._dataModel; var report = new ariaWidgetsControllersReportsDropDownControllerReport(); report.ok = true; if (includeValue) { report.value = dataModel.value; } ...
javascript
{ "resource": "" }
q56981
train
function (displayIdx) { var dataModel = this._dataModel; var options = dataModel.listContent; if (options.length === 0) { displayIdx = -1; } else if (displayIdx >= options.length) { displayIdx = options.length - 1; ...
javascript
{ "resource": "" }
q56982
train
function (lastTypedKeys, newMatch) { var LABEL_META = this.LABEL_META; var options = this._dataModel.listContent; var keyNbr = lastTypedKeys.length; var index = this._dataModel.selectedIdx + (newMatch ? 1 : 0); // start point to search for a match ...
javascript
{ "resource": "" }
q56983
train
function (charCode, keyCode) { var dataModel = this._dataModel; var report; if (domEvent.isNavigationKey(keyCode)) { var newIdx; var validationKey = false; if (keyCode == domEvent.KC_LEFT || keyCode == domEvent.K...
javascript
{ "resource": "" }
q56984
train
function (internalValue) { var options = this._dataModel.listContent; var indexFound = -1; for (var i = 0, l = options.length; i < l; i++) { if (options[i].value == internalValue) { indexFound = i; break;...
javascript
{ "resource": "" }
q56985
train
function () { var report = new ariaWidgetsControllersReportsDropDownControllerReport(); report.displayDropDown = (this._listWidget == null); if (this._dataModel && this._dataModel.displayIdx !== this._dataModel.selectedIdx) { this._setDisplayIdx(this._...
javascript
{ "resource": "" }
q56986
train
function (tagName, propertyName) { if (!__properties.hasOwnProperty(propertyName)) { return "--"; } var property = __properties[propertyName]; if (typeof property == "object") { tagName = tagName.toUpperCase(); ...
javascript
{ "resource": "" }
q56987
train
function (path, context) { if (!path || typeof(path) != 'string') { Aria.$logError(Aria.NULL_CLASSPATH); return false; } var classpathParts = path.split('.'), nbParts = classpathParts.length; for (var index = 0; index < nbParts - 1; index++) { if (!__c...
javascript
{ "resource": "" }
q56988
train
function (className, context) { context = context || ''; if (!className || !className.match(/^[_A-Z]\w*$/)) { Aria.$logError(Aria.INVALID_CLASSNAME_FORMAT, [className, context]); return false; } if (Aria.isJsReservedWord(className)) { Aria.$logError(Ar...
javascript
{ "resource": "" }
q56989
train
function (packageName, context) { context = context || ''; if (!packageName) { Aria.$logError(Aria.INVALID_PACKAGENAME_FORMAT, [packageName, context]); return false; } if (Aria.isJsReservedWord(packageName)) { Aria.$logError(Aria.INVALID_PACKAGENAME_RE...
javascript
{ "resource": "" }
q56990
train
function (obj, def, superclass, fn, params) { var newcall = (!obj["aria:nextCall"]); if (!newcall && obj["aria:nextCall"] != def.$classpath) { Aria.$logError(Aria.WRONGPARENT_CALLED, [fn, def.$classpath, obj["aria:nextCall"], obj.$classpath]); } obj["aria:nextCall"] = (superc...
javascript
{ "resource": "" }
q56991
train
function (mergeTo, mergeFrom, classpathTo) { var hasEvents = false; for (var k in mergeFrom) { if (mergeFrom.hasOwnProperty(k)) { if (!hasEvents) { hasEvents = true; } // The comparison with null below is important, as an em...
javascript
{ "resource": "" }
q56992
train
function (options) { /** * Whether the serializer instance should be disposed when this instance is disposed * @type Boolean * @protected */ this._disposeSerializer = false; /** * Callback for storage events * @type aria.core.CfgBeans:Callba...
javascript
{ "resource": "" }
q56993
train
function (event) { if (event.key === null || event.namespace === this.namespace) { var lessDetailedEvent = ariaUtilsJson.copy(event, false, this.EVENT_KEYS); this.$raiseEvent(lessDetailedEvent); } }
javascript
{ "resource": "" }
q56994
train
function (event, widgetDesc) { var widget = widgetDesc.widget; var domElt = widget.getDom(); if (domElt) { this.moduleCtrl.displayHighlight(domElt, "#FF6666"); } this.mouseOver(event); event.stopPropagation(); }
javascript
{ "resource": "" }
q56995
train
function (event) { this.data.showSource = !this.data.showSource; if (this.data.showSource) { this.data.initialSource = true; var filePath = this.data.templateCtxt.tplClasspath.replace(/\./g, "/") + ".tpl"; this.data.source = this.moduleCtrl.getSour...
javascript
{ "resource": "" }
q56996
train
function (event) { if (this.data.initialSource) { ariaUtilsJson.setValue(this.data, "initialSource", false); this.$refresh({ section : "controls" }); } this.data.tplSrcEdit = event.target.getValue(); }
javascript
{ "resource": "" }
q56997
train
function (template, context, statements, throwErrors) { this.context = context; // Remove comments this._prepare(template, throwErrors); // Preprocess if (!this.__preprocess(statements, throwErrors)) { return null; } // ...
javascript
{ "resource": "" }
q56998
train
function (dictionary, throwErrors) { // Everyting starts on the first { var text = this.template, utilString = ariaUtilsString, currentPosition = 0, nextOpening = -1, nextClosing = -1, wholeText = [], nameExtractor = /^\{[\s\/]*?([\w]+)\b/, lastCopiedPosition = 0, textLength = text.length, state...
javascript
{ "resource": "" }
q56999
train
function (event) { if (event.type == "tapstart") { this.timerId = ariaCoreTimer.addCallback({ fn : this._delayedHighlightCB, scope : this, delay : this._timeDelay }); } if (event.type == "tapc...
javascript
{ "resource": "" }