MCPcopy Create free account
hub / github.com/TruthHun/BookStack / buildCommon_canCombine

Function buildCommon_canCombine

static/katex/katex.js:5532–5550  ·  view source on GitHub ↗
(prev, next)

Source from the content-addressed store, hash-verified

5530
5531
5532var buildCommon_canCombine = function canCombine(prev, next) {
5533 if (createClass(prev.classes) !== createClass(next.classes) || prev.skew !== next.skew || prev.maxFontSize !== next.maxFontSize) {
5534 return false;
5535 }
5536
5537 for (var style in prev.style) {
5538 if (prev.style.hasOwnProperty(style) && prev.style[style] !== next.style[style]) {
5539 return false;
5540 }
5541 }
5542
5543 for (var _style in next.style) {
5544 if (next.style.hasOwnProperty(_style) && prev.style[_style] !== next.style[_style]) {
5545 return false;
5546 }
5547 }
5548
5549 return true;
5550};
5551/**
5552 * Combine consequetive domTree.symbolNodes into a single symbolNode.
5553 * Note: this function mutates the argument.

Callers 1

Calls 1

createClassFunction · 0.70

Tested by

no test coverage detected