Recompute domain4inversion if domain changed

issue4174
review5621002
This commit is contained in:
Cédric Krier committed 2014-09-18 17:42:42 +02:00
1 parent 3f80092ee6
commit b1db9da7f3
1 file changed
+5 -3
+5 -3
View File
@@ -352,10 +352,12 @@
return [head].concat(this.clean4inversion(tail));
};
array.domain4inversion = function() {
if (!this.__domain4inversion) {
this.__domain4inversion = this.clean4inversion(this.domain());
var domain = this.domain();
if (!this.__domain4inversion ||
!Sao.common.compare(this.__domain4inversion[0], domain)) {
this.__domain4inversion = [domain, this.clean4inversion(domain)];
}
return this.__domain4inversion;
return this.__domain4inversion[1];
};
return array;
};