mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 17:23:02 +00:00
Avoid textContent-related layout thrashing
See https://bugzilla.mozilla.org/show_bug.cgi?id=725221, https://bugzilla.mozilla.org/show_bug.cgi?id=873425.
This commit is contained in:
4
js/lib/d3.v3.js
vendored
4
js/lib/d3.v3.js
vendored
@@ -958,8 +958,8 @@ d3_selectionPrototype.text = function(value) {
|
||||
return arguments.length
|
||||
? this.each(typeof value === "function"
|
||||
? function() { var v = value.apply(this, arguments); this.textContent = v == null ? "" : v; } : value == null
|
||||
? function() { this.textContent = ""; }
|
||||
: function() { this.textContent = value; })
|
||||
? function() { if (this.textContent !== "") this.textContent = ""; }
|
||||
: function() { if (this.textContent !== value) this.textContent = value; })
|
||||
: this.node().textContent;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user