mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Cache backgroundImages request for nodes
This commit is contained in:
parent
1a7f5732bf
commit
0cb259f6cd
@ -6,6 +6,7 @@ function NodeContainer(node, parent) {
|
|||||||
this.visible = null;
|
this.visible = null;
|
||||||
this.computedStyles = null;
|
this.computedStyles = null;
|
||||||
this.styles = {};
|
this.styles = {};
|
||||||
|
this.backgroundImages = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
NodeContainer.prototype.assignStack = function(stack) {
|
NodeContainer.prototype.assignStack = function(stack) {
|
||||||
@ -143,5 +144,5 @@ NodeContainer.prototype.parseBackgroundImages = function() {
|
|||||||
|
|
||||||
appendResult();
|
appendResult();
|
||||||
|
|
||||||
return results;
|
return this.backgroundImages || (this.backgroundImages = results);
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user