_id stringlengths 2 6 | title stringlengths 0 58 | partition stringclasses 3
values | text stringlengths 52 373k | language stringclasses 1
value | meta_information dict |
|---|---|---|---|---|---|
q57100 | train | function (value) {
if (this.options) {
for (var i = 0, l = this.options.length; i < l; i++) {
if (this.options[i].value === value) {
return i;
}
}
}
return -1;
} | javascript | {
"resource": ""
} | |
q57101 | train | function () {
var bind = this._bindingListeners.value;
if (bind) {
var selectedIndex = this._domElt.selectedIndex;
var value = "";
if (selectedIndex != -1) {
value = this.options[this._domElt.selectedIndex].value;
... | javascript | {
"resource": ""
} | |
q57102 | train | function () {
var bind = this._bindingListeners.selectedIndex;
if (bind) {
var newIndex = this._transform(bind.transform, this._domElt.selectedIndex, "fromWidget");
ariaUtilsJson.setValue(bind.inside, bind.to, newIndex, bind.cb);
}
} | javascript | {
"resource": ""
} | |
q57103 | train | function (jsonData, requestObject) {
var reqSerializer = requestObject ? requestObject.requestJsonSerializer : null;
var options = reqSerializer ? reqSerializer.options : null;
var instance = reqSerializer ? reqSerializer.instance : null;
if (instance) {
... | javascript | {
"resource": ""
} | |
q57104 | train | function (event) {
this.$AutoComplete._dom_onclick.call(this, event);
var element = event.target;
if (element.className === "closeBtn") {
this._removeMultiselectValue(element, event);
this._textInputField.focus();
}
if (element.... | javascript | {
"resource": ""
} | |
q57105 | train | function () {
var skinObj = this._skinObj, frame = this._frame, obj = this._textInputField;
if (obj) {
var frameWidth = frame.innerWidth - skinObj.innerPaddingLeft - skinObj.innerPaddingRight, inputWidth = obj.offsetLeft;
obj.style.width = (frameWidth - inputWidth... | javascript | {
"resource": ""
} | |
q57106 | train | function () {
this.$AutoComplete.initWidget.call(this);
var cfg = this._cfg;
if (cfg.value) {
var report = this.controller.checkValue(cfg.value);
this._reactToControllerReport(report);
}
} | javascript | {
"resource": ""
} | |
q57107 | train | function (value) {
var cfg = this._cfg;
var label = ariaUtilsString.escapeHTML(value.label || value);
return '<div class="xMultiAutoComplete_' + cfg.sclass
+ '_options"><span class="xMultiAutoComplete_Option_Text">' + label
+ '</span><span clas... | javascript | {
"resource": ""
} | |
q57108 | train | function (input) {
var ellipsisContainer = input.previousSibling, elementoffsetWidth = ellipsisContainer.offsetWidth, frameWidth = this._frame.innerWidth;
// 10 is to consider margin and padding
if (elementoffsetWidth >= (frameWidth - 10)) {
ellipsisContainer.firstChi... | javascript | {
"resource": ""
} | |
q57109 | train | function (event) {
if (event.type == "dblclick" && this.controller.freeText) {
var element = event.target;
if (element.className.indexOf("xMultiAutoComplete_Option_Text") != -1) {
this._editMultiselectValue(element, event);
}
}
... | javascript | {
"resource": ""
} | |
q57110 | train | function (event) {
var inputField = this.getTextInputField();
var blurredElement = event.target;
if (blurredElement === inputField) {
if (inputField.nextSibling != null && inputField.value === "") {
this._makeInputFieldLastChild();
... | javascript | {
"resource": ""
} | |
q57111 | train | function (event) {
// flag that avoids to trigger the user callback when browsing the checkbox list
var avoidCallback = (this._hasFocus || this._keepFocus);
this.$TextInput._dom_onfocus.call(this, event, true);
if (this._cfg.onfocus && !avoidCallback) {
th... | javascript | {
"resource": ""
} | |
q57112 | train | function () {
var inputField = this._textInputField;
var inputFieldParent = inputField.parentNode;
if (inputFieldParent.lastChild !== inputField) {
inputFieldParent.removeChild(inputField);
inputFieldParent.appendChild(inputField);
inpu... | javascript | {
"resource": ""
} | |
q57113 | train | function (domElement, event, isParent) {
var parent = (!isParent) ? domElement.parentNode : domElement;
var domUtil = ariaUtilsDom;
var label = parent.firstChild.textContent || parent.firstChild.innerText;
domUtil.removeElement(parent);
this._removeValue(label... | javascript | {
"resource": ""
} | |
q57114 | train | function (domElement, event) {
var label;
var domUtil = ariaUtilsDom;
label = domElement.textContent || domElement.innerText;
domUtil.replaceDomElement(domElement.parentNode, this._textInputField);
var removedSuggestionInfo = this._removeValue(label);
... | javascript | {
"resource": ""
} | |
q57115 | train | function (label) {
var report = this.controller.removeValue(label);
var removedSuggestion = report.removedSuggestion;
var removedSuggestionIndex = report.removedSuggestionIndex;
this._reactToControllerReport(report);
this._textInputField.style.width = "0px";
... | javascript | {
"resource": ""
} | |
q57116 | train | function (suggestionNode, className) {
var suggestionNodeClassList = new aria.utils.ClassList(suggestionNode);
suggestionNodeClassList.remove(className);
suggestionNodeClassList.$dispose();
} | javascript | {
"resource": ""
} | |
q57117 | train | function (suggestionNode) {
if (suggestionNode == null) {
suggestionNode = Aria.$window.document.activeElement;
if (suggestionNode.className.indexOf("highlight") === -1) {
suggestionNode = this._getSuggestionsContainer().children[this.getHighlightedOptionI... | javascript | {
"resource": ""
} | |
q57118 | train | function (suggestionNode, className) {
var suggestionNodeClassList = new aria.utils.ClassList(suggestionNode);
suggestionNodeClassList.add(className);
suggestionNodeClassList.$dispose();
} | javascript | {
"resource": ""
} | |
q57119 | train | function (index) {
var count = this.insertedOptionsCount();
if (index < 1 || index > count) {
this.$logError(this.INDEX_OUT_OF_BOUNDS, [count, index]);
return;
}
this.removeHighlight();
var suggestionNode = this._getSuggestio... | javascript | {
"resource": ""
} | |
q57120 | train | function () {
var suggestionContainer = this._textInputField.parentNode;
var highlightedArray = [];
for (var i = 0; i < suggestionContainer.children.length - 1; i++) {
var suggestionNode = suggestionContainer.children[i];
var suggestionNodeClassList = ... | javascript | {
"resource": ""
} | |
q57121 | train | function () {
var maxCount = 0, suggestion = this.controller.selectedSuggestions;
if (suggestion.length < this.controller.maxOptions) {
return this.controller.maxOptions;
} else {
for (var i = 0, len = suggestion.length; i < len; i++) {
... | javascript | {
"resource": ""
} | |
q57122 | train | function () {
var indexes = this.getHighlight();
var rightMostIndex = indexes[indexes.length - 1];
var limit = this.insertedOptionsCount();
var index = rightMostIndex + 1;
if (index <= limit) {
this.highlightOption(index);
} else ... | javascript | {
"resource": ""
} | |
q57123 | train | function (text, options) {
// -------------------------------------- input arguments processing
var document = Aria.$window.document;
if (options == null) {
options = {};
}
var parent = options.parent;
if (parent == null) {
... | javascript | {
"resource": ""
} | |
q57124 | fallback | train | function fallback (self, instance) {
self._get = instance._get;
self._set = instance._set;
self._remove = instance._remove;
self._clear = instance._clear;
self.storage = ariaStorageUserData._STORAGE;
self.__keys = ariaStorageUserData._ALL_KEYS;
} | javascript | {
"resource": ""
} |
q57125 | train | function (options) {
var isIE7 = ariaCoreBrowser.isIE7;
// Throw an error only in IE7
this.$HTML5Storage.constructor.call(this, options, "localStorage", !isIE7);
if (!this.storage && isIE7) {
var instance = new ariaStorageUserData(options);
... | javascript | {
"resource": ""
} | |
q57126 | train | function (property, recursive) {
var metaName = recursive ? jsonUtils.META_FOR_RECLISTENERS : jsonUtils.META_FOR_LISTENERS;
if (property != null) {// the comparison with null is important, as 0 or "" must be considered as valid
// property names
metaName += "_" + property;
... | javascript | {
"resource": ""
} | |
q57127 | train | function (child, parent, oldProperty, newProperty) {
var childParents = child ? child[parProp] : null;
if (childParents) {
for (var index = 0, parentDescription; parentDescription = childParents[index]; index++) {
if (parentDescription.parent == parent && parentDescription.pr... | javascript | {
"resource": ""
} | |
q57128 | train | function (propertyName) {
if (!ariaUtilsType.isString(propertyName)) {
return true;
}
// which property names are included for back references
return (propertyName != jsonUtils.OBJECT_PARENT_PROPERTY &&
propertyName.substr(0, jsonUtils.META_FOR_LISTENERS.length) ... | javascript | {
"resource": ""
} | |
q57129 | train | function (node) {
var recMarker = jsonUtils.TEMP_REC_MARKER;
if (node[recMarker]) {
node[recMarker] = false;
delete node[recMarker];
var parents = node[jsonUtils.OBJECT_PARENT_PROPERTY];
if (parents) {
for (var index = 0, l = parents.length... | javascript | {
"resource": ""
} | |
q57130 | train | function (newListeners, existingListeners) {
if (newListeners != null) {
if (!existingListeners) {
existingListeners = [];
}
existingListeners.push.apply(existingListeners, newListeners);
}
return existingListeners;
} | javascript | {
"resource": ""
} | |
q57131 | train | function (node, property, recursive, listeners) {
if (property != null) {
// add property specific listeners
listeners = __retrievePropertySpecificListeners(node, property, recursive, listeners);
}
// recursive check
if (node[jsonUtils.TEMP_REC_MARKER]) {
... | javascript | {
"resource": ""
} | |
q57132 | train | function (listeners, change, listenerToExclude) {
for (var idx = 0, length = listeners.length; idx < length; idx++) {
var lsn = listeners[idx];
if (lsn == listenerToExclude || !lsn) {
continue;
}
var fn = lsn.fn;
if (fn) {
... | javascript | {
"resource": ""
} | |
q57133 | train | function (container, property, change, listenerToExclude) {
// retrieve listeners for this node and its parents
// arguments given to the callback
var listeners = __retrieveListeners(container, property);
if (listeners) {
change.dataHolder = container;
change.data... | javascript | {
"resource": ""
} | |
q57134 | train | function (container) {
if (container[parProp]) {
// back references already present, nothing to do
return;
}
// back references are not present yet
container[parProp] = [];
for (var childName in conta... | javascript | {
"resource": ""
} | |
q57135 | train | function (item, options, serializerInstance) {
if (serializerInstance) {
if ("serialize" in serializerInstance) {
return serializerInstance.serialize(item, options);
} else {
this.$logError(this.INVALID_JSON_SERIALIZ... | javascript | {
"resource": ""
} | |
q57136 | train | function (str, ctxt, errMsg) {
var JSON = Aria.$global.JSON;
if (ctxt && ctxt.$classpath) {
ctxt = ctxt.$classpath;
}
if (typeof JSON !== "undefined" && typeof JSON.parse === "function") {
... | javascript | {
"resource": ""
} | |
q57137 | train | function (str, ctxt, errMsg) {
var res = null;
try {
str = ('' + str).replace(/^\s/, ''); // remove first spaces
res = Aria["eval"]('return (' + str + ');');
} catch (ex) {
if (!errMsg) {
... | javascript | {
"resource": ""
} | |
q57138 | train | function (big, small) {
var isBigArray = typeUtils.isArray(big), isBigObject = typeUtils.isObject(big), isSmallArray = typeUtils.isArray(small), isSmallObject = typeUtils.isObject(small);
if (isBigArray && isSmallArray) {
for (var i = 0, l = small.length; i < l; i++)... | javascript | {
"resource": ""
} | |
q57139 | train | function (array, item, index) {
if (index == null) {
index = array.length;
}
this.splice(array, index, 0, item);
} | javascript | {
"resource": ""
} | |
q57140 | train | function (container) {
var raw = ariaUtilsObject.keys(container);
return ariaUtilsArray.filter(raw, function (key) {
return !aria.utils.Json.isMetadata(key);
});
} | javascript | {
"resource": ""
} | |
q57141 | train | function (object) {
if (!object || !__isValidContainer(object)) {
return object;
}
var clone = typeUtils.isArray(object) ? [] : {};
for (var key in object) {
if (!this.isMetadata(key)) {
clone... | javascript | {
"resource": ""
} | |
q57142 | train | function( left, right) {
var isLeftArray = typeUtils.isArray(left),
isLeftObject = typeUtils.isObject(left),
isRightArray = typeUtils.isArray(right),
isRightObject = typeUtils.isObject(right),
leftDiff = null,
... | javascript | {
"resource": ""
} | |
q57143 | train | function () {
var tplDiv = this._subTplDiv; // may be null at this time
if (tplDiv) {
tplDiv.className = "xTplContent"; // remove the loading indicator
ariaUtilsDom.replaceHTML(tplDiv, "#ERROR WHILE LOADING TEMPLATE#");
}
this._deleteTplcfg... | javascript | {
"resource": ""
} | |
q57144 | train | function () {
var tplcfg = this._tplcfg;
var cfg = this._cfg;
if (this._needCreatingModuleCtrl) {
if (!ariaCoreJsonValidator.normalize({
json : cfg.moduleCtrl,
beanName : "aria.templates.CfgBeans.InitModuleCtrl"
... | javascript | {
"resource": ""
} | |
q57145 | train | function (domElt, sectionObject) {
if (domElt) {
while (domElt.nodeType != 1) {
domElt = domElt.parentNode;
}
}
this.$DomElementWrapper.constructor.call(this, domElt, sectionObject.tplCtxt);
/**
* Dynamically insert an adjacent section, w... | javascript | {
"resource": ""
} | |
q57146 | train | function (tplCtxt) {
this.$assert(133, tplCtxt.$TemplateCtxt);
var toLoad = tplCtxt.getCSSDependencies();
var tplClasspath = tplCtxt.tplClasspath;
var loadResult = this.loadClassPathDependencies(tplClasspath, toLoad, {
isTemplate : true
});
... | javascript | {
"resource": ""
} | |
q57147 | train | function (classpath, dependencies) {
if (this.__cssDependencies[classpath]) {
dependencies = this.__cssDependencies[classpath];
} else {
// Look at in the parents for the css inheritance.
var tpl = Aria.getClassRef(classpath);
var ... | javascript | {
"resource": ""
} | |
q57148 | train | function (tplClasspath, cssClasspath, contextArgs) {
this.$assert(195, tplClasspath && cssClasspath);
// Do something only if this CSS class is not yet loaded
var usage = this.__cssUsage[cssClasspath];
if (usage && usage.length) {
usage.push(tplClasspath)... | javascript | {
"resource": ""
} | |
q57149 | train | function (cssCtxt) {
var classpath = cssCtxt.tplClasspath;
var associatedTo = this.__styleTagAssociation[classpath];
if (associatedTo) {
return associatedTo;
}
if (cssCtxt.isTemplate()) {
associatedTo = "tpl";
} el... | javascript | {
"resource": ""
} | |
q57150 | train | function (classpath, dependencies) {
if (this.__cssDependencies[classpath]) {
dependencies = this.__cssDependencies[classpath];
}
this.unloadClassPathDependencies(classpath, dependencies);
} | javascript | {
"resource": ""
} | |
q57151 | train | function (classpath, dependencies) {
if (!dependencies) {
return;
}
for (var i = 0, len = dependencies.length; i < len; i += 1) {
var cssClasspath = Aria.getClasspath(dependencies[i]);
this.__unload(classpath, cssClasspath);
... | javascript | {
"resource": ""
} | |
q57152 | train | function (tplCtxt) {
this.$assert(169, tplCtxt.$TemplateCtxt);
var unload = tplCtxt.getCSSDependencies();
var tplClasspath = tplCtxt.tplClasspath;
this.unloadClassPathDependencies(tplClasspath, unload);
this.$raiseEvent({
name : "dependencie... | javascript | {
"resource": ""
} | |
q57153 | train | function (cssClasspath) {
var prefixClass = this.__prefixes[cssClasspath];
if (!prefixClass) {
prefixClass = this.__PREFIX + this.__NEXT_PREFIX_INDEX;
this.__NEXT_PREFIX_INDEX += 1;
this.__prefixes[cssClasspath] = prefixClass;
}
... | javascript | {
"resource": ""
} | |
q57154 | train | function (tplClasspath, cssClasspath) {
this.$assert(230, tplClasspath && cssClasspath);
var removeUtil = ariaUtilsArray.remove;
// There should be someone using this css
var usage = this.__cssUsage[cssClasspath];
if (usage && usage.length) {
... | javascript | {
"resource": ""
} | |
q57155 | train | function (tagName) {
// A pointer to the style might be already there or an element with the correct id might be there
var tag = this.__styleTagPool[tagName];
if (!tag) {
var id = this.__TAG_PREFX + tagName;
tag = ariaUtilsDom.getElementById(id);
... | javascript | {
"resource": ""
} | |
q57156 | train | function () {
// Remove the style tags from the DOM
for (var tagName in this.__styleTagPool) {
if (this.__styleTagPool.hasOwnProperty(tagName)) {
this.__styleTagPool[tagName].parentNode.removeChild(this.__styleTagPool[tagName]);
}
}... | javascript | {
"resource": ""
} | |
q57157 | train | function (classpath, cssTemplates) {
for (var i = 0, length = cssTemplates.length; i < length; i++) {
var cssClasspath = Aria.getClasspath(cssTemplates[i]);
if (!this.__globalUsage[cssClasspath]) {
this.__globalUsage[cssClasspath] = [];
}
... | javascript | {
"resource": ""
} | |
q57158 | train | function (classpath, cssTemplates, unload, timestampNextTime) {
var array = ariaUtilsArray, classMgr = ariaCoreClassMgr;
for (var i = 0, length = cssTemplates.length; i < length; i++) {
var cssClasspath = Aria.getClasspath(cssTemplates[i]);
var usage = this.__glob... | javascript | {
"resource": ""
} | |
q57159 | train | function (msg) {
if (this.utilsType.isObject(msg)) {
this.message = msg;
this.localized_message = msg.localizedMessage;
} else if (this.utilsType.isString(msg)) {
this.localized_message = msg;
this.message = ariaUtilsData.createMess... | javascript | {
"resource": ""
} | |
q57160 | makeUseless | train | function makeUseless (instance) {
instance.writeMarkup = Aria.empty;
instance.writeMarkupBegin = Aria.empty;
instance.writeMarkupEnd = Aria.empty;
instance.initWidget = Aria.empty;
} | javascript | {
"resource": ""
} |
q57161 | train | function () {
var eventListeners = this._cfg.on, hasListeners = false, listArray;
var delegateManager = ariaUtilsDelegate;
var delegateFallbackEvents = [];
for (var listener in eventListeners) {
if (eventListeners.hasOwnProperty(listen... | javascript | {
"resource": ""
} | |
q57162 | train | function (event) {
var type = event.type, callbackArray = this._cfg.on[type], callback, returnValue;
if (callbackArray) {
var wrapped = new ariaTemplatesDomEventWrapper(event);
for (var i = 0, listCount = callbackArray.length; i < listCount; i++) {... | javascript | {
"resource": ""
} | |
q57163 | train | function (out) {
var cfg = this._cfg;
var attributes = ariaUtilsHtml.buildAttributeList(cfg.attributes);
var markup = ["<", cfg.tagName, " id='", this._id, "' "];
if (attributes) {
markup.push(attributes, " ");
}
... | javascript | {
"resource": ""
} | |
q57164 | train | function (args, propertyName) {
if (this._cfg) {
this.onbind(propertyName, this._transform(this._cfg.bind[propertyName].transform, args.newValue, "toWidget"), args.oldValue);
}
} | javascript | {
"resource": ""
} | |
q57165 | train | function (listeners, eventType, callback, after) {
var listArray = listeners[eventType] || [];
if (!ariaUtilsType.isArray(listArray)) {
listArray = [listArray];
}
if (after) {
listArray.push(callback);
... | javascript | {
"resource": ""
} | |
q57166 | train | function (args) {
var output = [args.provider, args.caller];
if (args.onLoad) {
output.push(args.onLoad);
}
if (args.handler) {
output.push(args.handler);
}
if (args.resources) {
output.push(args.resources.join("-"));
}
return output.join("-");
} | javascript | {
"resource": ""
} | |
q57167 | train | function (referencePath, baseLogicalPath, callerClasspath, onLoad, handler) {
var args = convertArguments(arguments);
if (args.onLoad) {
asyncRequire(args.provider).spreadSync(function (providerConstr) {
return fetchDataAfterLoading(providerConstr, args);
}).then(function () {
... | javascript | {
"resource": ""
} | |
q57168 | train | function (providerConstr, args) {
return new Promise(function (resolve) {
var instance = new providerConstr();
addInstanceToStore(args, instance);
createGetData(instance, args.caller);
if (args.hasOwnProperty("handler")) {
instance.setHandler(args.handler);
}
... | javascript | {
"resource": ""
} | |
q57169 | train | function (errors, throwsErrors) {
if (errors.length === 0) {
return true;
}
if (!throwsErrors) {
for (var i = 0; i < errors.length; i++) {
this.$logError(errors[i].msgId, errors[i].msgArgs);
... | javascript | {
"resource": ""
} | |
q57170 | train | function (packageDef, typeName) {
var path = {
'$properties' : packageDef.$beans
};
var typeParts = typeName.split('.');
for (var i = 0; i < typeParts.length; i++) {
var elt = typeParts[i];
if (el... | javascript | {
"resource": ""
} | |
q57171 | train | function (typeName, packageDef) {
var packageName, otherBP;
var i = typeName.indexOf(':');
// if no semicolumn, type is defined inside this package
if (i == -1) {
packageName = packageDef.$package;
otherBP = packageD... | javascript | {
"resource": ""
} | |
q57172 | train | function (def) {
// prepare error stack
this._errors = [];
var beans = def.$beans;
for (var beanName in beans) {
if (!beans.hasOwnProperty(beanName) || beanName.indexOf(':') != -1) {
continue;
... | javascript | {
"resource": ""
} | |
q57173 | train | function (beanDef) {
var typeDef = this.__baseTypes[beanDef.$type];
this.$assert(298, typeDef != null);
beanDef[this._MD_BUILTIN] = true;
beanDef[this._MD_BASETYPE] = typeDef;
var beanName = beanDef[this._MD_TYPENAME] = [this._BASE_TYPES_PA... | javascript | {
"resource": ""
} | |
q57174 | train | function (typeDef) {
this.__baseTypes[typeDef.typeName] = typeDef;
if (!(typeDef.dontSkip || this._options.checkEnabled)) {
typeDef.process = null;
typeDef.preprocess = null;
}
} | javascript | {
"resource": ""
} | |
q57175 | train | function (args) {
var beanDef = (args.beanDef ? args.beanDef : this._getBean(args.beanName));
if (!beanDef) {
this._errors = [];
this._logError(this.BEAN_NOT_FOUND, args.beanName);
return this._errors;
}
... | javascript | {
"resource": ""
} | |
q57176 | train | function (beanDef) {
if (this._options.checkBeans && (!this._options.checkMultiTypes)
&& this.__loadedBeans[this._BEANS_SCHEMA_PACKAGE]) {
var baseType = beanDef[this._MD_BASETYPE];
if (baseType == this._typeError) {
... | javascript | {
"resource": ""
} | |
q57177 | train | function (bp) {
var noerrors = true;
// bean definition will be available in the waiting beans
var def = this.__waitingBeans[bp];
delete this.__waitingBeans[bp];
this.$assert(58, def);
var compiled = def.$compiled;
... | javascript | {
"resource": ""
} | |
q57178 | train | function (def) {
var bp = def.$package; // beans package
Aria.$classes.push({
$classpath : bp
});
this.__waitingBeans[bp] = def;
var dep = [];
// load missing dependencies
// add $depend... | javascript | {
"resource": ""
} | |
q57179 | train | function (json, beanName, throwsErrors) {
if (!this._options.checkEnabled) {
return true;
}
this._options.addDefaults = false;
return this.__logAllErrors(this._processJsonValidation({
json : json,
... | javascript | {
"resource": ""
} | |
q57180 | train | function (domElt) {
this.setClassName = function (className) {
domElt.className = className;
};
this.getClassName = function () {
return domElt.className;
};
this._dispose = function () {
domElt = null;
this._dispose = null;
... | javascript | {
"resource": ""
} | |
q57181 | train | function (className) {
var classes = this.getClassName().split(" ");
for (var i = 0, ii = classes.length; i < ii; i++) {
if (classes[i] == className) {
return true;
}
}
return false;
} | javascript | {
"resource": ""
} | |
q57182 | train | function (oldClassName, newClassName) {
var rem = [], add = [];
if (!!oldClassName) {
rem = (typeof oldClassName == "string") ? oldClassName.split(" ") : oldClassName;
}
if (!!newClassName) {
add = (typeof newClassName == "string") ? newC... | javascript | {
"resource": ""
} | |
q57183 | train | function () {
return [{
evt : this.touchEventMap.touchmove,
cb : {
fn : this._pinchMove,
scope : this
}
}, {
evt : this.touchEventMap.to... | javascript | {
"resource": ""
} | |
q57184 | train | function (x1, y1, x2, y2) {
return Math.atan2(y2 - y1, x2 - x1) * 180 / Math.PI;
} | javascript | {
"resource": ""
} | |
q57185 | train | function (cfg, context, lineNumber) {
this.$BindableWidget.constructor.apply(this, arguments);
this._cfgOk = ariaCoreJsonValidator.validateCfg(this.WIDGET_CFG, cfg);
if (!this._cfgOk) {
return;
}
this._registerBindings();
/**
* Id generated for th... | javascript | {
"resource": ""
} | |
q57186 | train | function (out) {
out.write("<div class=\"" + this.CSS_CLASS + "\">");
if (this._cfg.contentMacro) {
out.callMacro(this._cfg.contentMacro);
}
out.write("</div>");
} | javascript | {
"resource": ""
} | |
q57187 | train | function () {
var cfg = this._cfg;
var refreshParams = {
section : "__popup_" + this._domId,
writerCallback : {
fn : this._writerCallback,
scope : this
}
};
var section = this._contex... | javascript | {
"resource": ""
} | |
q57188 | train | function () {
for (var i = this.openedPopups.length - 1; i >= 0; i--) {
var popup = this.openedPopups[i];
popup.close();
}
} | javascript | {
"resource": ""
} | |
q57189 | train | function (domEvent, popup) {
var documentScroll = ariaUtilsDom._getDocumentScroll();
var clickPosition = {
'top' : domEvent.clientY + documentScroll.scrollTop,
'left' : domEvent.clientX + documentScroll.scrollLeft
};
... | javascript | {
"resource": ""
} | |
q57190 | train | function () {
for (var i = this.popups.length - 1; i >= 0; i--) {
var popup = this.popups[i];
this.unregisterPopup(popup);
}
} | javascript | {
"resource": ""
} | |
q57191 | train | function () {
this.disconnectEvents();
ariaUtilsAriaWindow.attachWindow();
this._document = Aria.$window.document;
utilsEvent.addListener(this._document, "mousedown", {
fn : this.onDocumentClick,
scope : this
... | javascript | {
"resource": ""
} | |
q57192 | train | function () {
if (this._document) {
utilsEvent.removeListener(this._document, "mousedown", {
fn : this.onDocumentClick
});
utilsEvent.removeListener(this._document, "touchend", {
fn : this.onDocum... | javascript | {
"resource": ""
} | |
q57193 | train | function () {
var navManager = ariaTemplatesNavigationManager;
navManager.addGlobalKeyMap({
key : "ESCAPE",
modal : true,
callback : {
fn : this._raiseOnEscapeEvent,
scope : this
... | javascript | {
"resource": ""
} | |
q57194 | train | function () {
var navManager = ariaTemplatesNavigationManager;
navManager.removeGlobalKeyMap({
key : "ESCAPE",
modal : true,
callback : {
fn : this._raiseOnEscapeEvent,
scope : thi... | javascript | {
"resource": ""
} | |
q57195 | train | function () {
for (var i = this.openedPopups.length - 1; i >= 0; i--) {
var popup = this.openedPopups[i];
popup.updatePosition();
}
} | javascript | {
"resource": ""
} | |
q57196 | train | function (event) {
if (event.type === "mousewheel") {
ariaCoreTimer.addCallback({
fn : this.updatePositions,
scope : this
});
} else if (event.type === "scroll") {
this.updatePosit... | javascript | {
"resource": ""
} | |
q57197 | train | function (target, notifyTargetBehindModalPopup) {
var searchPopup = this._document && target !== this._document.body;
if (searchPopup) {
for (var i = this.openedPopups.length - 1; i >= 0; i--) {
var popup = this.openedPopups[i];
... | javascript | {
"resource": ""
} | |
q57198 | train | function (event) {
var domEvent = new ariaDomEvent(event);
var target = domEvent.target;
var self = this;
var popup = this.findParentPopup(target, function (popup) {
var navigation;
navigation = self._viewportNavigat... | javascript | {
"resource": ""
} | |
q57199 | train | function () {
var openedPopups = this.openedPopups;
var topPopup = null;
if (openedPopups.length > 0) {
topPopup = openedPopups[openedPopups.length - 1];
var topZIndex = topPopup.getZIndex();
for (var i = openedP... | javascript | {
"resource": ""
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.