_id
stringlengths
2
6
title
stringlengths
0
58
partition
stringclasses
3 values
text
stringlengths
52
373k
language
stringclasses
1 value
meta_information
dict
q61400
validation
function () { var f = [], len, i; this.filters.each(function (filter) { if (filter.active) { f.push(filter); } }); len = f.length; return function (record) { for (i = 0; i < len; i++) { if (!f[i].validateRecord(...
javascript
{ "resource": "" }
q61401
validation
function (config) { var me = this, columns = me.getGridPanel().columns, i, columnsLength, column, filtersLength, filter; for (i = 0, columnsLength = columns.length; i < columnsLength; i++) { column = columns[i]; if (column.dataIndex === config.da...
javascript
{ "resource": "" }
q61402
validation
function (filters) { if (filters) { var me = this, i, filtersLength; for (i = 0, filtersLength = filters.length; i < filtersLength; i++) { me.addFilter(filters[i]); } } }
javascript
{ "resource": "" }
q61403
validation
function () { var items = this.getFilterItems(), filters = [], n, nlen, item, d, i, len; for (n = 0, nlen = items.length; n < nlen; n++) { item = items[n]; if (item.active) { d = [].concat(item.serialize()); for (i = 0, len...
javascript
{ "resource": "" }
q61404
validation
function (p) { // if encoding just delete the property if (this.encode) { delete p[this.paramPrefix]; // otherwise scrub the object of filter data } else { var regex, key; regex = new RegExp('^' + this.paramPrefix + '\[[0-9]+\]'); for (key ...
javascript
{ "resource": "" }
q61405
validation
function(record, columnHeader) { var me = this, grid = me.editingPlugin.grid, store = grid.store, view = grid.getView(), context = me.context = Ext.apply(me.editingPlugin.context, { view: view, store: store }); ...
javascript
{ "resource": "" }
q61406
Approximate
validation
function Approximate() { if(arguments.length > 0) { if(arguments[0].length < 1 || arguments[0].charAt(0) != 'A') { throw new Error('Invalid Approximate Date'); } try { Simple.call(this, arguments[0].substr(1)); } catch(e) { throw new Error(e.message+' in Approximate Date'); } ...
javascript
{ "resource": "" }
q61407
validation
function(form, url, params, options) { form = Ext.getDom(form); options = options || {}; var id = Ext.id(), frame = document.createElement('iframe'), hiddens = [], encoding = 'multipart/form-data', buf = { target: form.target, ...
javascript
{ "resource": "" }
q61408
validation
function(options) { var form = this.getForm(options); if (form) { return (options.isUpload || (/multipart\/form-data/i).test(form.getAttribute('enctype'))); } return false; }
javascript
{ "resource": "" }
q61409
validation
function(options, url) { var form = this.getForm(options); if (form) { url = url || form.action; } return url; }
javascript
{ "resource": "" }
q61410
validation
function(options, params) { var form = this.getForm(options), serializedForm; if (form && !this.isFormUpload(options)) { serializedForm = Ext.Element.serializeForm(form); params = params ? (params + '&' + serializedForm) : serializedForm; } return para...
javascript
{ "resource": "" }
q61411
validation
function(request) { if (!request) { request = this.getLatest(); } if (!(request && request.xhr)) { return false; } // if there is a connection and readyState is not 0 or 4, or in case of BinaryXHR, not 4 var state = request.xhr.readyState; ...
javascript
{ "resource": "" }
q61412
validation
function(request) { var me = this, xhr; if (!request) { request = me.getLatest(); } if (request && me.isLoading(request)) { /* * Clear out the onreadystatechange here, this allows us * greater control, the browser ma...
javascript
{ "resource": "" }
q61413
validation
function(){ var requests = this.requests, id; for (id in requests) { if (requests.hasOwnProperty(id)) { this.abort(requests[id]); } } }
javascript
{ "resource": "" }
q61414
validation
function(request, xdrResult) { var me = this; // Using CORS with IE doesn't support readyState so we fake it if ((request.xhr && request.xhr.readyState == 4) || me.isXdr) { me.clearTimeout(request); me.onComplete(request, xdrResult); me.cleanup(request); ...
javascript
{ "resource": "" }
q61415
validation
function(request, xdrResult) { var me = this, options = request.options, result, success, response; try { result = me.parseStatus(request.xhr.status); } catch (e) { // in some browsers we can't access the status if the read...
javascript
{ "resource": "" }
q61416
validation
function(status) { // see: https://prototype.lighthouseapp.com/projects/8886/tickets/129-ie-mangles-http-response-status-code-204-to-1223 status = status == 1223 ? 204 : status; var success = (status >= 200 && status < 300) || status == 304, isException = false; if (!succes...
javascript
{ "resource": "" }
q61417
validation
function(request) { return { request : request, requestId : request.id, status : request.aborted ? -1 : 0, statusText : request.aborted ? 'transaction aborted' : 'communication failure', aborted: request.aborted, timedout: request.timedout ...
javascript
{ "resource": "" }
q61418
validation
function() { var scriptTag = document.createElement('script'); scriptTag.type = 'text/vbscript'; scriptTag.text = [ 'Function getIEByteArray(byteArray, out)', 'Dim len, i', 'len = LenB(byteArray)', 'For i = 1 to len', ...
javascript
{ "resource": "" }
q61419
daysInMonth
validation
function daysInMonth(month, year) { switch(month) { case 1: case 3: case 5: case 7: case 8: case 10: case 12: return 31; case 4: case 6: case 9: case 11: return 30; case 2: var leapyear; if(year % 4 != 0) { leapyear = false; } else ...
javascript
{ "resource": "" }
q61420
setDefaults
validation
function setDefaults() { // sequence: generate a random 3-byte integer initial value for the sequence counter if (seq === undefined) seq = ~~(Math.random() * 0xffffff) // processId: 2-byte integer derived from the PID assigned by the OS if (pid === undefined) pid = process.pid % 0xffff ...
javascript
{ "resource": "" }
q61421
getTimestamp
validation
function getTimestamp() { // use `Math.floor()` here to avoid the "Unix Millennium Bug" var now = Math.floor(Date.now() / 1000) // it's another second since the last id were created, // so we need to regenerate the timestamp if (time !== now) { ctr = 0 timestamp = pad(time = n...
javascript
{ "resource": "" }
q61422
getSequence
validation
function getSequence() { var mod = ++seq % 16 // reset counter if (seq > 0xffffff) seq = mod = 0 // If counter is divisible by 16 then // the sequence prefix should be regenerated. // Otherwise only the last digit changed, // so we don't need to update the prefix. if (!mod) ...
javascript
{ "resource": "" }
q61423
assertRange
validation
function assertRange(name, val, max) { assert.equal(typeof val, 'number', name + ' must be a number') assert(!isNaN(val), 'number', name + ' must be a number') if (val > max) throw new RangeError(name + ' must be lower than ' + max + ', but is ' + val) else if (val < 0) throw new RangeE...
javascript
{ "resource": "" }
q61424
proceedToFetch
validation
function proceedToFetch(loader, load, p) { proceedToTranslate(loader, load, p // 15.2.4.4.1 CallFetch .then(function(address) { if (load.linkSets.length == 0) return; load.address = address; return loader.loaderObj.fetch({ name: load.name, metada...
javascript
{ "resource": "" }
q61425
asyncStartLoadPartwayThrough
validation
function asyncStartLoadPartwayThrough(stepState) { return function(resolve, reject) { var loader = stepState.loader; var name = stepState.moduleName; var step = stepState.step; if (loader.modules[name]) throw new TypeError('"' + name + '" already exists in the module ta...
javascript
{ "resource": "" }
q61426
updateLinkSetOnLoad
validation
function updateLinkSetOnLoad(linkSet, load) { console.assert(load.status == 'loaded' || load.status == 'linked', 'loaded or linked'); // console.log('update linkset on load ' + load.name); // snapshot(linkSet.loader); linkSet.loadingCount--; if (linkSet.loadingCount > 0) return;...
javascript
{ "resource": "" }
q61427
finishLoad
validation
function finishLoad(loader, load) { // if not anonymous, add to the module table if (load.name) { console.assert(!loader.modules[load.name], 'load not in module table'); loader.modules[load.name] = load.module; } var loadIndex = indexOf.call(loader.loads, load); if (loadInd...
javascript
{ "resource": "" }
q61428
link
validation
function link(linkSet) { var loader = linkSet.loader; // console.log('linking {' + logloads(loads) + '}'); // snapshot(loader); // 15.2.5.3.1 LinkageGroups alternative implementation // build all the groups // because the first load represents the top of the tree // for a g...
javascript
{ "resource": "" }
q61429
linkDeclarativeModule
validation
function linkDeclarativeModule(load, loads, loader) { // only link if already not already started linking (stops at circular) if (load.module) return; // declare the module with an empty depMap var depMap = []; var sys = __global.System; __global.System = loader; var r...
javascript
{ "resource": "" }
q61430
validation
function() { var me = this, view = me.view; view.on({ scope: me, groupclick: me.onGroupClick }); if (me.enableGroupingMenu) { me.injectGroupingMenu(); } me.pruneGroupedHeader(); me.lastGroupField = me.getGroupFie...
javascript
{ "resource": "" }
q61431
validation
function(menuItem, e) { var me = this, menu = menuItem.parentMenu, hdr = menu.activeHeader, view = me.view, store = view.store; delete me.lastGroupIndex; me.block(); me.enable(); store.group(hdr.dataIndex); me.pruneGrouped...
javascript
{ "resource": "" }
q61432
validation
function() { var me = this, header = me.getGroupedHeader(); if (me.hideGroupedHeader && header) { Ext.suspendLayouts(); if (me.prunedHeader && me.prunedHeader !== header) { me.prunedHeader.show(); } me.prunedHeader = header; ...
javascript
{ "resource": "" }
q61433
validation
function(dataIndex){ var view = this.view, header = view.headerCt.down('gridcolumn[dataIndex=' + dataIndex + ']'), menu = view.headerCt.getMenu(); return header ? menu.down('menuitem[headerId='+ header.id +']') : null; }
javascript
{ "resource": "" }
q61434
process
validation
function process(o, force_rich) { var dom = ed.dom, rng; // Execute pre process handlers t.onPreProcess.dispatch(t, o); // Create DOM structure o.node = dom.create('div', 0, o.content); // If pasting inside the same element and the contents is only one block // remove the block ...
javascript
{ "resource": "" }
q61435
grabContent
validation
function grabContent(e) { var n, or, rng, oldRng, sel = ed.selection, dom = ed.dom, body = ed.getBody(), posY, textContent; // Check if browser supports direct plaintext access if (e.clipboardData || dom.doc.dataTransfer) { textContent = (e.clipboardData || dom.doc.dataTransfer).getData('Text'); ...
javascript
{ "resource": "" }
q61436
validation
function(pl, o) { var t = this, ed = t.editor, dom = ed.dom, styleProps; if (ed.settings.paste_enable_default_filters == false) { return; } if (o.wordContent) { // Remove named anchors or TOC links each(dom.select('a', o.node), function(a) { if (!a.href || a.href.indexOf('#_T...
javascript
{ "resource": "" }
q61437
validation
function(h, skip_undo) { var ed = this.editor, r = ed.selection.getRng(); // First delete the contents seems to work better on WebKit when the selection spans multiple list items or multiple table cells. if (!ed.selection.isCollapsed() && r.startContainer != r.endContainer) ed.getDoc().execCommand('D...
javascript
{ "resource": "" }
q61438
validation
function() { var t = this, ed = t.editor; // Register command(s) for backwards compatibility ed.addCommand("mcePasteWord", function() { ed.windowManager.open({ file: t.url + "/pasteword.htm", width: parseInt(getParam(ed, "paste_dialog_width")), height: parseInt(getParam(ed, "paste_d...
javascript
{ "resource": "" }
q61439
manager
validation
function manager(map, key) { if (!(key instanceof Object)) { throw new TypeError('Key must be an object') } let contents = map.get(key) if (!contents) { map.set(key, contents = {}) } return contents }
javascript
{ "resource": "" }
q61440
end
validation
function end() { var transformed; if (ignore.some(minimatch.bind(null, file))) { var compiled = coffee.compile(data, { sourceMap: true, generatedFile: file, inline: true, bare: options.bare, literate: isLiterate(...
javascript
{ "resource": "" }
q61441
validation
function(view, initial){ var me = this, checkbox = me.injectCheckbox, headerCt = view.headerCt; // Preserve behaviour of false, but not clear why that would ever be done. if (checkbox !== false) { if (checkbox == 'first') { checkbox = 0; ...
javascript
{ "resource": "" }
q61442
validation
function(isChecked) { var view = this.views[0], headerCt = view.headerCt, checkHd = headerCt.child('gridcolumn[isCheckerHd]'), cls = this.checkerOnCls; if (checkHd) { if (isChecked) { checkHd.addCls(cls); } else { ...
javascript
{ "resource": "" }
q61443
validation
function(headerCt, header, e) { if (header.isCheckerHd) { e.stopEvent(); var me = this, isChecked = header.el.hasCls(Ext.baseCSSPrefix + 'grid-hd-checker-on'); // Prevent focus changes on the view, since we're selecting/deselecting all records...
javascript
{ "resource": "" }
q61444
validation
function() { var me = this, showCheck = me.showHeaderCheckbox !== false; return { isCheckerHd: showCheck, text : '&#160;', width: me.headerWidth, sortable: false, draggable: false, resizable: false, hid...
javascript
{ "resource": "" }
q61445
validation
function(list) { var store = list.getStore(); return Ext.Array.sort(list.getSelectionModel().getSelection(), function(a, b) { a = store.indexOf(a); b = store.indexOf(b); if (a < b) { return -1; } else if (a > b) { return 1...
javascript
{ "resource": "" }
q61446
validation
function() { var me = this; me.mixins.field.setValue.call(me, me.setupValue(me.toField.store.getRange())); }
javascript
{ "resource": "" }
q61447
validation
function () { var me = this, cfg = { app: me, taskbarConfig: me.getTaskbarConfig() }; Ext.apply(cfg, me.desktopConfig); return cfg; }
javascript
{ "resource": "" }
q61448
validation
function () { var me = this, cfg = { app: me, menu: [] }, launcher; Ext.apply(cfg, me.startConfig); Ext.each(me.modules, function (module) { launcher = module.launcher; if (launcher) { l...
javascript
{ "resource": "" }
q61449
validation
function () { var me = this, cfg = { app: me, startConfig: me.getStartConfig() }; Ext.apply(cfg, me.taskbarConfig); return cfg; }
javascript
{ "resource": "" }
q61450
validation
function(id, lastEditId, readyCb){ //console.log('adding view task: ' + id + ' ' + lastEditId + ' ' + new Error().stack) addViewTasks.push({id: id, lastEditId: lastEditId, cb: readyCb}) if(!hasViews){ poll() } hasViews = true }
javascript
{ "resource": "" }
q61451
validation
function(array, fn, scope, reverse) { array = ExtArray.from(array); var i, ln = array.length; if (reverse !== true) { for (i = 0; i < ln; i++) { if (fn.call(scope || array[i], array[i], i, array) === false) { ...
javascript
{ "resource": "" }
q61452
validation
function(array) { var clone = [], i = 0, ln = array.length, item; for (; i < ln; i++) { item = array[i]; if (ExtArray.indexOf(clone, item) === -1) { clone.push(item); } ...
javascript
{ "resource": "" }
q61453
validation
function(array, fn, scope) { var i = 0, len = array.length; for (; i < len; i++) { if (fn.call(scope || array, array[i], i)) { return array[i]; } } return null; }
javascript
{ "resource": "" }
q61454
validation
function(array, item) { var index = ExtArray.indexOf(array, item); if (index !== -1) { erase(array, index, 1); } return array; }
javascript
{ "resource": "" }
q61455
validation
function() { var args = slice.call(arguments), array = [], i, ln; for (i = 0, ln = args.length; i < ln; i++) { array = array.concat(args[i]); } return ExtArray.unique(array); }
javascript
{ "resource": "" }
q61456
validation
function() { var intersection = [], arrays = slice.call(arguments), arraysLength, array, arrayLength, minArray, minArrayIndex, minArrayCandidate, minArrayLength, el...
javascript
{ "resource": "" }
q61457
validation
function(arrayA, arrayB) { var clone = slice.call(arrayA), ln = clone.length, i, j, lnB; for (i = 0,lnB = arrayB.length; i < lnB; i++) { for (j = 0; j < ln; j++) { if (clone[j] === arrayB[i]) { erase(clo...
javascript
{ "resource": "" }
q61458
validation
function (array, begin, end) { // After tested for IE 6, the one below is of the best performance // see http://jsperf.com/slice-fix if (typeof begin === 'undefined') { return slice.call(array); } if (typeof end === 'und...
javascript
{ "resource": "" }
q61459
validation
function(array) { var worker = []; function rFlatten(a) { var i, ln, v; for (i = 0, ln = a.length; i < ln; i++) { v = a[i]; if (Ext.isArray(v)) { rFlatten(v); } else { ...
javascript
{ "resource": "" }
q61460
validation
function(array, comparisonFn) { var min = array[0], i, ln, item; for (i = 0, ln = array.length; i < ln; i++) { item = array[i]; if (comparisonFn) { if (comparisonFn(min, item) === 1) { min = item; ...
javascript
{ "resource": "" }
q61461
validation
function(array) { var sum = 0, i, ln, item; for (i = 0,ln = array.length; i < ln; i++) { item = array[i]; sum += item; } return sum; }
javascript
{ "resource": "" }
q61462
validation
function(array) { var len = arguments.length, i = 1, newItem; if (array === undefined) { array = []; } else if (!Ext.isArray(array)) { array = [array]; } for (; i < len; i++) { ne...
javascript
{ "resource": "" }
q61463
validation
function (xpath) { var me = this, parts = xpath.split('/'), regex = me.tagPathRegEx, i, n, m, count, tag, child, el = me.attachTo.document; el = (parts[0] == '~') ? el.body : el.getElementById(parts[0].substring(1)); // remove '#' ...
javascript
{ "resource": "" }
q61464
validation
function (eventDescriptor) { var me = this, index = ++me.queueIndex; // keyframe events are inserted after a keyFrameEvent is played. if (me.keyFrameEvents[eventDescriptor.type]) { Ext.Array.insert(me.eventQueue, index, [ { keyframe: true, ts: eventDescri...
javascript
{ "resource": "" }
q61465
validation
function (eventDescriptor) { var me = this; // only fire keyframe event (and setup the eventDescriptor) once... if (!eventDescriptor.defer) { me.makeToken(eventDescriptor, 'done'); me.fireEvent('keyframe', me, eventDescriptor); } return eventDescriptor.d...
javascript
{ "resource": "" }
q61466
getNonEditableParent
validation
function getNonEditableParent(node) { var state; while (node) { state = getContentEditable(node); if (state) { return state === "false" ? node : null; } node = node.parentNode; } }
javascript
{ "resource": "" }
q61467
removeCaretContainer
validation
function removeCaretContainer(caretContainer) { var child, currentCaretContainer, lastContainer; if (caretContainer) { rng = selection.getRng(true); rng.setStartBefore(caretContainer); rng.setEndBefore(caretContainer); child = findFirstTextNode(caretContainer); if (child && chi...
javascript
{ "resource": "" }
q61468
moveSelection
validation
function moveSelection() { var nonEditableStart, nonEditableEnd, isCollapsed, rng, element; // Checks if there is any contents to the left/right side of caret returns the noneditable element or any editable element if it finds one inside function hasSideContent(element, left) { var container, offset,...
javascript
{ "resource": "" }
q61469
convertRegExpsToNonEditable
validation
function convertRegExpsToNonEditable(ed, args) { var i = nonEditableRegExps.length, content = args.content, cls = tinymce.trim(nonEditClass); // Don't replace the variables when raw is used for example on undo/redo if (args.format == "raw") { return; } while (i--) { content = co...
javascript
{ "resource": "" }
q61470
setupLogger
validation
function setupLogger(name, cfg) { assume(name).is.a('string'); if (cfg) { assume(cfg).is.an('object'); assume(cfg).not.includes('name'); } else { cfg = {}; } cfg.name = name; // Sometimes, just make it easy to have everything show the file and line // number. This is supposed to be quite slo...
javascript
{ "resource": "" }
q61471
makeCompat
validation
function makeCompat(logger) { return function(name) { return function(...x) { assume(x).is.an('array'); assume(x.length).greaterThan(0); let msg = util.format.apply(null, x); let level = 'warn'; let msgObj = { dbgname: name, dbgcmpt: true, }; if (msg.match...
javascript
{ "resource": "" }
q61472
validation
function(height) { var me = this, isNum = (typeof height == "number"); if (isNum && me.autoBoxAdjust && !me.isBorderBox()) { height -= (me.getBorderWidth("tb") + me.getPadding("tb")); } return (isNum && height < 0) ? 0 : height; }
javascript
{ "resource": "" }
q61473
validation
function(opacity, animate) { var me = this; if (!me.dom) { return me; } if (!animate || !me.anim) { me.setStyle('opacity', opacity); } else { if (typeof animate != 'object') { animate = { duration: ...
javascript
{ "resource": "" }
q61474
validation
function(className, testFn, scope) { var me = this, dom = me.dom, hasTest = Ext.isFunction(testFn); me.hover( function() { if (hasTest && testFn.call(scope || me, me) === false) { return; } ...
javascript
{ "resource": "" }
q61475
init
validation
function init(type) { // {{{2 O.ui.updateHistory(); O.inherited(this)('html5-dialog' + (type ? '-' + type : '')); this.appendTo(document.body); O.ui.newHistory(); this.lastHistory = O.ui.lastHistory; this.hook(); this.type = type; if (! O.ui.dialogs) { O.ui.dialogs = []; } O.ui.dialogs.pu...
javascript
{ "resource": "" }
q61476
validation
function(e, target) { var me = this, item, record; if (Ext.fly(target).hasCls(me.labelSelector) && !me.editing && !e.ctrlKey && !e.shiftKey) { e.stopEvent(); item = me.view.findItemByChild(target); record = me.view.store.getAt(me.view.indexOf(item)); ...
javascript
{ "resource": "" }
q61477
validation
function(dir) { var cmd = path.normalize(config.bin); if (config.jdependChart !== undefined) { cmd += ' --jdepend-chart=' + config.jdependChart; } if (config.jdependXml !== undefined) { cmd += ' --jdepend-xml=' + config.jdependXml; } if (config...
javascript
{ "resource": "" }
q61478
canonicalMd5
validation
function canonicalMd5(md5) { if (md5) { if (Buffer.isBuffer(md5)) md5 = md5.toString('base64') else if (md5 && md5.match(/^md5-/)) md5 = md5.replace(/^md5-/, '') if (md5.length === 32) md5 = new Buffer(md5, 'hex').toString('base64') } return md5 }
javascript
{ "resource": "" }
q61479
validation
function() { var me = this; if (me.fireEvent('beforedestroy', me) !== false) { me.remove(); me.surface.onDestroy(me); me.clearListeners(); me.fireEvent('destroy'); } }
javascript
{ "resource": "" }
q61480
validation
function (options) { this.astStack = new ASTStack(); this.tags = options.customTags; this.raw = ''; this.disableParseTag = false; this.line = 1; this.lineStart = 0; this.position = 0; this.parseTagStack = []; this.forItems = []; this.tablerowItems = []; this.forItems.test = this.tablerowItems.test = function...
javascript
{ "resource": "" }
q61481
join_plugins
validation
function join_plugins(plugins) { debug.assert(plugins).is('array'); debug.assert( ARRAY(plugins).every(is.func) ).equals(true); return function join_plugins_(req, res, next) { var queue = [].concat(plugins); function do_iteration_() { if(queue.length === 0) { next(); return; } var plugin = que...
javascript
{ "resource": "" }
q61482
setup_member
validation
function setup_member(context, k) { var handler; var routes = context.routes; var opts = context.opts; var middleware = context.middleware; var app = context.app; var target = context.target; var loop_counter = context.loop_counter; var v = routes[k]; var v_is_function = is.func(v) ? true : false; // Special...
javascript
{ "resource": "" }
q61483
accept_multi
validation
function accept_multi(filename, state) { state = state || {}; debug.assert(filename).is('string'); debug.assert(state).is('object'); if(state.directory) { return accept_dir(filename, state); } if(state.file) { return accept_file(filename, state); } return; }
javascript
{ "resource": "" }
q61484
makeDefine
validation
function makeDefine(mapping, id) { var require = function(id) { return mapping[id]; }; var exports = mapping[id] = {}; var module = null; // Unused arg. Included for completeness. return function(factory) { factory(require, exports, module); }; }
javascript
{ "resource": "" }
q61485
validation
function(root, action) { var parts, ns, i, l; root = root || Ext.global; parts = action.toString().split('.'); for (i = 0, l = parts.length; i < l; i++) { ns = parts[i]; root = root[ns]; if (typeof root === 'undefined') { ...
javascript
{ "resource": "" }
q61486
validation
function() { var me = this, actions = me.actions, namespace = me.namespace, action, cls, methods, i, len, method; for (action in actions) { if (actions.hasOwnProperty(action)) { if (me.disableNestedActions) { ...
javascript
{ "resource": "" }
q61487
validation
function(action, method) { var me = this, slice = Array.prototype.slice, handler; if (!method.formHandler) { handler = function() { me.configureRequest(action, method, slice.call(arguments, 0)); }; } else { ...
javascript
{ "resource": "" }
q61488
validation
function(transaction, event) { var success = !!event.status, funcName = success ? 'success' : 'failure', callback, options, result; if (transaction && transaction.callback) { callback = transaction.callback; options = transaction.callbackOptions;...
javascript
{ "resource": "" }
q61489
validation
function(options, success, response) { var me = this, i, len, events, event, transaction, transactions; if (success) { events = me.createEvents(response); for (i = 0, len = events.length; i < len; ++i) { event = events[i]; ...
javascript
{ "resource": "" }
q61490
validation
function(options) { return options && options.tid ? Ext.direct.Manager.getTransaction(options.tid) : null; }
javascript
{ "resource": "" }
q61491
validation
function(action, method, args) { var me = this, callData, data, callback, scope, opts, transaction, params; callData = method.getCallData(args); data = callData.data; callback = callData.callback; scope = callData.scope; opts = callData.options || ...
javascript
{ "resource": "" }
q61492
validation
function(transaction) { return { action: transaction.action, method: transaction.method, data: transaction.data, type: 'rpc', tid: transaction.id }; }
javascript
{ "resource": "" }
q61493
validation
function(transaction) { var me = this, enableBuffer = me.enableBuffer; if (transaction.form) { me.sendFormRequest(transaction); return; } if (typeof transaction.timeout !== 'undefined') { me.sendRequest(transaction); r...
javascript
{ "resource": "" }
q61494
validation
function() { var me = this, buffer = me.callBuffer, len = buffer.length; if (len > 0) { me.sendRequest(len == 1 ? buffer[0] : buffer); me.callBuffer = []; } }
javascript
{ "resource": "" }
q61495
createLookupTable
validation
function createLookupTable(option, default_value, extend) { var value = settings[option]; if (!value) { // Get cached default map or make it if needed value = mapCache[option]; if (!value) { value = makeMap(default_value, ' ', makeMap(default_value.toUpperCase(), ' ')); value = ti...
javascript
{ "resource": "" }
q61496
addCustomElements
validation
function addCustomElements(custom_elements) { var customElementRegExp = /^(~)?(.+)$/; if (custom_elements) { each(split(custom_elements), function(rule) { var matches = customElementRegExp.exec(rule), inline = matches[1] === '~', cloneName = inline ? 'span' : 'div', name = matc...
javascript
{ "resource": "" }
q61497
validation
function(node) { var contentEditable; // Check type if (node.nodeType != 1) { return null; } // Check for fake content editable contentEditable = node.getAttribute("data-mce-contenteditable"); if (contentEditable && contentEditable !== "inherit") { return contentEditable; }...
javascript
{ "resource": "" }
q61498
done
validation
function done() { dom.remove(id); if (elm) elm.onreadystatechange = elm.onload = elm = null; callback(); }
javascript
{ "resource": "" }
q61499
eventHandler
validation
function eventHandler(evt, args) { var type = evt.type; // Don't fire events when it's removed if (self.removed) return; // Sends the native event out to a global dispatcher then to the specific event dispatcher if (self.onEvent.dispatch(self, evt, args) !== false) { self[nativeToDispa...
javascript
{ "resource": "" }