Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/tinymce/themes/modern
File: theme.js
this.fire('change', args);
[2000] Fix | Delete
}
[2001] Fix | Delete
return this;
[2002] Fix | Delete
},
[2003] Fix | Delete
get: function (name) {
[2004] Fix | Delete
return this.data[name];
[2005] Fix | Delete
},
[2006] Fix | Delete
has: function (name) {
[2007] Fix | Delete
return name in this.data;
[2008] Fix | Delete
},
[2009] Fix | Delete
bind: function (name) {
[2010] Fix | Delete
return Binding.create(this, name);
[2011] Fix | Delete
},
[2012] Fix | Delete
destroy: function () {
[2013] Fix | Delete
this.fire('destroy');
[2014] Fix | Delete
}
[2015] Fix | Delete
});
[2016] Fix | Delete
[2017] Fix | Delete
var dirtyCtrls = {}, animationFrameRequested;
[2018] Fix | Delete
var ReflowQueue = {
[2019] Fix | Delete
add: function (ctrl) {
[2020] Fix | Delete
var parent = ctrl.parent();
[2021] Fix | Delete
if (parent) {
[2022] Fix | Delete
if (!parent._layout || parent._layout.isNative()) {
[2023] Fix | Delete
return;
[2024] Fix | Delete
}
[2025] Fix | Delete
if (!dirtyCtrls[parent._id]) {
[2026] Fix | Delete
dirtyCtrls[parent._id] = parent;
[2027] Fix | Delete
}
[2028] Fix | Delete
if (!animationFrameRequested) {
[2029] Fix | Delete
animationFrameRequested = true;
[2030] Fix | Delete
global$7.requestAnimationFrame(function () {
[2031] Fix | Delete
var id, ctrl;
[2032] Fix | Delete
animationFrameRequested = false;
[2033] Fix | Delete
for (id in dirtyCtrls) {
[2034] Fix | Delete
ctrl = dirtyCtrls[id];
[2035] Fix | Delete
if (ctrl.state.get('rendered')) {
[2036] Fix | Delete
ctrl.reflow();
[2037] Fix | Delete
}
[2038] Fix | Delete
}
[2039] Fix | Delete
dirtyCtrls = {};
[2040] Fix | Delete
}, domGlobals.document.body);
[2041] Fix | Delete
}
[2042] Fix | Delete
}
[2043] Fix | Delete
},
[2044] Fix | Delete
remove: function (ctrl) {
[2045] Fix | Delete
if (dirtyCtrls[ctrl._id]) {
[2046] Fix | Delete
delete dirtyCtrls[ctrl._id];
[2047] Fix | Delete
}
[2048] Fix | Delete
}
[2049] Fix | Delete
};
[2050] Fix | Delete
[2051] Fix | Delete
var hasMouseWheelEventSupport = 'onmousewheel' in domGlobals.document;
[2052] Fix | Delete
var hasWheelEventSupport = false;
[2053] Fix | Delete
var classPrefix = 'mce-';
[2054] Fix | Delete
var Control, idCounter = 0;
[2055] Fix | Delete
var proto$1 = {
[2056] Fix | Delete
Statics: { classPrefix: classPrefix },
[2057] Fix | Delete
isRtl: function () {
[2058] Fix | Delete
return Control.rtl;
[2059] Fix | Delete
},
[2060] Fix | Delete
classPrefix: classPrefix,
[2061] Fix | Delete
init: function (settings) {
[2062] Fix | Delete
var self = this;
[2063] Fix | Delete
var classes, defaultClasses;
[2064] Fix | Delete
function applyClasses(classes) {
[2065] Fix | Delete
var i;
[2066] Fix | Delete
classes = classes.split(' ');
[2067] Fix | Delete
for (i = 0; i < classes.length; i++) {
[2068] Fix | Delete
self.classes.add(classes[i]);
[2069] Fix | Delete
}
[2070] Fix | Delete
}
[2071] Fix | Delete
self.settings = settings = global$2.extend({}, self.Defaults, settings);
[2072] Fix | Delete
self._id = settings.id || 'mceu_' + idCounter++;
[2073] Fix | Delete
self._aria = { role: settings.role };
[2074] Fix | Delete
self._elmCache = {};
[2075] Fix | Delete
self.$ = global$9;
[2076] Fix | Delete
self.state = new ObservableObject({
[2077] Fix | Delete
visible: true,
[2078] Fix | Delete
active: false,
[2079] Fix | Delete
disabled: false,
[2080] Fix | Delete
value: ''
[2081] Fix | Delete
});
[2082] Fix | Delete
self.data = new ObservableObject(settings.data);
[2083] Fix | Delete
self.classes = new ClassList(function () {
[2084] Fix | Delete
if (self.state.get('rendered')) {
[2085] Fix | Delete
self.getEl().className = this.toString();
[2086] Fix | Delete
}
[2087] Fix | Delete
});
[2088] Fix | Delete
self.classes.prefix = self.classPrefix;
[2089] Fix | Delete
classes = settings.classes;
[2090] Fix | Delete
if (classes) {
[2091] Fix | Delete
if (self.Defaults) {
[2092] Fix | Delete
defaultClasses = self.Defaults.classes;
[2093] Fix | Delete
if (defaultClasses && classes !== defaultClasses) {
[2094] Fix | Delete
applyClasses(defaultClasses);
[2095] Fix | Delete
}
[2096] Fix | Delete
}
[2097] Fix | Delete
applyClasses(classes);
[2098] Fix | Delete
}
[2099] Fix | Delete
global$2.each('title text name visible disabled active value'.split(' '), function (name) {
[2100] Fix | Delete
if (name in settings) {
[2101] Fix | Delete
self[name](settings[name]);
[2102] Fix | Delete
}
[2103] Fix | Delete
});
[2104] Fix | Delete
self.on('click', function () {
[2105] Fix | Delete
if (self.disabled()) {
[2106] Fix | Delete
return false;
[2107] Fix | Delete
}
[2108] Fix | Delete
});
[2109] Fix | Delete
self.settings = settings;
[2110] Fix | Delete
self.borderBox = BoxUtils.parseBox(settings.border);
[2111] Fix | Delete
self.paddingBox = BoxUtils.parseBox(settings.padding);
[2112] Fix | Delete
self.marginBox = BoxUtils.parseBox(settings.margin);
[2113] Fix | Delete
if (settings.hidden) {
[2114] Fix | Delete
self.hide();
[2115] Fix | Delete
}
[2116] Fix | Delete
},
[2117] Fix | Delete
Properties: 'parent,name',
[2118] Fix | Delete
getContainerElm: function () {
[2119] Fix | Delete
var uiContainer = UiContainer.getUiContainer(this);
[2120] Fix | Delete
return uiContainer ? uiContainer : funcs.getContainer();
[2121] Fix | Delete
},
[2122] Fix | Delete
getParentCtrl: function (elm) {
[2123] Fix | Delete
var ctrl;
[2124] Fix | Delete
var lookup = this.getRoot().controlIdLookup;
[2125] Fix | Delete
while (elm && lookup) {
[2126] Fix | Delete
ctrl = lookup[elm.id];
[2127] Fix | Delete
if (ctrl) {
[2128] Fix | Delete
break;
[2129] Fix | Delete
}
[2130] Fix | Delete
elm = elm.parentNode;
[2131] Fix | Delete
}
[2132] Fix | Delete
return ctrl;
[2133] Fix | Delete
},
[2134] Fix | Delete
initLayoutRect: function () {
[2135] Fix | Delete
var self = this;
[2136] Fix | Delete
var settings = self.settings;
[2137] Fix | Delete
var borderBox, layoutRect;
[2138] Fix | Delete
var elm = self.getEl();
[2139] Fix | Delete
var width, height, minWidth, minHeight, autoResize;
[2140] Fix | Delete
var startMinWidth, startMinHeight, initialSize;
[2141] Fix | Delete
borderBox = self.borderBox = self.borderBox || BoxUtils.measureBox(elm, 'border');
[2142] Fix | Delete
self.paddingBox = self.paddingBox || BoxUtils.measureBox(elm, 'padding');
[2143] Fix | Delete
self.marginBox = self.marginBox || BoxUtils.measureBox(elm, 'margin');
[2144] Fix | Delete
initialSize = funcs.getSize(elm);
[2145] Fix | Delete
startMinWidth = settings.minWidth;
[2146] Fix | Delete
startMinHeight = settings.minHeight;
[2147] Fix | Delete
minWidth = startMinWidth || initialSize.width;
[2148] Fix | Delete
minHeight = startMinHeight || initialSize.height;
[2149] Fix | Delete
width = settings.width;
[2150] Fix | Delete
height = settings.height;
[2151] Fix | Delete
autoResize = settings.autoResize;
[2152] Fix | Delete
autoResize = typeof autoResize !== 'undefined' ? autoResize : !width && !height;
[2153] Fix | Delete
width = width || minWidth;
[2154] Fix | Delete
height = height || minHeight;
[2155] Fix | Delete
var deltaW = borderBox.left + borderBox.right;
[2156] Fix | Delete
var deltaH = borderBox.top + borderBox.bottom;
[2157] Fix | Delete
var maxW = settings.maxWidth || 65535;
[2158] Fix | Delete
var maxH = settings.maxHeight || 65535;
[2159] Fix | Delete
self._layoutRect = layoutRect = {
[2160] Fix | Delete
x: settings.x || 0,
[2161] Fix | Delete
y: settings.y || 0,
[2162] Fix | Delete
w: width,
[2163] Fix | Delete
h: height,
[2164] Fix | Delete
deltaW: deltaW,
[2165] Fix | Delete
deltaH: deltaH,
[2166] Fix | Delete
contentW: width - deltaW,
[2167] Fix | Delete
contentH: height - deltaH,
[2168] Fix | Delete
innerW: width - deltaW,
[2169] Fix | Delete
innerH: height - deltaH,
[2170] Fix | Delete
startMinWidth: startMinWidth || 0,
[2171] Fix | Delete
startMinHeight: startMinHeight || 0,
[2172] Fix | Delete
minW: Math.min(minWidth, maxW),
[2173] Fix | Delete
minH: Math.min(minHeight, maxH),
[2174] Fix | Delete
maxW: maxW,
[2175] Fix | Delete
maxH: maxH,
[2176] Fix | Delete
autoResize: autoResize,
[2177] Fix | Delete
scrollW: 0
[2178] Fix | Delete
};
[2179] Fix | Delete
self._lastLayoutRect = {};
[2180] Fix | Delete
return layoutRect;
[2181] Fix | Delete
},
[2182] Fix | Delete
layoutRect: function (newRect) {
[2183] Fix | Delete
var self = this;
[2184] Fix | Delete
var curRect = self._layoutRect, lastLayoutRect, size, deltaWidth, deltaHeight, repaintControls;
[2185] Fix | Delete
if (!curRect) {
[2186] Fix | Delete
curRect = self.initLayoutRect();
[2187] Fix | Delete
}
[2188] Fix | Delete
if (newRect) {
[2189] Fix | Delete
deltaWidth = curRect.deltaW;
[2190] Fix | Delete
deltaHeight = curRect.deltaH;
[2191] Fix | Delete
if (newRect.x !== undefined) {
[2192] Fix | Delete
curRect.x = newRect.x;
[2193] Fix | Delete
}
[2194] Fix | Delete
if (newRect.y !== undefined) {
[2195] Fix | Delete
curRect.y = newRect.y;
[2196] Fix | Delete
}
[2197] Fix | Delete
if (newRect.minW !== undefined) {
[2198] Fix | Delete
curRect.minW = newRect.minW;
[2199] Fix | Delete
}
[2200] Fix | Delete
if (newRect.minH !== undefined) {
[2201] Fix | Delete
curRect.minH = newRect.minH;
[2202] Fix | Delete
}
[2203] Fix | Delete
size = newRect.w;
[2204] Fix | Delete
if (size !== undefined) {
[2205] Fix | Delete
size = size < curRect.minW ? curRect.minW : size;
[2206] Fix | Delete
size = size > curRect.maxW ? curRect.maxW : size;
[2207] Fix | Delete
curRect.w = size;
[2208] Fix | Delete
curRect.innerW = size - deltaWidth;
[2209] Fix | Delete
}
[2210] Fix | Delete
size = newRect.h;
[2211] Fix | Delete
if (size !== undefined) {
[2212] Fix | Delete
size = size < curRect.minH ? curRect.minH : size;
[2213] Fix | Delete
size = size > curRect.maxH ? curRect.maxH : size;
[2214] Fix | Delete
curRect.h = size;
[2215] Fix | Delete
curRect.innerH = size - deltaHeight;
[2216] Fix | Delete
}
[2217] Fix | Delete
size = newRect.innerW;
[2218] Fix | Delete
if (size !== undefined) {
[2219] Fix | Delete
size = size < curRect.minW - deltaWidth ? curRect.minW - deltaWidth : size;
[2220] Fix | Delete
size = size > curRect.maxW - deltaWidth ? curRect.maxW - deltaWidth : size;
[2221] Fix | Delete
curRect.innerW = size;
[2222] Fix | Delete
curRect.w = size + deltaWidth;
[2223] Fix | Delete
}
[2224] Fix | Delete
size = newRect.innerH;
[2225] Fix | Delete
if (size !== undefined) {
[2226] Fix | Delete
size = size < curRect.minH - deltaHeight ? curRect.minH - deltaHeight : size;
[2227] Fix | Delete
size = size > curRect.maxH - deltaHeight ? curRect.maxH - deltaHeight : size;
[2228] Fix | Delete
curRect.innerH = size;
[2229] Fix | Delete
curRect.h = size + deltaHeight;
[2230] Fix | Delete
}
[2231] Fix | Delete
if (newRect.contentW !== undefined) {
[2232] Fix | Delete
curRect.contentW = newRect.contentW;
[2233] Fix | Delete
}
[2234] Fix | Delete
if (newRect.contentH !== undefined) {
[2235] Fix | Delete
curRect.contentH = newRect.contentH;
[2236] Fix | Delete
}
[2237] Fix | Delete
lastLayoutRect = self._lastLayoutRect;
[2238] Fix | Delete
if (lastLayoutRect.x !== curRect.x || lastLayoutRect.y !== curRect.y || lastLayoutRect.w !== curRect.w || lastLayoutRect.h !== curRect.h) {
[2239] Fix | Delete
repaintControls = Control.repaintControls;
[2240] Fix | Delete
if (repaintControls) {
[2241] Fix | Delete
if (repaintControls.map && !repaintControls.map[self._id]) {
[2242] Fix | Delete
repaintControls.push(self);
[2243] Fix | Delete
repaintControls.map[self._id] = true;
[2244] Fix | Delete
}
[2245] Fix | Delete
}
[2246] Fix | Delete
lastLayoutRect.x = curRect.x;
[2247] Fix | Delete
lastLayoutRect.y = curRect.y;
[2248] Fix | Delete
lastLayoutRect.w = curRect.w;
[2249] Fix | Delete
lastLayoutRect.h = curRect.h;
[2250] Fix | Delete
}
[2251] Fix | Delete
return self;
[2252] Fix | Delete
}
[2253] Fix | Delete
return curRect;
[2254] Fix | Delete
},
[2255] Fix | Delete
repaint: function () {
[2256] Fix | Delete
var self = this;
[2257] Fix | Delete
var style, bodyStyle, bodyElm, rect, borderBox;
[2258] Fix | Delete
var borderW, borderH, lastRepaintRect, round, value;
[2259] Fix | Delete
round = !domGlobals.document.createRange ? Math.round : function (value) {
[2260] Fix | Delete
return value;
[2261] Fix | Delete
};
[2262] Fix | Delete
style = self.getEl().style;
[2263] Fix | Delete
rect = self._layoutRect;
[2264] Fix | Delete
lastRepaintRect = self._lastRepaintRect || {};
[2265] Fix | Delete
borderBox = self.borderBox;
[2266] Fix | Delete
borderW = borderBox.left + borderBox.right;
[2267] Fix | Delete
borderH = borderBox.top + borderBox.bottom;
[2268] Fix | Delete
if (rect.x !== lastRepaintRect.x) {
[2269] Fix | Delete
style.left = round(rect.x) + 'px';
[2270] Fix | Delete
lastRepaintRect.x = rect.x;
[2271] Fix | Delete
}
[2272] Fix | Delete
if (rect.y !== lastRepaintRect.y) {
[2273] Fix | Delete
style.top = round(rect.y) + 'px';
[2274] Fix | Delete
lastRepaintRect.y = rect.y;
[2275] Fix | Delete
}
[2276] Fix | Delete
if (rect.w !== lastRepaintRect.w) {
[2277] Fix | Delete
value = round(rect.w - borderW);
[2278] Fix | Delete
style.width = (value >= 0 ? value : 0) + 'px';
[2279] Fix | Delete
lastRepaintRect.w = rect.w;
[2280] Fix | Delete
}
[2281] Fix | Delete
if (rect.h !== lastRepaintRect.h) {
[2282] Fix | Delete
value = round(rect.h - borderH);
[2283] Fix | Delete
style.height = (value >= 0 ? value : 0) + 'px';
[2284] Fix | Delete
lastRepaintRect.h = rect.h;
[2285] Fix | Delete
}
[2286] Fix | Delete
if (self._hasBody && rect.innerW !== lastRepaintRect.innerW) {
[2287] Fix | Delete
value = round(rect.innerW);
[2288] Fix | Delete
bodyElm = self.getEl('body');
[2289] Fix | Delete
if (bodyElm) {
[2290] Fix | Delete
bodyStyle = bodyElm.style;
[2291] Fix | Delete
bodyStyle.width = (value >= 0 ? value : 0) + 'px';
[2292] Fix | Delete
}
[2293] Fix | Delete
lastRepaintRect.innerW = rect.innerW;
[2294] Fix | Delete
}
[2295] Fix | Delete
if (self._hasBody && rect.innerH !== lastRepaintRect.innerH) {
[2296] Fix | Delete
value = round(rect.innerH);
[2297] Fix | Delete
bodyElm = bodyElm || self.getEl('body');
[2298] Fix | Delete
if (bodyElm) {
[2299] Fix | Delete
bodyStyle = bodyStyle || bodyElm.style;
[2300] Fix | Delete
bodyStyle.height = (value >= 0 ? value : 0) + 'px';
[2301] Fix | Delete
}
[2302] Fix | Delete
lastRepaintRect.innerH = rect.innerH;
[2303] Fix | Delete
}
[2304] Fix | Delete
self._lastRepaintRect = lastRepaintRect;
[2305] Fix | Delete
self.fire('repaint', {}, false);
[2306] Fix | Delete
},
[2307] Fix | Delete
updateLayoutRect: function () {
[2308] Fix | Delete
var self = this;
[2309] Fix | Delete
self.parent()._lastRect = null;
[2310] Fix | Delete
funcs.css(self.getEl(), {
[2311] Fix | Delete
width: '',
[2312] Fix | Delete
height: ''
[2313] Fix | Delete
});
[2314] Fix | Delete
self._layoutRect = self._lastRepaintRect = self._lastLayoutRect = null;
[2315] Fix | Delete
self.initLayoutRect();
[2316] Fix | Delete
},
[2317] Fix | Delete
on: function (name, callback) {
[2318] Fix | Delete
var self = this;
[2319] Fix | Delete
function resolveCallbackName(name) {
[2320] Fix | Delete
var callback, scope;
[2321] Fix | Delete
if (typeof name !== 'string') {
[2322] Fix | Delete
return name;
[2323] Fix | Delete
}
[2324] Fix | Delete
return function (e) {
[2325] Fix | Delete
if (!callback) {
[2326] Fix | Delete
self.parentsAndSelf().each(function (ctrl) {
[2327] Fix | Delete
var callbacks = ctrl.settings.callbacks;
[2328] Fix | Delete
if (callbacks && (callback = callbacks[name])) {
[2329] Fix | Delete
scope = ctrl;
[2330] Fix | Delete
return false;
[2331] Fix | Delete
}
[2332] Fix | Delete
});
[2333] Fix | Delete
}
[2334] Fix | Delete
if (!callback) {
[2335] Fix | Delete
e.action = name;
[2336] Fix | Delete
this.fire('execute', e);
[2337] Fix | Delete
return;
[2338] Fix | Delete
}
[2339] Fix | Delete
return callback.call(scope, e);
[2340] Fix | Delete
};
[2341] Fix | Delete
}
[2342] Fix | Delete
getEventDispatcher(self).on(name, resolveCallbackName(callback));
[2343] Fix | Delete
return self;
[2344] Fix | Delete
},
[2345] Fix | Delete
off: function (name, callback) {
[2346] Fix | Delete
getEventDispatcher(this).off(name, callback);
[2347] Fix | Delete
return this;
[2348] Fix | Delete
},
[2349] Fix | Delete
fire: function (name, args, bubble) {
[2350] Fix | Delete
var self = this;
[2351] Fix | Delete
args = args || {};
[2352] Fix | Delete
if (!args.control) {
[2353] Fix | Delete
args.control = self;
[2354] Fix | Delete
}
[2355] Fix | Delete
args = getEventDispatcher(self).fire(name, args);
[2356] Fix | Delete
if (bubble !== false && self.parent) {
[2357] Fix | Delete
var parent = self.parent();
[2358] Fix | Delete
while (parent && !args.isPropagationStopped()) {
[2359] Fix | Delete
parent.fire(name, args, false);
[2360] Fix | Delete
parent = parent.parent();
[2361] Fix | Delete
}
[2362] Fix | Delete
}
[2363] Fix | Delete
return args;
[2364] Fix | Delete
},
[2365] Fix | Delete
hasEventListeners: function (name) {
[2366] Fix | Delete
return getEventDispatcher(this).has(name);
[2367] Fix | Delete
},
[2368] Fix | Delete
parents: function (selector) {
[2369] Fix | Delete
var self = this;
[2370] Fix | Delete
var ctrl, parents = new Collection$2();
[2371] Fix | Delete
for (ctrl = self.parent(); ctrl; ctrl = ctrl.parent()) {
[2372] Fix | Delete
parents.add(ctrl);
[2373] Fix | Delete
}
[2374] Fix | Delete
if (selector) {
[2375] Fix | Delete
parents = parents.filter(selector);
[2376] Fix | Delete
}
[2377] Fix | Delete
return parents;
[2378] Fix | Delete
},
[2379] Fix | Delete
parentsAndSelf: function (selector) {
[2380] Fix | Delete
return new Collection$2(this).add(this.parents(selector));
[2381] Fix | Delete
},
[2382] Fix | Delete
next: function () {
[2383] Fix | Delete
var parentControls = this.parent().items();
[2384] Fix | Delete
return parentControls[parentControls.indexOf(this) + 1];
[2385] Fix | Delete
},
[2386] Fix | Delete
prev: function () {
[2387] Fix | Delete
var parentControls = this.parent().items();
[2388] Fix | Delete
return parentControls[parentControls.indexOf(this) - 1];
[2389] Fix | Delete
},
[2390] Fix | Delete
innerHtml: function (html) {
[2391] Fix | Delete
this.$el.html(html);
[2392] Fix | Delete
return this;
[2393] Fix | Delete
},
[2394] Fix | Delete
getEl: function (suffix) {
[2395] Fix | Delete
var id = suffix ? this._id + '-' + suffix : this._id;
[2396] Fix | Delete
if (!this._elmCache[id]) {
[2397] Fix | Delete
this._elmCache[id] = global$9('#' + id)[0];
[2398] Fix | Delete
}
[2399] Fix | Delete
return this._elmCache[id];
[2400] Fix | Delete
},
[2401] Fix | Delete
show: function () {
[2402] Fix | Delete
return this.visible(true);
[2403] Fix | Delete
},
[2404] Fix | Delete
hide: function () {
[2405] Fix | Delete
return this.visible(false);
[2406] Fix | Delete
},
[2407] Fix | Delete
focus: function () {
[2408] Fix | Delete
try {
[2409] Fix | Delete
this.getEl().focus();
[2410] Fix | Delete
} catch (ex) {
[2411] Fix | Delete
}
[2412] Fix | Delete
return this;
[2413] Fix | Delete
},
[2414] Fix | Delete
blur: function () {
[2415] Fix | Delete
this.getEl().blur();
[2416] Fix | Delete
return this;
[2417] Fix | Delete
},
[2418] Fix | Delete
aria: function (name, value) {
[2419] Fix | Delete
var self = this, elm = self.getEl(self.ariaTarget);
[2420] Fix | Delete
if (typeof value === 'undefined') {
[2421] Fix | Delete
return self._aria[name];
[2422] Fix | Delete
}
[2423] Fix | Delete
self._aria[name] = value;
[2424] Fix | Delete
if (self.state.get('rendered')) {
[2425] Fix | Delete
elm.setAttribute(name === 'role' ? name : 'aria-' + name, value);
[2426] Fix | Delete
}
[2427] Fix | Delete
return self;
[2428] Fix | Delete
},
[2429] Fix | Delete
encode: function (text, translate) {
[2430] Fix | Delete
if (translate !== false) {
[2431] Fix | Delete
text = this.translate(text);
[2432] Fix | Delete
}
[2433] Fix | Delete
return (text || '').replace(/[&<>"]/g, function (match) {
[2434] Fix | Delete
return '&#' + match.charCodeAt(0) + ';';
[2435] Fix | Delete
});
[2436] Fix | Delete
},
[2437] Fix | Delete
translate: function (text) {
[2438] Fix | Delete
return Control.translate ? Control.translate(text) : text;
[2439] Fix | Delete
},
[2440] Fix | Delete
before: function (items) {
[2441] Fix | Delete
var self = this, parent = self.parent();
[2442] Fix | Delete
if (parent) {
[2443] Fix | Delete
parent.insert(items, parent.items().indexOf(self), true);
[2444] Fix | Delete
}
[2445] Fix | Delete
return self;
[2446] Fix | Delete
},
[2447] Fix | Delete
after: function (items) {
[2448] Fix | Delete
var self = this, parent = self.parent();
[2449] Fix | Delete
if (parent) {
[2450] Fix | Delete
parent.insert(items, parent.items().indexOf(self));
[2451] Fix | Delete
}
[2452] Fix | Delete
return self;
[2453] Fix | Delete
},
[2454] Fix | Delete
remove: function () {
[2455] Fix | Delete
var self = this;
[2456] Fix | Delete
var elm = self.getEl();
[2457] Fix | Delete
var parent = self.parent();
[2458] Fix | Delete
var newItems, i;
[2459] Fix | Delete
if (self.items) {
[2460] Fix | Delete
var controls = self.items().toArray();
[2461] Fix | Delete
i = controls.length;
[2462] Fix | Delete
while (i--) {
[2463] Fix | Delete
controls[i].remove();
[2464] Fix | Delete
}
[2465] Fix | Delete
}
[2466] Fix | Delete
if (parent && parent.items) {
[2467] Fix | Delete
newItems = [];
[2468] Fix | Delete
parent.items().each(function (item) {
[2469] Fix | Delete
if (item !== self) {
[2470] Fix | Delete
newItems.push(item);
[2471] Fix | Delete
}
[2472] Fix | Delete
});
[2473] Fix | Delete
parent.items().set(newItems);
[2474] Fix | Delete
parent._lastRect = null;
[2475] Fix | Delete
}
[2476] Fix | Delete
if (self._eventsRoot && self._eventsRoot === self) {
[2477] Fix | Delete
global$9(elm).off();
[2478] Fix | Delete
}
[2479] Fix | Delete
var lookup = self.getRoot().controlIdLookup;
[2480] Fix | Delete
if (lookup) {
[2481] Fix | Delete
delete lookup[self._id];
[2482] Fix | Delete
}
[2483] Fix | Delete
if (elm && elm.parentNode) {
[2484] Fix | Delete
elm.parentNode.removeChild(elm);
[2485] Fix | Delete
}
[2486] Fix | Delete
self.state.set('rendered', false);
[2487] Fix | Delete
self.state.destroy();
[2488] Fix | Delete
self.fire('remove');
[2489] Fix | Delete
return self;
[2490] Fix | Delete
},
[2491] Fix | Delete
renderBefore: function (elm) {
[2492] Fix | Delete
global$9(elm).before(this.renderHtml());
[2493] Fix | Delete
this.postRender();
[2494] Fix | Delete
return this;
[2495] Fix | Delete
},
[2496] Fix | Delete
renderTo: function (elm) {
[2497] Fix | Delete
global$9(elm || this.getContainerElm()).append(this.renderHtml());
[2498] Fix | Delete
this.postRender();
[2499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function