Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: components.js
});
[51500] Fix | Delete
}
[51501] Fix | Delete
[51502] Fix | Delete
return items.find(function (item) {
[51503] Fix | Delete
return !item.disabled;
[51504] Fix | Delete
});
[51505] Fix | Delete
}
[51506] Fix | Delete
[51507] Fix | Delete
function getCurrentId(options, passedId) {
[51508] Fix | Delete
var _findFirstEnabledItem;
[51509] Fix | Delete
[51510] Fix | Delete
if (passedId || passedId === null) {
[51511] Fix | Delete
return passedId;
[51512] Fix | Delete
}
[51513] Fix | Delete
[51514] Fix | Delete
if (options.currentId || options.currentId === null) {
[51515] Fix | Delete
return options.currentId;
[51516] Fix | Delete
}
[51517] Fix | Delete
[51518] Fix | Delete
return (_findFirstEnabledItem = findFirstEnabledItem(options.items || [])) === null || _findFirstEnabledItem === void 0 ? void 0 : _findFirstEnabledItem.id;
[51519] Fix | Delete
}
[51520] Fix | Delete
[51521] Fix | Delete
[51522] Fix | Delete
[51523] Fix | Delete
[51524] Fix | Delete
/***/ }),
[51525] Fix | Delete
[51526] Fix | Delete
/***/ "ib7Q":
[51527] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[51528] Fix | Delete
[51529] Fix | Delete
"use strict";
[51530] Fix | Delete
[51531] Fix | Delete
[51532] Fix | Delete
var getPolyfill = __webpack_require__("xoj2");
[51533] Fix | Delete
var define = __webpack_require__("82c2");
[51534] Fix | Delete
[51535] Fix | Delete
module.exports = function shimValues() {
[51536] Fix | Delete
var polyfill = getPolyfill();
[51537] Fix | Delete
define(Object, { values: polyfill }, {
[51538] Fix | Delete
values: function testValues() {
[51539] Fix | Delete
return Object.values !== polyfill;
[51540] Fix | Delete
}
[51541] Fix | Delete
});
[51542] Fix | Delete
return polyfill;
[51543] Fix | Delete
};
[51544] Fix | Delete
[51545] Fix | Delete
[51546] Fix | Delete
/***/ }),
[51547] Fix | Delete
[51548] Fix | Delete
/***/ "ixHF":
[51549] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[51550] Fix | Delete
[51551] Fix | Delete
"use strict";
[51552] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _objectSpread2; });
[51553] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return _objectWithoutPropertiesLoose; });
[51554] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return _createForOfIteratorHelperLoose; });
[51555] Fix | Delete
function _defineProperty(obj, key, value) {
[51556] Fix | Delete
if (key in obj) {
[51557] Fix | Delete
Object.defineProperty(obj, key, {
[51558] Fix | Delete
value: value,
[51559] Fix | Delete
enumerable: true,
[51560] Fix | Delete
configurable: true,
[51561] Fix | Delete
writable: true
[51562] Fix | Delete
});
[51563] Fix | Delete
} else {
[51564] Fix | Delete
obj[key] = value;
[51565] Fix | Delete
}
[51566] Fix | Delete
[51567] Fix | Delete
return obj;
[51568] Fix | Delete
}
[51569] Fix | Delete
[51570] Fix | Delete
function ownKeys(object, enumerableOnly) {
[51571] Fix | Delete
var keys = Object.keys(object);
[51572] Fix | Delete
[51573] Fix | Delete
if (Object.getOwnPropertySymbols) {
[51574] Fix | Delete
var symbols = Object.getOwnPropertySymbols(object);
[51575] Fix | Delete
if (enumerableOnly) symbols = symbols.filter(function (sym) {
[51576] Fix | Delete
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
[51577] Fix | Delete
});
[51578] Fix | Delete
keys.push.apply(keys, symbols);
[51579] Fix | Delete
}
[51580] Fix | Delete
[51581] Fix | Delete
return keys;
[51582] Fix | Delete
}
[51583] Fix | Delete
[51584] Fix | Delete
function _objectSpread2(target) {
[51585] Fix | Delete
for (var i = 1; i < arguments.length; i++) {
[51586] Fix | Delete
var source = arguments[i] != null ? arguments[i] : {};
[51587] Fix | Delete
[51588] Fix | Delete
if (i % 2) {
[51589] Fix | Delete
ownKeys(Object(source), true).forEach(function (key) {
[51590] Fix | Delete
_defineProperty(target, key, source[key]);
[51591] Fix | Delete
});
[51592] Fix | Delete
} else if (Object.getOwnPropertyDescriptors) {
[51593] Fix | Delete
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
[51594] Fix | Delete
} else {
[51595] Fix | Delete
ownKeys(Object(source)).forEach(function (key) {
[51596] Fix | Delete
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
[51597] Fix | Delete
});
[51598] Fix | Delete
}
[51599] Fix | Delete
}
[51600] Fix | Delete
[51601] Fix | Delete
return target;
[51602] Fix | Delete
}
[51603] Fix | Delete
[51604] Fix | Delete
function _objectWithoutPropertiesLoose(source, excluded) {
[51605] Fix | Delete
if (source == null) return {};
[51606] Fix | Delete
var target = {};
[51607] Fix | Delete
var sourceKeys = Object.keys(source);
[51608] Fix | Delete
var key, i;
[51609] Fix | Delete
[51610] Fix | Delete
for (i = 0; i < sourceKeys.length; i++) {
[51611] Fix | Delete
key = sourceKeys[i];
[51612] Fix | Delete
if (excluded.indexOf(key) >= 0) continue;
[51613] Fix | Delete
target[key] = source[key];
[51614] Fix | Delete
}
[51615] Fix | Delete
[51616] Fix | Delete
return target;
[51617] Fix | Delete
}
[51618] Fix | Delete
[51619] Fix | Delete
function _unsupportedIterableToArray(o, minLen) {
[51620] Fix | Delete
if (!o) return;
[51621] Fix | Delete
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
[51622] Fix | Delete
var n = Object.prototype.toString.call(o).slice(8, -1);
[51623] Fix | Delete
if (n === "Object" && o.constructor) n = o.constructor.name;
[51624] Fix | Delete
if (n === "Map" || n === "Set") return Array.from(o);
[51625] Fix | Delete
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
[51626] Fix | Delete
}
[51627] Fix | Delete
[51628] Fix | Delete
function _arrayLikeToArray(arr, len) {
[51629] Fix | Delete
if (len == null || len > arr.length) len = arr.length;
[51630] Fix | Delete
[51631] Fix | Delete
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
[51632] Fix | Delete
[51633] Fix | Delete
return arr2;
[51634] Fix | Delete
}
[51635] Fix | Delete
[51636] Fix | Delete
function _createForOfIteratorHelperLoose(o, allowArrayLike) {
[51637] Fix | Delete
var it;
[51638] Fix | Delete
[51639] Fix | Delete
if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
[51640] Fix | Delete
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
[51641] Fix | Delete
if (it) o = it;
[51642] Fix | Delete
var i = 0;
[51643] Fix | Delete
return function () {
[51644] Fix | Delete
if (i >= o.length) return {
[51645] Fix | Delete
done: true
[51646] Fix | Delete
};
[51647] Fix | Delete
return {
[51648] Fix | Delete
done: false,
[51649] Fix | Delete
value: o[i++]
[51650] Fix | Delete
};
[51651] Fix | Delete
};
[51652] Fix | Delete
}
[51653] Fix | Delete
[51654] Fix | Delete
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
[51655] Fix | Delete
}
[51656] Fix | Delete
[51657] Fix | Delete
it = o[Symbol.iterator]();
[51658] Fix | Delete
return it.next.bind(it);
[51659] Fix | Delete
}
[51660] Fix | Delete
[51661] Fix | Delete
[51662] Fix | Delete
[51663] Fix | Delete
[51664] Fix | Delete
/***/ }),
[51665] Fix | Delete
[51666] Fix | Delete
/***/ "ixyq":
[51667] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[51668] Fix | Delete
[51669] Fix | Delete
"use strict";
[51670] Fix | Delete
[51671] Fix | Delete
[51672] Fix | Delete
Object.defineProperty(exports, "__esModule", {
[51673] Fix | Delete
value: true
[51674] Fix | Delete
});
[51675] Fix | Delete
exports['default'] = calculateDimension;
[51676] Fix | Delete
function calculateDimension(el, axis) {
[51677] Fix | Delete
var borderBox = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
[51678] Fix | Delete
var withMargin = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : false;
[51679] Fix | Delete
[51680] Fix | Delete
if (!el) {
[51681] Fix | Delete
return 0;
[51682] Fix | Delete
}
[51683] Fix | Delete
[51684] Fix | Delete
var axisStart = axis === 'width' ? 'Left' : 'Top';
[51685] Fix | Delete
var axisEnd = axis === 'width' ? 'Right' : 'Bottom';
[51686] Fix | Delete
[51687] Fix | Delete
// Only read styles if we need to
[51688] Fix | Delete
var style = !borderBox || withMargin ? window.getComputedStyle(el) : null;
[51689] Fix | Delete
[51690] Fix | Delete
// Offset includes border and padding
[51691] Fix | Delete
var offsetWidth = el.offsetWidth,
[51692] Fix | Delete
offsetHeight = el.offsetHeight;
[51693] Fix | Delete
[51694] Fix | Delete
var size = axis === 'width' ? offsetWidth : offsetHeight;
[51695] Fix | Delete
[51696] Fix | Delete
// Get the inner size
[51697] Fix | Delete
if (!borderBox) {
[51698] Fix | Delete
size -= parseFloat(style['padding' + axisStart]) + parseFloat(style['padding' + axisEnd]) + parseFloat(style['border' + axisStart + 'Width']) + parseFloat(style['border' + axisEnd + 'Width']);
[51699] Fix | Delete
}
[51700] Fix | Delete
[51701] Fix | Delete
// Apply margin
[51702] Fix | Delete
if (withMargin) {
[51703] Fix | Delete
size += parseFloat(style['margin' + axisStart]) + parseFloat(style['margin' + axisEnd]);
[51704] Fix | Delete
}
[51705] Fix | Delete
[51706] Fix | Delete
return size;
[51707] Fix | Delete
}
[51708] Fix | Delete
[51709] Fix | Delete
/***/ }),
[51710] Fix | Delete
[51711] Fix | Delete
/***/ "iz0l":
[51712] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[51713] Fix | Delete
[51714] Fix | Delete
"use strict";
[51715] Fix | Delete
[51716] Fix | Delete
[51717] Fix | Delete
var GetIntrinsic = __webpack_require__("AM7I");
[51718] Fix | Delete
[51719] Fix | Delete
var $TypeError = GetIntrinsic('%TypeError%');
[51720] Fix | Delete
[51721] Fix | Delete
var MAX_SAFE_INTEGER = __webpack_require__("yyeE");
[51722] Fix | Delete
[51723] Fix | Delete
var Call = __webpack_require__("fW1L");
[51724] Fix | Delete
var CreateDataPropertyOrThrow = __webpack_require__("WvKp");
[51725] Fix | Delete
var Get = __webpack_require__("3aeR");
[51726] Fix | Delete
var HasProperty = __webpack_require__("aenO");
[51727] Fix | Delete
var IsArray = __webpack_require__("9cOx");
[51728] Fix | Delete
var LengthOfArrayLike = __webpack_require__("y9oe");
[51729] Fix | Delete
var ToString = __webpack_require__("Hx/O");
[51730] Fix | Delete
[51731] Fix | Delete
// https://ecma-international.org/ecma-262/11.0/#sec-flattenintoarray
[51732] Fix | Delete
[51733] Fix | Delete
// eslint-disable-next-line max-params
[51734] Fix | Delete
module.exports = function FlattenIntoArray(target, source, sourceLen, start, depth) {
[51735] Fix | Delete
var mapperFunction;
[51736] Fix | Delete
if (arguments.length > 5) {
[51737] Fix | Delete
mapperFunction = arguments[5];
[51738] Fix | Delete
}
[51739] Fix | Delete
[51740] Fix | Delete
var targetIndex = start;
[51741] Fix | Delete
var sourceIndex = 0;
[51742] Fix | Delete
while (sourceIndex < sourceLen) {
[51743] Fix | Delete
var P = ToString(sourceIndex);
[51744] Fix | Delete
var exists = HasProperty(source, P);
[51745] Fix | Delete
if (exists === true) {
[51746] Fix | Delete
var element = Get(source, P);
[51747] Fix | Delete
if (typeof mapperFunction !== 'undefined') {
[51748] Fix | Delete
if (arguments.length <= 6) {
[51749] Fix | Delete
throw new $TypeError('Assertion failed: thisArg is required when mapperFunction is provided');
[51750] Fix | Delete
}
[51751] Fix | Delete
element = Call(mapperFunction, arguments[6], [element, sourceIndex, source]);
[51752] Fix | Delete
}
[51753] Fix | Delete
var shouldFlatten = false;
[51754] Fix | Delete
if (depth > 0) {
[51755] Fix | Delete
shouldFlatten = IsArray(element);
[51756] Fix | Delete
}
[51757] Fix | Delete
if (shouldFlatten) {
[51758] Fix | Delete
var elementLen = LengthOfArrayLike(element);
[51759] Fix | Delete
targetIndex = FlattenIntoArray(target, element, elementLen, targetIndex, depth - 1);
[51760] Fix | Delete
} else {
[51761] Fix | Delete
if (targetIndex >= MAX_SAFE_INTEGER) {
[51762] Fix | Delete
throw new $TypeError('index too large');
[51763] Fix | Delete
}
[51764] Fix | Delete
CreateDataPropertyOrThrow(target, ToString(targetIndex), element);
[51765] Fix | Delete
targetIndex += 1;
[51766] Fix | Delete
}
[51767] Fix | Delete
}
[51768] Fix | Delete
sourceIndex += 1;
[51769] Fix | Delete
}
[51770] Fix | Delete
[51771] Fix | Delete
return targetIndex;
[51772] Fix | Delete
};
[51773] Fix | Delete
[51774] Fix | Delete
[51775] Fix | Delete
/***/ }),
[51776] Fix | Delete
[51777] Fix | Delete
/***/ "jB5C":
[51778] Fix | Delete
/***/ (function(module, exports, __webpack_require__) {
[51779] Fix | Delete
[51780] Fix | Delete
"use strict";
[51781] Fix | Delete
[51782] Fix | Delete
[51783] Fix | Delete
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
[51784] Fix | Delete
[51785] Fix | Delete
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol ? "symbol" : typeof obj; };
[51786] Fix | Delete
[51787] Fix | Delete
var RE_NUM = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source;
[51788] Fix | Delete
[51789] Fix | Delete
function getClientPosition(elem) {
[51790] Fix | Delete
var box = undefined;
[51791] Fix | Delete
var x = undefined;
[51792] Fix | Delete
var y = undefined;
[51793] Fix | Delete
var doc = elem.ownerDocument;
[51794] Fix | Delete
var body = doc.body;
[51795] Fix | Delete
var docElem = doc && doc.documentElement;
[51796] Fix | Delete
// 根据 GBS 最新数据,A-Grade Browsers 都已支持 getBoundingClientRect 方法,不用再考虑传统的实现方式
[51797] Fix | Delete
box = elem.getBoundingClientRect();
[51798] Fix | Delete
[51799] Fix | Delete
// 注:jQuery 还考虑减去 docElem.clientLeft/clientTop
[51800] Fix | Delete
// 但测试发现,这样反而会导致当 html 和 body 有边距/边框样式时,获取的值不正确
[51801] Fix | Delete
// 此外,ie6 会忽略 html 的 margin 值,幸运地是没有谁会去设置 html 的 margin
[51802] Fix | Delete
[51803] Fix | Delete
x = box.left;
[51804] Fix | Delete
y = box.top;
[51805] Fix | Delete
[51806] Fix | Delete
// In IE, most of the time, 2 extra pixels are added to the top and left
[51807] Fix | Delete
// due to the implicit 2-pixel inset border. In IE6/7 quirks mode and
[51808] Fix | Delete
// IE6 standards mode, this border can be overridden by setting the
[51809] Fix | Delete
// document element's border to zero -- thus, we cannot rely on the
[51810] Fix | Delete
// offset always being 2 pixels.
[51811] Fix | Delete
[51812] Fix | Delete
// In quirks mode, the offset can be determined by querying the body's
[51813] Fix | Delete
// clientLeft/clientTop, but in standards mode, it is found by querying
[51814] Fix | Delete
// the document element's clientLeft/clientTop. Since we already called
[51815] Fix | Delete
// getClientBoundingRect we have already forced a reflow, so it is not
[51816] Fix | Delete
// too expensive just to query them all.
[51817] Fix | Delete
[51818] Fix | Delete
// ie 下应该减去窗口的边框吧,毕竟默认 absolute 都是相对窗口定位的
[51819] Fix | Delete
// 窗口边框标准是设 documentElement ,quirks 时设置 body
[51820] Fix | Delete
// 最好禁止在 body 和 html 上边框 ,但 ie < 9 html 默认有 2px ,减去
[51821] Fix | Delete
// 但是非 ie 不可能设置窗口边框,body html 也不是窗口 ,ie 可以通过 html,body 设置
[51822] Fix | Delete
// 标准 ie 下 docElem.clientTop 就是 border-top
[51823] Fix | Delete
// ie7 html 即窗口边框改变不了。永远为 2
[51824] Fix | Delete
// 但标准 firefox/chrome/ie9 下 docElem.clientTop 是窗口边框,即使设了 border-top 也为 0
[51825] Fix | Delete
[51826] Fix | Delete
x -= docElem.clientLeft || body.clientLeft || 0;
[51827] Fix | Delete
y -= docElem.clientTop || body.clientTop || 0;
[51828] Fix | Delete
[51829] Fix | Delete
return {
[51830] Fix | Delete
left: x,
[51831] Fix | Delete
top: y
[51832] Fix | Delete
};
[51833] Fix | Delete
}
[51834] Fix | Delete
[51835] Fix | Delete
function getScroll(w, top) {
[51836] Fix | Delete
var ret = w['page' + (top ? 'Y' : 'X') + 'Offset'];
[51837] Fix | Delete
var method = 'scroll' + (top ? 'Top' : 'Left');
[51838] Fix | Delete
if (typeof ret !== 'number') {
[51839] Fix | Delete
var d = w.document;
[51840] Fix | Delete
// ie6,7,8 standard mode
[51841] Fix | Delete
ret = d.documentElement[method];
[51842] Fix | Delete
if (typeof ret !== 'number') {
[51843] Fix | Delete
// quirks mode
[51844] Fix | Delete
ret = d.body[method];
[51845] Fix | Delete
}
[51846] Fix | Delete
}
[51847] Fix | Delete
return ret;
[51848] Fix | Delete
}
[51849] Fix | Delete
[51850] Fix | Delete
function getScrollLeft(w) {
[51851] Fix | Delete
return getScroll(w);
[51852] Fix | Delete
}
[51853] Fix | Delete
[51854] Fix | Delete
function getScrollTop(w) {
[51855] Fix | Delete
return getScroll(w, true);
[51856] Fix | Delete
}
[51857] Fix | Delete
[51858] Fix | Delete
function getOffset(el) {
[51859] Fix | Delete
var pos = getClientPosition(el);
[51860] Fix | Delete
var doc = el.ownerDocument;
[51861] Fix | Delete
var w = doc.defaultView || doc.parentWindow;
[51862] Fix | Delete
pos.left += getScrollLeft(w);
[51863] Fix | Delete
pos.top += getScrollTop(w);
[51864] Fix | Delete
return pos;
[51865] Fix | Delete
}
[51866] Fix | Delete
function _getComputedStyle(elem, name, computedStyle_) {
[51867] Fix | Delete
var val = '';
[51868] Fix | Delete
var d = elem.ownerDocument;
[51869] Fix | Delete
var computedStyle = computedStyle_ || d.defaultView.getComputedStyle(elem, null);
[51870] Fix | Delete
[51871] Fix | Delete
// https://github.com/kissyteam/kissy/issues/61
[51872] Fix | Delete
if (computedStyle) {
[51873] Fix | Delete
val = computedStyle.getPropertyValue(name) || computedStyle[name];
[51874] Fix | Delete
}
[51875] Fix | Delete
[51876] Fix | Delete
return val;
[51877] Fix | Delete
}
[51878] Fix | Delete
[51879] Fix | Delete
var _RE_NUM_NO_PX = new RegExp('^(' + RE_NUM + ')(?!px)[a-z%]+$', 'i');
[51880] Fix | Delete
var RE_POS = /^(top|right|bottom|left)$/;
[51881] Fix | Delete
var CURRENT_STYLE = 'currentStyle';
[51882] Fix | Delete
var RUNTIME_STYLE = 'runtimeStyle';
[51883] Fix | Delete
var LEFT = 'left';
[51884] Fix | Delete
var PX = 'px';
[51885] Fix | Delete
[51886] Fix | Delete
function _getComputedStyleIE(elem, name) {
[51887] Fix | Delete
// currentStyle maybe null
[51888] Fix | Delete
// http://msdn.microsoft.com/en-us/library/ms535231.aspx
[51889] Fix | Delete
var ret = elem[CURRENT_STYLE] && elem[CURRENT_STYLE][name];
[51890] Fix | Delete
[51891] Fix | Delete
// 当 width/height 设置为百分比时,通过 pixelLeft 方式转换的 width/height 值
[51892] Fix | Delete
// 一开始就处理了! CUSTOM_STYLE.height,CUSTOM_STYLE.width ,cssHook 解决@2011-08-19
[51893] Fix | Delete
// 在 ie 下不对,需要直接用 offset 方式
[51894] Fix | Delete
// borderWidth 等值也有问题,但考虑到 borderWidth 设为百分比的概率很小,这里就不考虑了
[51895] Fix | Delete
[51896] Fix | Delete
// From the awesome hack by Dean Edwards
[51897] Fix | Delete
// http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
[51898] Fix | Delete
// If we're not dealing with a regular pixel number
[51899] Fix | Delete
// but a number that has a weird ending, we need to convert it to pixels
[51900] Fix | Delete
// exclude left right for relativity
[51901] Fix | Delete
if (_RE_NUM_NO_PX.test(ret) && !RE_POS.test(name)) {
[51902] Fix | Delete
// Remember the original values
[51903] Fix | Delete
var style = elem.style;
[51904] Fix | Delete
var left = style[LEFT];
[51905] Fix | Delete
var rsLeft = elem[RUNTIME_STYLE][LEFT];
[51906] Fix | Delete
[51907] Fix | Delete
// prevent flashing of content
[51908] Fix | Delete
elem[RUNTIME_STYLE][LEFT] = elem[CURRENT_STYLE][LEFT];
[51909] Fix | Delete
[51910] Fix | Delete
// Put in the new values to get a computed value out
[51911] Fix | Delete
style[LEFT] = name === 'fontSize' ? '1em' : ret || 0;
[51912] Fix | Delete
ret = style.pixelLeft + PX;
[51913] Fix | Delete
[51914] Fix | Delete
// Revert the changed values
[51915] Fix | Delete
style[LEFT] = left;
[51916] Fix | Delete
[51917] Fix | Delete
elem[RUNTIME_STYLE][LEFT] = rsLeft;
[51918] Fix | Delete
}
[51919] Fix | Delete
return ret === '' ? 'auto' : ret;
[51920] Fix | Delete
}
[51921] Fix | Delete
[51922] Fix | Delete
var getComputedStyleX = undefined;
[51923] Fix | Delete
if (typeof window !== 'undefined') {
[51924] Fix | Delete
getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
[51925] Fix | Delete
}
[51926] Fix | Delete
[51927] Fix | Delete
function each(arr, fn) {
[51928] Fix | Delete
for (var i = 0; i < arr.length; i++) {
[51929] Fix | Delete
fn(arr[i]);
[51930] Fix | Delete
}
[51931] Fix | Delete
}
[51932] Fix | Delete
[51933] Fix | Delete
function isBorderBoxFn(elem) {
[51934] Fix | Delete
return getComputedStyleX(elem, 'boxSizing') === 'border-box';
[51935] Fix | Delete
}
[51936] Fix | Delete
[51937] Fix | Delete
var BOX_MODELS = ['margin', 'border', 'padding'];
[51938] Fix | Delete
var CONTENT_INDEX = -1;
[51939] Fix | Delete
var PADDING_INDEX = 2;
[51940] Fix | Delete
var BORDER_INDEX = 1;
[51941] Fix | Delete
var MARGIN_INDEX = 0;
[51942] Fix | Delete
[51943] Fix | Delete
function swap(elem, options, callback) {
[51944] Fix | Delete
var old = {};
[51945] Fix | Delete
var style = elem.style;
[51946] Fix | Delete
var name = undefined;
[51947] Fix | Delete
[51948] Fix | Delete
// Remember the old values, and insert the new ones
[51949] Fix | Delete
for (name in options) {
[51950] Fix | Delete
if (options.hasOwnProperty(name)) {
[51951] Fix | Delete
old[name] = style[name];
[51952] Fix | Delete
style[name] = options[name];
[51953] Fix | Delete
}
[51954] Fix | Delete
}
[51955] Fix | Delete
[51956] Fix | Delete
callback.call(elem);
[51957] Fix | Delete
[51958] Fix | Delete
// Revert the old values
[51959] Fix | Delete
for (name in options) {
[51960] Fix | Delete
if (options.hasOwnProperty(name)) {
[51961] Fix | Delete
style[name] = old[name];
[51962] Fix | Delete
}
[51963] Fix | Delete
}
[51964] Fix | Delete
}
[51965] Fix | Delete
[51966] Fix | Delete
function getPBMWidth(elem, props, which) {
[51967] Fix | Delete
var value = 0;
[51968] Fix | Delete
var prop = undefined;
[51969] Fix | Delete
var j = undefined;
[51970] Fix | Delete
var i = undefined;
[51971] Fix | Delete
for (j = 0; j < props.length; j++) {
[51972] Fix | Delete
prop = props[j];
[51973] Fix | Delete
if (prop) {
[51974] Fix | Delete
for (i = 0; i < which.length; i++) {
[51975] Fix | Delete
var cssProp = undefined;
[51976] Fix | Delete
if (prop === 'border') {
[51977] Fix | Delete
cssProp = prop + which[i] + 'Width';
[51978] Fix | Delete
} else {
[51979] Fix | Delete
cssProp = prop + which[i];
[51980] Fix | Delete
}
[51981] Fix | Delete
value += parseFloat(getComputedStyleX(elem, cssProp)) || 0;
[51982] Fix | Delete
}
[51983] Fix | Delete
}
[51984] Fix | Delete
}
[51985] Fix | Delete
return value;
[51986] Fix | Delete
}
[51987] Fix | Delete
[51988] Fix | Delete
/**
[51989] Fix | Delete
* A crude way of determining if an object is a window
[51990] Fix | Delete
* @member util
[51991] Fix | Delete
*/
[51992] Fix | Delete
function isWindow(obj) {
[51993] Fix | Delete
// must use == for ie8
[51994] Fix | Delete
/* eslint eqeqeq:0 */
[51995] Fix | Delete
return obj != null && obj == obj.window;
[51996] Fix | Delete
}
[51997] Fix | Delete
[51998] Fix | Delete
var domUtils = {};
[51999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function