MCPcopy Index your code
hub / github.com/OneNoteDev/WebClipper / haveSameColor

Function haveSameColor

src/scripts/highlighting/textHighlighter.js:56–58  ·  view source on GitHub ↗

* Returns true if elements a i b have the same color. * @param {Node} a * @param {Node} b * @returns {boolean}

(a, b)

Source from the content-addressed store, hash-verified

54 * @returns {boolean}
55 */
56 function haveSameColor(a, b) {
57 return dom(a).color() === dom(b).color();
58 }
59
60 /**
61 * Fills undefined values in obj with default properties with the same name from source object.

Callers 2

flattenOnceFunction · 0.85
shouldMergeFunction · 0.85

Calls 1

domFunction · 0.85

Tested by

no test coverage detected