Cache backgroundImages request for nodes

This commit is contained in:
Niklas von Hertzen 2014-01-20 22:42:58 +02:00
parent 1a7f5732bf
commit 0cb259f6cd

View File

@ -6,6 +6,7 @@ function NodeContainer(node, parent) {
this.visible = null;
this.computedStyles = null;
this.styles = {};
this.backgroundImages = null;
}
NodeContainer.prototype.assignStack = function(stack) {
@ -143,5 +144,5 @@ NodeContainer.prototype.parseBackgroundImages = function() {
appendResult();
return results;
return this.backgroundImages || (this.backgroundImages = results);
};